I am interested in getting statistics about filesystem reads and writes, specifically to an NFS mount.
I know there are many tools such as iostat
, nfsstat
and inotifywait
but there are issues I have with each program.
I cannot use anything that would require me to walk the filesystem or explicitly mention file names due to the complexity of the hierarchy.
Is there a program that can do the following on demand?
- show reads / writes
- show path of read / write
- show byte quantity
By on demand, I mean on execution time. Point (3) is not mandatory.
For example, I would like to be able to do something like the following:
$ magicIOprogram
read, 512, /path/to/file1
read, 256, /path/to/file2
write, 15, /path/to/file3
write, 10562, /path/to/file4
If there are ways to get this information using the aforementioned tools that I am unaware of, it would also be a adequate solution.
iosnoop
fromperf-tools
does some of what you're asking for, but I imagine it won't work on NFS. (See unix.stackexchange.com/questions/205147/… for an example.) You could look attcpdump
and Wireshark, perhaps there's an NFS analyser which would give you the necessary information...iosnoop
.inotify
set of tools? I can't use anything that would need to walk the filesystem, the hierarchy is very complex.