vmstat 中的 CPU 部分

vmstat 中的 CPU 部分

手册页中的vmstat状态,例如 wa 部分,“等待 IO 所花费的时间”,但是时间单位是什么?是几秒钟吗?

答案1

阅读整个手册页:

  CPU
       These are percentages of total CPU time.
       us: Time spent running non-kernel code.  (user time, including nice time)
       sy: Time spent running kernel code.  (system time)
       id: Time spent idle.  Prior to Linux 2.5.41, this includes IO-wait time.
       wa: Time spent waiting for IO.  Prior to Linux 2.5.41, included in idle.
       st: Time stolen from a virtual machine.  Prior to Linux 2.6.11, unknown.

这些都是总 CPU 时间的百分比。

相关内容