Richard McDougall wrote:
Hi Cherian,
The -m shows microstate percentages for each process; i.e. the percentage of
time this thread spent on cpu as a percentage of the elapsed time of the
sample. It doesn't correspond to the regular prstat percentage of the whole
machine value - so it's actually a different metric.
We have made some notes on the different modes of prstat here:
http://www.solarisinternals.com/wiki/index.php/Processes
Richard:
I've often wanted to see prstat changed to consistently show 'percent of
a CPU core',
so that values might exceed 100 for multi-threaded apps, and so
per-process values
from the same task running on different configurations would be more
comparable.
With '-m', the 'percent of total' concept needs to be maintained, but
maybe adding
another column would help. The issue of units extends to the '-T'
rollups. Some on
this thread have also wished for more 'top-like' outputs from prstat,
such as aggregate
usr/sys/idle. (I can offer free counseling for those who want %wio. ;-) )
Actually, as we evolve to systems architectures with massive thread
counts, we'll
see CPU-bound threads average to 0% with the current implementation. Yikes!
How about '-A' for 'Aggregate' and '-X' for 'eXtended'? I don't want to
file an RFE
until there is some consensus on these notions.
Cheers,
-- Bob
Regards,
Richard.
On Thu, Oct 19, 2006 at 08:34:17AM -0700, Cherian Abraham wrote:
Hi All,
Thanks for all the feedback.
I tried to run both prstat and prstat -m option and here are the output displays...
(showing only three processes).
prstat -mL
PID USERNAME USR SYS TRP TFL DFL LCK SLP LAT VCX ICX SCL SIG PROCESS/LWPID
25952 root 30 30 0.0 0.0 0.0 0.0 30 0.0 100 6K 87K 0 processC/1
25571 root 5.1 0.7 0.0 0.0 0.0 0.0 93 0.0 57 68 5K 0 processB/1
2003 root 0.3 1.2 0.1 0.0 0.0 0.0 97 1.9 67 8 1K 21 processA/1
prstat
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
2003 root 39M 38M sleep 59 0 3:05:58 0.6% processA/1
25571 root 6488K 5752K sleep 13 0 0:00:00 0.5% processB/1
25952 root 5208K 4184K sleep 23 0 0:00:00 0.1% processC/1
Is it possible to relate the CPU usage shown by prstat and prstat -m ? or am i comparing apples and oranges here ? process C shows 0.1% CPU usage (is this only usr time?) and microstate accounting shows 30% user time, 30% sys time and 30% sleep. How does one relate the two ? The above is just snapshots taken almost at the same time.
My testing is normally done in a 2 hr time frame. So i could run prstat with 10
sec sampling rate and prstat -m with also a 10 sec sampling rate during the
same period. The sampling instance for both maybe slightly off. If i average
out during this run for each process from prstat and also the same from prstat
-m, how do i relate these values ?
This message posted from opensolaris.org
_______________________________________________
perf-discuss mailing list
perf-discuss@opensolaris.org
_______________________________________________
perf-discuss mailing list
perf-discuss@opensolaris.org