Operating System - HP-UX
1834903 Members
2727 Online
110071 Solutions
New Discussion

How to determine which directory in a filesystem is most used.

 
SOLVED
Go to solution
Sean OB_1
Honored Contributor

How to determine which directory in a filesystem is most used.

Hello.

If I have a file system that is being hit with heavy I/O, what is the easiest way to determine what directory/files are being used the most?

TIA,

Sean
5 REPLIES 5
Rodney Hills
Honored Contributor
Solution

Re: How to determine which directory in a filesystem is most used.

"glance" is able to monitor disk activity and with the "F" option allow you to see which files are open for a specific process.

You can monitor the "byte offset" value for each file and see which files have the most activity.

You can also get the byte offset information using the "lsof" command (see porting and archive).

HTH

-- Rod Hills
There be dragons...
James R. Ferguson
Acclaimed Contributor

Re: How to determine which directory in a filesystem is most used.

Hi Sean:

Try 'glance'. Look at I/O by filesystem.

Regards!

...JRF...
Christopher McCray_1
Honored Contributor

Re: How to determine which directory in a filesystem is most used.

Hello,

If you have glance, you can drill down to IO by filesystem (gpm gives the GUI version)

Hope this helps

Chris
It wasn't me!!!!
leereg_6
Advisor

Re: How to determine which directory in a filesystem is most used.

Hi,
A silly question:
Does glance and lsof is a add-in feature or build-in feature of OS?


Thanks!
Patrick Chim
Trusted Contributor

Re: How to determine which directory in a filesystem is most used.

Hi,

You can have a 30-days trial version of Glance or you have to buy it from HP.

For lsof, you can download it from
http://hpux.cs.utah.edu/

If you are running 11i, you have to untar the files and compile the program by yourself
i.e. `make install`. Just look at the README and you will have the steps.

syntax : lsof -i tcp:9009

and it will show the process that `hold` this port.

Regards,
Patrick