TOP中CPU状态信息含义

本文介绍了如何使用Linux中的top命令来监控系统中所有进程的状态。包括如何查看进程号、进程状态、CPU使用率以及内存占用等关键信息。此外还介绍了如何通过top命令查看各个CPU的详细使用情况。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值