PDA

View Full Version : Top for SMP machines



harisund
8th February 2007, 03:54 AM
Here is the screenshot which describes what I want to see in Linux (yes, any Linux) ..

http://cct.lsu.edu/~hsunda3/screenshot.jpg

Basically, my computer has 8 cores. And I do a decent amount of parallel programming, such as with OpenMP, and threads.

I want to see all my CPUs in action. I can clearly see the graph on my Windows boot, but I want something that works on Linux as well.

I was thinking top would be a good idea, but I am not able to get it show the CPU activity of all 8 cores.

Any ideas fellows? And preferably something command line,though I guess I could X-Forward through SSH if required, *just to see my CPU activity in Linux.*

Thanks!

harp2812
9th February 2007, 01:27 AM
Top does actually support multiple cores / cpu's :)

1) Start top
2) Press 1

(It's in top's massive man page under "Summary Area Commands")

marko
9th February 2007, 01:43 AM
Another option is "mpstat'

mpstat -P ALL 10

tells mpstat to show all the cores cpu% loads and
show the stats every 10 seconds.
Mark