nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

How to get cpu utilization from unix os

This is a discussion on How to get cpu utilization from unix os within the Solaris/OpenSolaris forums, part of the UNIX operating systems category; Ok,I need to display the utilization of each CPU individually as well as system's average CPU utilization since the last ...


Go Back   nixCraft Linux Forum > UNIX operating systems > Solaris/OpenSolaris

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 10-20-2006, 03:45 AM
Member
User
 
Join Date: Feb 2005
Posts: 66
Rep Power: 0
chiku
Default How to get cpu utilization from unix os

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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-21-2006, 12:34 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 481
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

Use top and ps commands.

Code:
top
Display the process utilizing the most cpu and quits to sh:
Code:
top -b 1
Display CPU Utilization:
Code:
sar -u
And use ps to display processes with the highest CPU utilization
Code:
ps -eo pid,pcpu,args | sort +1n
Read man pages of each of the above commands to get more details and supported options.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +5.5. The time now is 05:00 PM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36