mpstat [ -P { cpu | ALL } ] [ -V ] [ interval-seconds [ count ] ]
activities for each available processor and Global average activities .
Use interval of 0 to report for the time since system startup .
Ommit count to report continuously.
Linux 2.4.28-grsec (esc35.midphase.com) 07/19/2006 10:29:28 AM CPU %user %nice %system %idle intr/s 10:29:30 AM all 17.12 0.00 1.12 81.75 506.00 10:29:32 AM all 3.75 0.00 1.25 95.00 411.50 10:29:34 AM all 7.88 0.00 2.50 89.62 645.50 10:29:36 AM all 3.50 0.00 1.62 94.88 443.00 10:29:38 AM all 1.38 0.12 0.38 98.12 391.00 Average: all 6.72 0.03 1.38 91.88 479.40The report generated by the mpstat command has the following format:
mpstat -P ALL 2 5 Linux 2.4.28-grsec (esc35.midphase.com) 07/19/2006 10:30:39 AM CPU %user %nice %system %idle intr/s 10:30:41 AM all 4.25 0.00 0.50 95.25 393.50 10:30:41 AM 0 2.50 0.00 1.00 96.50 0.00 10:30:41 AM 1 1.50 0.00 0.00 98.50 0.00 10:30:41 AM 2 12.50 0.00 1.00 86.50 0.00 10:30:41 AM 3 0.50 0.00 0.00 99.50 0.00 10:30:41 AM CPU %user %nice %system %idle intr/s 10:30:43 AM all 9.62 0.12 1.50 88.75 487.00 10:30:43 AM 0 15.50 0.00 3.00 81.50 0.00 10:30:43 AM 1 1.00 0.00 1.00 98.00 0.00 10:30:43 AM 2 15.50 0.00 1.00 83.50 0.00 10:30:43 AM 3 6.50 0.50 1.00 92.00 0.00
CPU |
Processor number. The keyword all indicates
that statistics are
calculated as averages among all processors.
|
percentage of CPU utilization that occurred while executing at the | |
---|---|
%user | user level (application). |
%nice | user level with nice priority. |
%system | system level (kernel). |
%idle | CPUs were idle. |
intr/s | total number of interrupts received per second |
-P cpu | ALL
-
Processor 0 is the first processor.
-V Print version number and usage then exit.
ENVIRONMENT
S_TIME_FORMAT if value is ISO then use the ISO format (YYYY-MM-DD) instead of locale
BUGS /proc filesystem must be mounted for the mpstat command to work.
Only a few activities are supplied by the Linux kernel for each processor.
FILES /proc contains various files with system statistics.
SEE ALSO
sar(1), sadc(8),
sa1(8), sa2(8),
iostat(1),
vmstat(8)
vmstat 60 3
procs memory swap io system cpu
r b w swpd free buff cache si so bi bo in cs us sy id
0 0 0 534696 67020 76172 1177164 0 1 0 0 1 0 1 1 0
0 0 0 534648 63884 78728 1175752 2 0 533 607 385 558 11 2 87
0 0 0 534636 70252 77504 1177920 3 36 1156 613 705 546 10 2 89