- Mpstat
mpstat is a
computer command-linesoftware used inlinux operating system to report (on the screen) processor related statistics. It is used incomputer monitoring in order to diagnose problems or for build statistics about a computerCPU usage.Description
The mpstat command writes to standard output activities for each available processor.
The mpstat command can be used both on SMP and UP machines, but in the latter, only global average activities will be printed.
= Usage =
$ mpstatInterval is the time in seconds between printing out a line of statistics.Count is the number of lines of output you want.
It's very important to disregard the first line of output from mpstat (like iostat, vmstat, etc) as this line has unreliable information.
= Examples =Example of output under linux:
$ mpstatLinux 2.4.21-32.ELsmp (linux00) 07/04/0710:26:54 CPU %user %nice %system %iowait %irq %soft %idle intr/s10:26:54 all 0.07 0.00 0.16 8.48 0.00 0.09 91.18 165.49
under solaris 8
$ mpstatCPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl 0 -43 -29 0 -1313 -1406 -769 -701 0 -20 0 -806 -112 -49 -10 -1889References
* [http://www.linuxcommand.org/man_pages/mpstat1.html mpstat man page]
External links
* [http://perso.orange.fr/sebastien.godard/ sysstat] - includes mpstat
Wikimedia Foundation. 2010.