nixCraft Linux Forum

nixCraft

Linux / UNIX 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 ...

Register free or login to your existing account and remove all advertisements.


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

Linux answers from nixCraft.


Solaris/OpenSolaris Discuss all about the SUN Solairs/OpenSolaris. You are free to talk about any issues related to Solaris administration, networking, services and other stuff, share information or ask doubts.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-20-2006, 03:45 AM
chiku's Avatar
Member
User
 
Join Date: Feb 2005
OS: Fedora
Posts: 86
Thanks: 10
Thanked 0 Times in 0 Posts
Rep Power: 0
chiku is on a distinguished road
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
  #2 (permalink)  
Old 10-21-2006, 12:34 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
OS: Debian GNU/Linux
Posts: 506
Thanks: 0
Thanked 8 Times in 6 Posts
Rep Power: 7
monk has a spectacular aura about monk has a spectacular aura about
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


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 Off



All times are GMT +5.5. The time now is 01:34 PM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

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 37 38