AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
Expand all | Collapse all

which thread on which cpu?

  • 1.  which thread on which cpu?

    Posted Wed February 25, 2009 12:55 AM

    Originally posted by: drajarsh


    Hello All,

    I have an application that I run on a MP system. This application in turn invokes a network driver. Is it possible to trace the application such that I can see the threads that ran as part of the application (all the user space threads/ kernel threads) and which cpu they ran on?

    Basically my purpose is to figure out if there was any contention for resources between any of the threads during the course of running the application.

    Thanks in advance,
    Rajarshi
    #AIX-Forum


  • 2.  Re: which thread on which cpu?

    Posted Wed February 25, 2009 11:05 AM

    Originally posted by: MarkTaylor


    That would wholly depend on whether you bound the proc to a processor (bindprocessor) or how full each run queue was .. the kernel will try to schedule a thread back onto the same processor (processor affinity) however, if it becomes runnable and there is a run q more suitable i.e. with less threads runnable at the same priority or less then it will get scheduled there instead. Its a lot less costly to make runnable on the same CPU, but thats not always possible.

    What you need to do is a kernel trace, then run curt and you will be able to see the processor affinity for the each kernel tick for the thread.

    HTH
    Mark Taylor
    #AIX-Forum