linux - top %cpu 缩写是什么意思?

标签 linux abbreviation top-command

有谁知道顶部进程表标题中的 %CPU 行中的两个字母缩写是什么意思?这是运行 top 的示例输出。

top - 15:10:34 up 8 days,  5:11,  1 user,  load average: 0.10, 3.80, 26.82
Tasks:   1 total,   0 running,   1 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.3 us,  0.7 sy,  0.0 ni, 98.0 id,  1.1 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:   2051456 total,   623544 used,  1427912 free,     1292 buffers
KiB Swap:  3203068 total,   147188 used,  3055880 free,    38352 cached

这是我的猜测和我不知道的。

us = user
sy = system
ni = ?
id = idle?
wa = ?
hi = ?
si = ?
st = ?

最佳答案

在“top”中,us、sy、ni、id、wa、hi、si 和 st 是什么(用于 CPU 使用率)?

  • 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

来源:In Linux "top" command what are us, sy, ni, id, wa, hi, si and st (for CPU usage)?

关于linux - top %cpu 缩写是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26004507/

相关文章:

linux - Golang webserver local.rc on raspbian 如何自动启动?

string - 一种字符串搜索算法,可以快速匹配大量未缩写字符串中的缩写?

linux - 在后台使用 top 命令运行脚本

linux - MacOS 中的 top -H 选项

java - (Java) "error: cannot find symbol"编译时?

linux - 我应该使用参数还是导出环境变量?

database - SGBD 是什么意思?

20多条命令的Linux Top命令

c++ - 使用参数从 C++ 程序调用 shell 脚本

python - 需要将字符串与Python文件中的行进行匹配