Hortitude
Hortitude

Reputation: 14068

View CPU usage of individual processors in UNIX

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!

Upvotes: 11

Views: 12395

Answers (3)

Kalaiselvan
Kalaiselvan

Reputation: 11

mpstat -P ALL 5

it will report individual cpu usage every 5 seconds

Upvotes: 1

Martin Carpenter
Martin Carpenter

Reputation: 5951

What UNIX are we talking here?

Try mpstat if you're in Solaris or Linux.

Upvotes: 8

twk
twk

Reputation: 17320

run "top"

press 1

Upvotes: 19

Related Questions