top multiple cpu, multicore monitoring

From thelinuxwiki
Jump to: navigation, search


To view individual CPU core information with top,

run top interactively, then hit "1" to see a detailed view like...

Tasks: 223 total,   2 running, 221 sleeping,   0 stopped,   0 zombie
%Cpu0  : 28.4 us,  8.8 sy, 12.9 ni, 49.5 id,  0.0 wa,  0.0 hi,  0.3 si,  0.0 st
%Cpu1  : 15.9 us,  7.6 sy, 16.2 ni, 58.0 id,  0.0 wa,  0.0 hi,  2.2 si,  0.0 st
%Cpu2  :  8.6 us,  5.2 sy, 10.7 ni, 74.8 id,  0.0 wa,  0.0 hi,  0.6 si,  0.0 st
%Cpu3  :  8.1 us,  3.6 sy,  7.5 ni, 80.8 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st


Column information (not in man page)

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