Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ps - cpu monitoring 1

Status
Not open for further replies.

deepweb

Programmer
Jun 4, 2003
3
US
I have been using the ps aux command to monitor the CPU of individual processes, the command throws up details for each process id, so if a process 'kkk' has 3 instances running, it doesnot give the sum...unlike prstat on Solaris..
Any ideas?
 
If you want something that will give you a summary, or more detail about what is going on, try tprof.
tprof -ske -x "sleep 15"
Then look at __prof.all.
Under a FREQ section there will be a list of the FREQ of each command and how much time was spent on each. In AIX 5.1 and earlier the values are in ticks. In AIX 5.2 things change and you get percents by default. You must have bos.perf.tools installed. to run and it must be run by root.
 
Thanks for your reponse but i don't have root access and my only option is ps aux....
 
If you're nice to your sys admin, maybe he/she will put sudo on there for you and you can run tprof with sudo.[wink]
 
if your admin is not worried about system performance, then hog away. =)

IBM Certified -- AIX 4.3 Obfuscation
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top