Monday, March 9, 2009

How to get CPU utilization for Unix OS?

You may use top and ps commands.

Display the process utilizing the most cpu and quits to sh: top -b -n -1

Display CPU Utilization: sar -u

And use ps to display processes with the highest CPU utilization: ps -eo pid,pcpu,args | sort +1n

Read man pages of each of the above commands to get more details and supported options.



Bookmark and Share

No comments:

Total Pageviews

Diving into the Controversial World of IPL with Lalit Modi

Lalit Modi, the mastermind behind the Indian Premier League (IPL), recently had a candid interview with Raj Shamani. The interview delved d...