Hi,

I was trying to understand the prstat output, but had quite a few doubts on the 
output shown. 

Does the prstat CPU usage display by default for each process reflect the user 
cpu time or a total of user and system cpu time ?
 PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP       
 25141 root     6584K 5872K run      0    0   0:00:00 0.6% processA/1
 25102 root     6496K 5776K sleep   40    0   0:00:00 0.6% processB/1
   993 root       11M 9992K sleep   54    0   2:58:27 0.6% processC/5
 24415 root     6576K 5776K sleep   52    0   0:00:00 0.4% processD/1

Top has an additional 4 lines that shows total CPU and memory usages. Since 
prstat does not show the output, i was thinking of using CPU usage shown by 
iostat. For some reason, iostat cpu usage shown seems to match closer to top, 
but vmstat and mpstat does not. Does anyone know why this difference and which 
would be the best tool to use to get the total CPU usages (as user, system, io 
wait and idle) ?

Would appreciate some guidance...
 
 
This message posted from opensolaris.org
_______________________________________________
perf-discuss mailing list
perf-discuss@opensolaris.org

Reply via email to