Re: How do I get percentage CPU usage of processes for a specified time interval?
- From: "Ashok Sangra" <aksangra@xxxxxxxxx>
- Date: 18 Feb 2007 22:54:50 -0800
On Feb 16, 3:35 am, "Adrian Davis" <adr...@xxxxxxxxxxxx> wrote:
How do I get percentage CPU usage of processes for a specified time
interval?
I'm wish to write a script, part of which displays the top 10
processes by percentage processor usage over a 30 second interval. I
know "topas" can show this, but I need to be able to process the
information in a script. The output from "ps" doesn't seem to give the
neccessary resolution...
Can anybody give me some pointers as to how this can be done?
Many Thanks,
=Adrian=
You can run "tprof -x sleep 30" and then use awk/grep to filter infor
from the generated sleep.prof file.
HTH
.
- References:
- Prev by Date: Re: LDAP on AIX - the continuing tragedy...
- Next by Date: Re: merge files along with file names
- Previous by thread: Re: How do I get percentage CPU usage of processes for a specified time interval?
- Next by thread: Re: AIX fix for DST changes.
- Index(es):
Relevant Pages
|