相关疑难解决方法(0)

Linux “top”命令:us、sy、ni、id、wa、hi、si 和 st(CPU 使用率)是什么?

当我top在 Linux 中发出时,我得到类似这样的结果:

顶部截图

其中一行具有 CPU 使用率信息,如下所示:

Cpu(s): 87.3%us,  1.2%sy,  0.0%ni, 27.6%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Run Code Online (Sandbox Code Playgroud)

虽然我知道每个任务的定义(远在下面),但我不明白这些任务的确切含义。

  • hi - 服务硬件中断是什么意思?
  • si - 服务软件中断是什么意思?
  • st - 他们说这是“当管理程序为另一个处理器提供服务时,虚拟 CPU 非自愿等待的 CPU 时间(或从虚拟机窃取的 CPU 时间百分比”)。

但它实际上意味着什么?有人可以更清楚吗?

我列出的所有的ussyni,等,因为它可以帮助别人寻找相同。此信息不在手册页中。

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: …
Run Code Online (Sandbox Code Playgroud)

linux cpu top

231
推荐指数
3
解决办法
33万
查看次数

标签 统计

cpu ×1

linux ×1

top ×1