Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

View CPU usage of individual processors in UNIX

Tags:

unix

cpu-usage

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!

like image 355
Hortitude Avatar asked Feb 05 '09 23:02

Hortitude


2 Answers

run "top"

press 1

like image 96
twk Avatar answered Oct 13 '22 09:10

twk


What UNIX are we talking here?

Try mpstat if you're in Solaris or Linux.

like image 24
Martin Carpenter Avatar answered Oct 13 '22 10:10

Martin Carpenter