Originally posted by: dickdunbar
You are correct. AIX will run threaded programs across processors, virtual or not.
One way you can view the usage of the processors is to use AIX "trace".
Warning: It will produce a LOT of data in a HURRY.
http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds5/trace.htm So something like this might be helpful:
trace -C all -faj 106,10c,134,139,254,465 -L 128000000 -o trace.raw
trcon ; your_pgm ; trcstop
trcrpt -O exec=on,pid=on,tid=on,svc=on -o trace.rpt trace.raw
more trace.rpt
trace: is started "asynchronously", waiting for "trcon"
Option "-f" says fill the trace.raw file and stop.
trcon ... starts the trace collection
your_pgm ... if it is long running, you can start it in the background
trcstop ... stops the collection
trcrpt ... formats the binary trace data, and shows (among other things) processor dispatched.
The "trace.rpt" will be very large. The art of reading trace is knowing how
to throw uninteresting lines away:
egrep -v 'DECREMENT|DATA|trcstop' trace.rpt | more
#AIX-Forum