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

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

-- 


:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:
  Richard Mc Dougall                 : [EMAIL PROTECTED]
  Distinguished Engineer             : http://blogs.sun.com/rmc
  Performance and Availability       : x31542  
  Engineering                        : http://devnull.eng
  Sun Microsystems Inc               : +1 650 352 6438
:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:
_______________________________________________
perf-discuss mailing list
perf-discuss@opensolaris.org

Reply via email to