[TriLUG] "Light" monitoring

Brian Henning bhenning at pineinst.com
Fri Mar 29 13:20:19 EDT 2013


I'm surprised no one has piped up with this tidbit:

> Side question -- since Top and friends only show one value, 
> what is it saying about a multi-cpu system?

top will show per-cpu if you press the "1" key:

(before)
top - 13:18:25 up 194 days, 22:44,  1 user,  load average: 0.22, 0.54, 0.49
Tasks: 196 total,   2 running, 193 sleeping,   0 stopped,   1 zombie
Cpu(s):  9.4%us,  1.0%sy,  0.0%ni, 88.6%id,  0.6%wa,  0.1%hi,  0.2%si,
0.0%st
Mem:   4033988k total,  3835100k used,   198888k free,   267372k buffers
Swap: 16779884k total,      120k used, 16779764k free,  2417956k cached

(after pressing "1")
top - 13:18:43 up 194 days, 22:44,  1 user,  load average: 0.16, 0.51, 0.48
Tasks: 194 total,   1 running, 193 sleeping,   0 stopped,   0 zombie
Cpu0  :  0.3%us,  3.3%sy,  0.0%ni, 96.3%id,  0.0%wa,  0.0%hi,  0.0%si,
0.0%st
Cpu1  :  0.3%us,  0.0%sy,  0.0%ni, 99.7%id,  0.0%wa,  0.0%hi,  0.0%si,
0.0%st
Cpu2  :  0.0%us,  1.3%sy,  0.0%ni, 97.0%id,  0.7%wa,  1.0%hi,  0.0%si,
0.0%st
Cpu3  : 28.7%us,  0.3%sy,  0.0%ni, 70.7%id,  0.3%wa,  0.0%hi,  0.0%si,
0.0%st
Mem:   4033988k total,  3835084k used,   198904k free,   267372k buffers
Swap: 16779884k total,      120k used, 16779764k free,  2417972k cached

(the above is from a Intel(R) Core(TM)2 Quad CPU [as displayed in
/proc/cpuinfo])

Cheers,
~B





More information about the TriLUG mailing list