SMP CPU Statistics
Miguel Filipe
miguel.filipe at gmail.com
Sun May 1 11:33:14 PDT 2005
Hi!
On 4/30/05, Hiten Pandya <hmp at xxxxxxxxxxxxx> wrote:
> Miguel Filipe wrote:
> > Very, very nice!
> >
> > is the output similar to "mpstat" from the "sar" package present on
> > Solaris and in some other unices ?
>
> I have heard of mpstat, but never having an MP SUN system, I am not
> sure what kind of output it presents. If you can send sample output
> from the mpstat utility, I will see what I can do.
Okay, mpstat is like this:
miguel at mega ~ $ mpstat 5
CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl
0 286 1 667 579 465 287 18 30 24 0 208 14 9 8 69
1 284 1 706 390 315 283 19 30 27 0 789 15 9 9 67
4 283 1 702 120 101 294 19 30 25 0 750 15 8 9 68
5 283 1 323 439 223 290 19 30 24 0 519 15 8 9 68
8 298 1 776 169 150 291 20 32 25 0 720 17 9 8 65
CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl
0 360 0 952 2243 2168 304 7 34 17 0 1691 7 8 12 73
1 259 0 872 392 265 262 6 28 15 0 1419 7 11 12 70
4 198 0 656 107 101 288 6 30 17 0 1737 13 6 6 75
5 209 0 1002 442 237 245 8 33 15 0 1876 9 8 4 79
8 230 0 747 115 108 323 7 38 13 0 1726 8 7 8 78
CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl
0 312 0 400 2267 2181 266 8 30 15 0 1706 8 7 7 78
1 234 0 633 287 274 205 7 26 18 0 1330 13 8 6 73
4 247 0 1708 105 100 300 5 29 16 0 1556 5 6 7 82
5 248 0 1105 437 233 289 11 27 15 0 1405 7 7 4 82
8 335 0 685 119 109 344 10 35 14 0 1812 7 9 7 77
the first output is usually the average since boot time.
the other ones are outputed each interval time... (sorry the bad english)
here is what the man page says:
NAME
mpstat - report per-processor statistics
SYNOPSIS
/usr/bin/mpstat [ interval [ count ] ]
DESCRIPTION
mpstat reports per-processor statistics in tabular form.
Each row of the table represents the activity of one proces-
sor. The first table summarizes all activity since boot;
each subsequent table summarizes activity for the preceding
interval. All values are rates (events per second) unless
otherwise noted.
here is the description of the other colums from the man page:
mpstat reports the following information:
CPU processor ID
minf minor faults
mjf major faults
xcal inter-processor cross-calls
intr interrupts
ithr interrupts as threads (not counting clock inter-
rupt)
csw context switches
icsw involuntary context switches
migr thread migrations (to another processor)
smtx spins on mutexes (lock not acquired on first try)
srw spins on readers/writer locks (lock not acquired
on first try)
syscl system calls
usr percent user time
sys percent system time
wt percent wait time
from all this, the ones I consider more generally usefull are:
interrupts, context switches, syscalls, user sys, wait, idle
The mpstat in linux has a different output and syntax.. but does the
same thing..
the collums are these:
CPU %user %nice %system %iowait %irq %soft %idle intr
I think they are more "self" explainatory...
>
> Kind regards,
>
> -Hiten
> hmp at xxxxxxxxxxxxxxxx
>
Best regards,
--
Miguel Sousa Filipe
--
Miguel Sousa Filipe
More information about the Users
mailing list