Operating System - HP-UX
1822431 Members
3532 Online
109642 Solutions
New Discussion юеВ

how to got the top disk I/O process

 
SOLVED
Go to solution
Eric  Unix
Frequent Advisor

how to got the top disk I/O process

how to got the top disk I/O process ?
Look forward
8 REPLIES 8
Prashanth Waugh
Esteemed Contributor

Re: how to got the top disk I/O process

Hi Eric,

you can use

#iostat
#sar -d

Regards
Prashant
For success, attitude is equally as important as ability
IG_2
Advisor

Re: how to got the top disk I/O process

Hi,

If my memory serves me right glance can help you but it's a part of OpenView and isn't free :(

Or you can read appropriate kernel varialbles and report them to your monitoring system, but this approach requires C/C++ programming.
SKR_1
Trusted Contributor

Re: how to got the top disk I/O process

Hi,

you can use glanceplus and perfview utility.

Or

Refer manpages for below commands

iostat
sar -d

Thanks

SKR
Eric  Unix
Frequent Advisor

Re: how to got the top disk I/O process

Hello All

Thanks in advance for your kind feedback.
But, the really want to know is to find out which unix process use the most of disk I/O resource ? Have any command to find out it ?
Look forward
Dennis Handly
Acclaimed Contributor

Re: how to got the top disk I/O process

>want to know is to find out which unix process use the most of disk I/O resource?

This would be glance or gpm.
Besides sar -d, you could use sar -u to see if it is memory manager I/O.
Prashanth Waugh
Esteemed Contributor
Solution

Re: how to got the top disk I/O process

Hi Eric,

I think its a difficult to find it which process is using more disk. but u can apply some logic like..
1)first check iostat o/p for a disk which is heavily utilised suppose c0t0d0
2)lvdisplay -v |grep "c0t0d0"
3)u will get the idea like this disk is a member of this lv
4)use #bdf |grep
5)then from lv u will get the idea regarding File system name
6)then check which are the users are using that FS
#fuser -cu
7)you will get the pid
8)then grep that pid like
ps -ef |grep
9)it will show the which proccess is running and owner of that proceess.
=========================================
so doing aboe activity u will get idea

Regards
Prashant

For success, attitude is equally as important as ability
Jeeshan
Honored Contributor

Re: how to got the top disk I/O process

may be lsof can help you regarding this.
a warrior never quits
Vikas Thorat
Advisor

Re: how to got the top disk I/O process

Hi Eric,

One of my senior gave me this command to check the top five processes by vsz (core image size, in kbytes):

# UNIX95= ps -ef -o "vsz,pid,args" | sort -rn -k1 | head -n 5


regards,

Vikas
Success is not a Permanent & Failure is not Final! So,Never Stop Working after Success & Never Stop Trying after Failure!