[Milberg09] 5.6. mpstat (AIX-specific)

来源:百度文库 编辑:神马文学网 时间:2024/05/02 06:47:56

5.6. mpstat (AIX-specific)

mpstat [ { -a | -d | -i | -s | -h } ] [ -w ] [ interval [ count ] ]

The mpstat command (part of the bos.acctfileset) was introduced in AIX 5.3. This tool displays overallperformance numbers for all logical CPUs on your partitioned system.When you run the command, two sections of statistics are displayed. Thefirst section shows system configuration information, which isdisplayed when the command starts and whenever a change in the systemconfiguration occurs; the second section, which is displayed atuser-specified intervals, shows utilization statistics:

Code View:Scroll/Show All
# 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 mpstatcommand is a very useful command because it reports collectioninformation for each logical CPU on your partition in a format that isclearly illustrated. You can even view SMT utilization by specifyingthe –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%