我在哪里可以看到这些解释指标?
cpu_ctxt、cpu_intr、cpu_sintr、cpu_aidle、cpu_steal
我假设 cpu_ctxt
代表 /proc/stat
(参见 manpage)或 vmstat
报告的上下文切换次数(cs
字段)。
此外,man top
揭示了其他指标的含义:
us, user : time running un-niced user processes
sy, system : time running kernel processes
ni, nice : time running niced user processes
id, idle : time spent in the kernel idle handler
wa, IO-wait : time waiting for I/O completion
hi : time spent servicing hardware interrupts
si : time spent servicing software interrupts
st : time stolen from this vm by the hypervisor
哪里:
- cpu_intr 映射到
hi
- cpu_sintr 映射到
si
- cpu_aidle 映射到
id
- cpu_steal 映射到
st
另见 this和 this回答。
我是一名优秀的程序员,十分优秀!