View CPU usage of individual processors in UNIX
Question
I am trying to diagnose a problem on a server box that I believe is related to CPU usage.
However, when I log in to the box and run 'top' I see a %CPU of 160 or higher. This is because this is a multi-processor box.
How do I see the CPU usage of the individual processors?
How can I do this in real time?
Thanks!
Solution
run "top"
press 1
OTHER TIPS
What UNIX are we talking here?
Try mpstat
if you're in Solaris or Linux.
mpstat -P ALL 5
it will report individual cpu usage every 5 seconds
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow