Linux, file read speed monitoring

I have a custom application that has a bunch of files. I can see the file descriptors are opened by the process using "lsof" and I can see the files you access using "watch -d" ls -alh "and looking at the mtime / ctime. However, I would like to see the data rate which are read / written to these files IE: I need to determine if a single file is being read at 100 Mbps and the maximum output to disk. Subsequently, are there multiple files that are written at 1 Mbps? not very useful for a particular drive as I need to narrow down which file is clogged.

I'm afraid there is a catch; Ideally, I would need to figure this out without installing any other software or scripting ... Just because it's one of those "very production" systems.

Does anyone know the way? Thanks a lot in advance for any suggestions.

+2


a source to share


1 answer


Departure strace

. It can connect to running processes and specify exactly what functions they are performing and what parameters - with a small script interpreter, you can determine exactly how many bytes are read from which file is being processed during browsing.



+1


a source







All Articles