Operating System - HP-UX
1825775 Members
2134 Online
109687 Solutions
New Discussion

finding out high IO process

 
SOLVED
Go to solution
Jayasuntar
Valued Contributor

finding out high IO process

Hi all,

We need to find out the process which takes more IO, CPU for a particular day. For example the IO and CPU utilisation is high between 7-9 AM, the sar report says, system idle time is 0% at that time.

We want to find out that process. We have glance pak installed on our system. We can not monitor online at that time, so we want to print the process which takes more IO, CPU continuously for more than 5 min. Please suggest good script / glance pak adviser.

Thanks in advance

Jay
9 REPLIES 9
Arunvijai_4
Honored Contributor

Re: finding out high IO process

Steven E. Protter
Exalted Contributor

Re: finding out high IO process

Shalom Jay,

I generally use a sar script which includes some top output.

http://www.hpux.ws/system.perf.sh

It runs background and you can successfully schedule it for any interval in cron.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jayasuntar
Valued Contributor

Re: finding out high IO process

Hi all,

I need to find out the process, whcih takes more IO, CPU, when the syetm IO and CPU utilisation is high.

I have glance pak installed..

regards

Jay
Arunvijai_4
Honored Contributor

Re: finding out high IO process

Hello,

You can find out by standard Unix commands,

# UNIX95= ps -ef -o pcpu="CPU %" -o ruser=USER -o pid,args

# UNIX95= ps -ef -o pid,ruser,vsz,args|sort -nrk3

will be helpful.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
RAC_1
Honored Contributor

Re: finding out high IO process

Do you have MWA?? If yes, this can be done as follows.

Prepeare the report file as follows. (call it report)
REPORT "MWA Export !DATE !TIME Logfile: !LOGFILE !COLLECTOR !SYSTEM_ID"
FORMAT ASCII
HEADINGS ON
DATA TYPE PROCESS
BLANK
RECORD_TYPE
DATE
TIME
PROC_PROC_ID
PROC_PROC_NAME
PROC_CPU_TOTAL_UTIL
PROC_DISK_PHYS_IO_RATE
PROC_MEM_RES

then
extract -v -gapkdztncuyGADZTNUY -b "start_time" -e "end_time" -f out_file

out_file will have the required details.

you can also set an alarm in /var/opt/perf/alarmdef file for this. This will alert you when certain limits are crossed.
There is no substitute to HARDWORK
RAC_1
Honored Contributor

Re: finding out high IO process

Correction in extract command.

extract -v -gapkdztncuyGADZTNUY -r report -b "start_time" -e "end_time" -f out_file

Then you can do all sort business depending upon what you want.
There is no substitute to HARDWORK
Jayasuntar
Valued Contributor

Re: finding out high IO process

Hi all,

Let me explain clearly my requirment.

I want to have a output file, which contains process name, pid and the time and date which makes the system IO and CPU usage as much as 100% continuously for more thn 2 mins. I donthave MEA, I have only Glance pak installed.

Regards

Jay



RAC_1
Honored Contributor
Solution

Re: finding out high IO process

Jayasuntar,

MWA (Measureware Agent) is aprt of glance pak. you definitely have it. The above extract command will give what you want. Else, you can also set up an alarm in /var/opt/perf/alarmdef (Check the examples in /opt/perf/doc/examples).
There is no substitute to HARDWORK
Jayasuntar
Valued Contributor

Re: finding out high IO process

Thanks a lot everybody..

Written my own script thro glance adviser..

Got solution also..

Jay