5.6. mpstat (AIX-specific)
mpstat [ { -a | -d | -i | -s | -h } ] [ -w ] [ interval [ count ] ]
The mpstat command (part of the bos.acct
fileset) was introduced in AIX 5.3. This tool displays overall
performance numbers for all logical CPUs on your partitioned system.
When you run the command, two sections of statistics are displayed. The
first section shows system configuration information, which is
displayed when the command starts and whenever a change in the system
configuration occurs; the second section, which is displayed at
user-specified intervals, shows utilization statistics:
# mpstat 1 2
System configuration: lcpu=4 ent=0.4 mode=Uncapped
cpu min maj mpc int cs ics rq mig lpa sysc us sy wa id pc %ec lcs 0 18 0 0 524 125 56 1 0 100 100 8 58 0 34 0.01 2.1 465 1 0 0 0 108 0 0 0 0 - 0 0 36 0 64 0.00 0.5 108 2 0 0 0 10 0 0 0 0 - 0 0 32 0 68 0.00 0.0 10 3 0 0 0 10 0 0 0 0 - 0 0 29 0 71 0.00 0.0 10 U - - - - - - - - - - - - 0 97 0.39 97.3 - ALL 18 0 0 652 125 56 1 0 100 100 0 1 0 98 0.01 2.7 593 -------------------------------------------------------------------------------
0 3 0 0 392 127 58 1 0 100 67 5 56 0 38 0.01 1.4 331 1 0 0 0 70 0 0 0 0 - 0 0 34 0 66 0.00 0.4 70 2 0 0 0 10 0 0 0 0 - 0 0 32 0 68 0.00 0.0 10 3 0 0 0 10 0 0 0 0 - 0 0 29 0 71 0.00 0.0 10 U - - - - - - - - - - - - 0 98 0.39 98.2 - ALL 3 0 0 482 127 58 1 0 100 67 0 1 0 99 0.01 1.8 421
Information given includes:
-
cpu — Logical CPU processor ID
-
min — Minor page faults
-
ma — Major page faults
-
mpc — Total number of interprocessor calls
-
int — Total number of interrupts
-
cs — Total number of voluntary context switches
-
ics — Total number of involuntary context switches
-
rq — Total run queues
-
mig — Total number of thread migrations
-
lpa — Logical processor affinity
-
sysc — Total number of system calls
-
us — CPU time spent on user activity
-
sy — CPU time spent on system activity
-
wa — CPU time spent waiting on I/O
-
id — CPU time idle
-
pc — Fraction of processor consumed
-
%ec — Percentage of entitled capacity consumed
-
lcs — Total number of logical context switches
The mpstat
command is a very useful command because it reports collection
information for each logical CPU on your partition in a format that is
clearly illustrated. You can even view SMT utilization by specifying
the –s flag:
# mpstat -s 1
System configuration: lcpu=4 ent=0.4 mode=Uncapped
Proc0 Proc1 1.01% 0.02% cpu0 cpu1 cpu2 cpu3 0.85% 0.16% 0.01% 0.01% ------------------------------------------------------------------ Proc0 Proc1 0.74% 0.02% cpu0 cpu1 cpu2 cpu3 0.56% 0.18% 0.01% 0.01%
|