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