Hi all,
It looks like Vmstat /sar/top are reporting inconsistent results with regds
to CPU activity(Busy/Idle time).
For eg , I tried the following (one immediately after the Other) to
determine how Busy are the CPUs ..
heron# vmstat -S 5 5
procs memory page disk faults cpu
r b w swap free si so pi po fr de sr s1 s1 s3 s3 in sy cs us sy
id
0 1 0 16752 17872 0 0 65 6 13 0 1 1 1 0 0 698 1078 1518 20 3
77
0 0 0 5885296 203480 0 0 0 0 0 0 0 1 1 0 0 795 1931 1739 33 3
64
0 1 0 5885248 203424 0 0 0 0 0 0 0 0 0 0 0 787 2195 1756 35 3
62
0 1 0 5885240 203416 0 0 0 0 0 0 0 0 0 0 0 1223 2761 2461 54 5
41
1 0 0 5885224 203400 0 0 0 0 0 0 0 0 0 0 0 1088 2422 2316 44 4
52
heron# sar 5 5
SunOS heron 5.5.1 Generic_103640-24 sun4u 10/27/99
12:38:36 %usr %sys %wio %idle
12:38:41 27 3 35 35
12:38:46 36 3 43 18
12:38:51 53 4 29 13
12:38:56 39 3 43 15
12:39:01 36 5 45 14
Average 38 4 39 19
heron# top
last pid: 19671; load averages: 3.66, 4.12, 4.44
12:39:41
408 processes: 404 sleeping, 4 on cpu
Cpu states: 0.0% idle, 13.0% user, 26.1% kernel, 31.8% iowait, 29.1% swap
Memory: 2450M real, 101M free, 814M swap, 2941M free swap
The 'man' pages for the above commands claims the Same defn for the CPU
acitivity Reporting Columns(%idle) ..
Even 'mpstat' 's results doesnt seem to correlate with Vmstat or sar..
Which one do I believe on ?
Any inputs, appreciated.
Thanks
Sam