Hi Robert,
Robert Luberda wrote:
I'm forwarding the bug I got today.
----- Forwarded message from Benoit Panizzon <[EMAIL PROTECTED]> -----
I was just playing around with rrdtools and wanted to graph my system status
when I discovered that mpstats
prints nosense data when called without parameter:
Example on a server just running a kernel make -j 20:
$ mpstat
Linux 2.6.14.3 (go.imp.ch) 19.04.2006
16:25:45 CPU %user %nice %system %iowait %irq %soft %idle
intr/s
16:25:45 all 0.41 0.00 0.16 0.03 0.12 0.01 99.27
497.45
99% Idle? Can't be...
How to get the right output:
$ mpstat 1 1
Linux 2.6.14.3 (go.imp.ch) 19.04.2006
16:26:10 CPU %user %nice %system %iowait %irq %soft %idle
intr/s
16:26:11 all 88.67 0.00 9.36 0.00 0.49 0.00 1.48
391.09
Durchschn.: all 88.67 0.00 9.36 0.00 0.49 0.00 1.48
391.09
This looks about right...
OK. This is not a bug ;-)
Without any parameters entered on the command line, mpstat displays its
stats since system startup (in the example above, mpstat displays the
stats averaged between system boot time and 16:25:45).
When you enter "mpstat 1 1", mpstat displays one line of stats on a 1
second interval (in the example above, between 16:26:10 and 16:26:11).
I will update mpstat manual page to make this clear.
Regards,
--
Sébastien Godard (sysstat <at> wanadoo.fr)
http://perso.wanadoo.fr/sebastien.godard/