2017-05-04 86 views

回答

0

我假设cpu_ctxt代表数量根据/proc/stat(请参阅manpage)或vmstatcs字段)报告的上下文切换。

另外,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

另见thisthis答案。