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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Identify Individual CPU Usage

Status
Not open for further replies.

KPKIND

Technical User
Sep 8, 2003
130
0
0
IN
Hi *,

I have a system with 2 cpu's in it. If I have to see the cpu usage on my system I run vmstat and get an average usage figure. But If I have to know which CPU (Either CPU1 or CPU2)is sharing what % of the load, How do I know that?

TIA
Kumar
 
Hi Mihab,

Thanks for you response. But nmon is not installed on my machine, Is there anyway without using nmon.

TIA
Kumar
 
hello,

sar -P ALL 1 100

will give 100 samples with a 1 sec interval between each, per CPU.

regards,
 
ps aux|sort -k3rn|pg - top 2 lines are percentage of use on your cpus - then the insuing tells which processes are getting the most cpu.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top