在linux中,我们通过top命令可以监控所有进程的运行情况。包括进程号,进程目前状态,CPU使用,以及mem占用等。


同时在top界面按 1 可以进入到所有CPU统计界面。(按 2 与 3 可以查看不同node节点中CPU的使用情况)


进入后可以发现每个CPU都有8个相应描述信息(us,sy,ni,id,wa,hi,si,st)。这里我们摘出官方解释:

us:user cpu time (or) % CPU time spent in user space

sy:system cpu time (or) % CPU time spent in kernel space

ni :user nice cpu time (or) % CPU time spent on low priority processes

id :idle cpu time (or) % CPU time spent idle

wa :io wait cpu time (or) % CPU time spent in wait (on disk)

hi :hardware irq (or) % CPU time spent servicing/handling hardware interrupts

si :software irq (or) % CPU time spent servicing/handling software interrupts

st :steal time - - % CPU time in involuntary wait by virtual cpu while hypervisor is servicing another processor (or) % CPU time stolen from a virtual machine

Logo

更多推荐