Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Measure CPU usage on Unix

Status
Not open for further replies.

JtheRipper

IS-IT--Management
Oct 4, 2002
274
GB
Hello,

I want to find out how the cpu's on my server are being utilized. I have 6 cpu's on one server, but am quite sure not all of them are being used. Is there a way/tool in unix that gives a nice breakdown of how each cpu is being used?

Thanks,
Jaco
 
We are using Sun Solaris 8.

When I do a top, it does not really give me the info I need.

I want something like the following:

cpu1 20% busy
cpu2 100% busy
cpu3 0% busy

etc etc.
 
try `mpstat'
I think it's enough.

look for : usr sys and idl columns
PM
 
Thanks for all the quick response, it looks like mpstat will do the trick!
 
you may wish to look at sar - q as well, it answers the opposite question

the second column is the percent of time a job had to wait because all CPUs were in use

the first column is the average number of jobs waiting for a CPU when at least 1 was waiting.

sar -q can show you the times of day when you do not have 'enough' CPUs, so you can avoid scheduling jobs then

I tried to remain child-like, all I acheived was childish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top