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

295 篇文章 0 订阅
117 篇文章 0 订阅

转自: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**

决议

nameexplanation
us(usr) / userShow  the percentage of CPU utilization that occurred while executing at the user level (application).
sy / systemShow 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 / niceShow the percentage of CPU utilization that occurred while executing at the user level with nice priority.
id / idleShow the percentage of time that the CPU or CPUs were idle and the system did not have an outstanding disk I/O request.
wa / iowaitShow  the percentage of time that the CPU or CPUs were idle during which the system had an outstanding disk I/O request.
hi / hardware interruptsShow the percentage of time spent by the CPU or CPUs to service hard interrupts.
si / software interruptsShow the percentage of time spent by the CPU or CPUs to service soft interrupts.
st / stealShow 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"
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值