there are other options on prstat to see the usr and sys time
separately, like prstat -m

iostat, vmstat and mpstat all read the same numbers out of the kernel,
so if you see differences on the same machine then it is because they
are not synchronized and they format the results differently.

In Solaris 10, iowait is no longer measured and will be reported as
zero by existing tools. Since iowait was always a variant of idle
time, this makes no difference to usr or sys time.
iowait was always a confusing and useless metric, which is why it was removed.

Adrian
http://perfcap.blogspot.com

On 10/18/06, Cherian Abraham <[EMAIL PROTECTED]> wrote:
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

_______________________________________________
perf-discuss mailing list
perf-discuss@opensolaris.org

Reply via email to