The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
comand df -k roviedo SUN Solaris 2 08-08-2007 08:18 AM
sudo comand with ControlM u156531 UNIX for Advanced & Expert Users 3 04-30-2006 10:03 AM
exec comand mkan UNIX for Dummies Questions & Answers 5 09-09-2005 12:24 AM
blanks in an awk comand collie Shell Programming and Scripting 1 08-25-2004 09:09 AM
mount comand lostam UNIX for Dummies Questions & Answers 6 05-13-2002 09:14 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-23-2006
Registered User
 

Join Date: Mar 2001
Location: Calcutta, India
Posts: 46
ps uax comand on AIX box

I am trying to find the total CPU usage on an IBM AIX machine that could have several processors. I am using
ps uax | awk {'print $3'} to find the CPU usage columns for the processes and then adding them up to find the total CPU usage. It was doing fine. However to my surprise, I find that the %CPU usage column shows a much higher value (38601304.034456). I must tell that interestingly only the first 3 processes (java ant command, some dba command and the other one admin command from root) are showing these values and rest are cool. I was of the opinion that the %CPU usage would never cross 100. I am working for a load manager and need to find the total %CPU usage on several boxes and selects the most lightly loaded one for a request to be redirected.

Is there anything seriously wrong in my approach? Can someone throw some light?

Thanks

Asutoshc
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-23-2006
Registered User
 

Join Date: Nov 2003
Location: Minnesota
Posts: 387
I wouldn't use ps to monitor cpu performance like that. Try other commands like vmstat. This link should be helpful.

http://publib.boulder.ibm.com/infoce...v5r3/index.jsp

Stupid IBM website - the link just goes to the main page instead of the page I was looking at when I pasted the link in.

Once you're there on the left panel click on Performance Management and Tuning, then the first book "Performance Management Guide". There is a whole chapter on CPU performance monitoring.
Reply With Quote
  #3 (permalink)  
Old 05-23-2006
Ebbi's Avatar
Registered User
 

Join Date: Mar 2005
Location: Germany
Posts: 139
nmon is also very nice on AIX:

http://www-128.ibm.com/developerwork...aix/index.html
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:31 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0