Operating System - HP-UX
1833198 Members
3193 Online
110051 Solutions
New Discussion

Viewing disk I/O at the file level?

 
Joshua McCarthy
New Member

Viewing disk I/O at the file level?

I am having a Disk bottleneck and I am wondering if there is a way for me to view what files are being used the most. I am able to view which volumes are in high use, but it would be far more helpful to know what particular file is causing the problem. Any thoughts would be much appreciated.

Thanks
4 REPLIES 4
Coolmar
Esteemed Contributor

Re: Viewing disk I/O at the file level?

Have you tried "lsof", you would have to download it but it might help.

You can get it from here: http://hpux.cs.utah.edu/
Dave Olker
Neighborhood Moderator

Re: Viewing disk I/O at the file level?

Hi Joshua,

Do you know which process/thread is performing the I/O? If so you can use tusc to attach to the thread and see which files it is accessing for reads/writes/etc.

Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
James R. Ferguson
Acclaimed Contributor

Re: Viewing disk I/O at the file level?

Hi Joshua:

If you use Glance you can watch the offset of an open file grow. This could help point you to your candidates.

You will need to select (guess) the process in question and having done so, drill-down to its open files.

Regards!

...JRF...
Michael Steele_2
Honored Contributor

Re: Viewing disk I/O at the file level?

Use 'sar -d 5 5' and 'pvdisplay'. In the 'sar' report, note any disk where avwait is greater than 'avserv'. Note those device names and use 'pvdisplay -v /dev/dsk/...." to see what logical volumes are using that disk. Cross reference with 'bdf' or /etc/fstab.
Support Fatherhood - Stop Family Law