I have a problem with monitoring of i/o stream in the particular directory(amount of read and written bytes during specified period). I have been trying to use iostat, inotifywait and inotifywatch, but unfortunately they measure only activity upon directory (open, close, modify, etc.) but not gives info about read and written bytes.
An option is to use the
And then analyse the
As far as I know there is no standard tool capable of doing this. Yet I can think of several ways of achieving this, each with their drawbacks.
If you know which process will access the file/directory and you are sure this process does only few or no other I/O you can parse
If you don't know which process will access the file/directory (but you are sure these processes do only few or no other I/O) you have to watch the location using the
If the process determined does other I/O it gets a little bit more complicated. You have to
All of these solutions aren't accurate to a single byte but can give you a good estimate.