Operating System - HP-UX
1833875 Members
1992 Online
110063 Solutions
New Discussion

Re: how to determine which processes are responsible for disk i/o

 
Christiaan Kelly
New Member

how to determine which processes are responsible for disk i/o

I am trying to determine which process(es) is (are) responsible for disk i/o. On a very lightly loaded system, I have some strange disk activity (according to sar -d, about 2MB/second). sar -u and top show me that no processes are very busy with CPU, so that doesn't help, and sar -d and iostat report only aggregate i/o for each disk.

Are there any standard commands or utilities which inform about disk i/o by individual processes rather than system-wide activity?
And if so, is it then possible to determine which files are heavily accessed (not just open which fuser gives, but open with heavy i/o)?

I have heard wonders about Glance. Unfortunately I don't currently have that utility.
7 REPLIES 7
Rob Smith
Respected Contributor

Re: how to determine which processes are responsible for disk i/o

Go to http://hpux.cs.utah.edu/ and download a copy of lsof. It gives you a excellent details of what processes are doing on a system. The download is in sd format so it is easy to install. Hope this helps.

Rob Smith
Learn the rules so you can break them properly.
Thierry Poels_1
Honored Contributor

Re: how to determine which processes are responsible for disk i/o

Hi,
indeed Glance would be a great help.
There is a trial version on the HP-UX Application CD's. It's has all functionalities, but can only be used for 2/3 months.
good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Philip Chan_1
Respected Contributor

Re: how to determine which processes are responsible for disk i/o

Isn't it the kernel the only process that does disk I/O jobs? because all disk I/Os must be done by the "read" and "write" system calls.

~Philip
Philip Chan_1
Respected Contributor

Re: how to determine which processes are responsible for disk i/o

Hi Chris,

In your case I think you really need glance for the job. With glance you can sort running process list by disk I/O rate, then the top process from the sorted list will be the one that you're looking for.

Rgds,
Philip
Bill McNAMARA_1
Honored Contributor

Re: how to determine which processes are responsible for disk i/o

You can also have a look at PerfView which is also a free trial download and should give you exactly what you need.... and more.

Later,
Bill
It works for me (tm)
Vincenzo Restuccia
Honored Contributor

Re: how to determine which processes are responsible for disk i/o

Vincenzo Restuccia
Honored Contributor

Re: how to determine which processes are responsible for disk i/o