【转】top,vmstat,mpstat结果中 CPU status的含义

转自:https://access.redhat.com/solutions/19539

What's the meaning of CPU status in top, vmstat, mpstat ?

 SOLUTION 已验证 - 已更新 2016年七月29日11:33 - 

English 

环境

  • Red Hat Enterprise Linux 5 - All Architectures
  • Red Hat Enterprise Linux 6 - All Architectures
  • Red Hat Enterprise Linux 7 - All Architectures

问题

  • What's the meaning of CPU status in top, vmstat, mpstat ?

vmstat:

Raw

procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs **us sy id wa st**
 0  1   5664     98552   135756  86704    0    0       0     3     21   31  **0  0  100  0  0**
(..omit..)

top:

Raw

Tasks: 302 total,   1 running, 301 sleeping,   0 stopped,   0 zombie
**Cpu(s):  2.1%us,  0.7%sy,  0.0%ni, 96.8%id,  0.4%wa,  0.0%hi,  0.0%si,  0.0%st**
(..omit..)

mpstat:

Raw

11:56:56     CPU    **%usr   %nice    %sys %iowait    %irq   %soft  %steal  %guest   %idle**
11:56:56     all    **2.10    0.00    0.66    0.39    0.00    0.01    0.00    0.00   96.85**

决议

name explanation
us(usr) / user Show  the percentage of CPU utilization that occurred while executing at the user level (application).
sy / system Show the percentage of CPU utilization that occurred while executing at the system level (kernel). Note that this does not include time spent servicing hardware and software interrupts..
ni / nice Show the percentage of CPU utilization that occurred while executing at the user level with nice priority.
id / idle Show the percentage of time that the CPU or CPUs were idle and the system did not have an outstanding disk I/O request.
wa / iowait Show  the percentage of time that the CPU or CPUs were idle during which the system had an outstanding disk I/O request.
hi / hardware interrupts Show the percentage of time spent by the CPU or CPUs to service hard interrupts.
si / software interrupts Show the percentage of time spent by the CPU or CPUs to service soft interrupts.
st / steal Show the percentage of time spent involuntarily waiting by the virtual CPU or CPUs while the hypervisor was servicing another virtual processor. (If this is continually high, it is a sign of an oversubscribed hypervisor)
  • for more information, please check "man mpstat" "man top" "man vmstat"

你可能感兴趣的:(Linux,RHEL7,RHEL6,RHEL5,OL7,OL6)