top, prstat and prstat -m

  • Follow


hi all,
I have a 4 processor system and an idle system
I launch an application that generates a certain percentage of load
in the following way: e.g. 10% load (on 1(a) processor):
- during 100 ms: while(1);
- during 900 ms: sleep()

top output:
 29644 root       1   8    4 1144K  712K sleep    0:16 58.64% load_cpu

prstat:
29644 root     1144K  712K cpu0     0    4   0:00:32  12% load_cpu/1

prstat -m:
 PID USERNAME USR SYS TRP TFL DFL LCK SLP LAT VCX ICX SCL SIG PROCESS/
NLWP
 29644 root            45    0.0    0.0 0.0 0.0 0.0  54 0.0   9 168
15   3 load_cpu/1

Only prstat shows the correct result, could someone explain the result
of prstat -m. USR varies between 45 and 60 during the time I measured.

Thanks for all repleis.

0
Reply adirtymindisajoyfore 5/26/2009 2:39:45 PM


0 Replies
549 Views

(page loaded in 1.183 seconds)

Similiar Articles:













7/20/2012 3:57:37 AM


Reply: