Ok,I need to display the utilization of each CPU individually as well as system's average CPU utilization since the last reboot
How do I find out all this info?
TIA
Ok,I need to display the utilization of each CPU individually as well as system's average CPU utilization since the last reboot
How do I find out all this info?
TIA
There's no place like 127.0.0.1
Use top and ps commands.
Display the process utilizing the most cpu and quits to sh:Code:top
Display CPU Utilization:Code:top -b 1
And use ps to display processes with the highest CPU utilizationCode:sar -u
Read man pages of each of the above commands to get more details and supported options.Code:ps -eo pid,pcpu,args | sort +1n
There are currently 1 users browsing this thread. (0 members and 1 guests)