http://linux.about.com/od/commands/l/blcmdl1_top.htm
top - 17:05:46 up 7 min, 1 user, load average: 227.48, 89.29, 36.78
Tasks: 1758 total, 25 running, 1555 sleeping, 1 stopped, 177 zombie
Cpu(s): 1.5%us, 32.1%sy, 58.0%ni, 4.7%id, 2.7%wa, 0.1%hi, 0.8%si, 0.0%st
Mem: 65951776k total, 20235624k used, 45716152k free, 10882480k buffers
Swap: 4194300k total, 0k used, 4194300k free, 3291164k cached
那是什么意思?
http://linux.about.com/od/commands/l/blcmdl1_top.htm没有说什么?
us 的意思是使用。 sy 好像是系统。你?什么是ni? id是什么?什么是哇? si是什么?为什么这么多的CPU时间花在ni和sy上?
答案1
从man top
:
us, user : time running un-niced user processes
sy, system : time running kernel processes
ni, nice : time running niced user processes
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
它没有说明什么id
意思,但我认为它代表“空闲”,因为对于我的系统来说它始终约为 85%,并且将所有数字相加得到 100%。