Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there a command in linux (more specifically on CentOS 5), that shows how many bytes/sec each file is being read in the past few second. A similar tool in win7 is the Resource Monitor, which can show each file's read speed, and it is helpful diagnosing system performance degrade.

It is duplicate to http://stackoverflow.com/questions/9730509/show-each-files-read-write-rate, where I was told to ask here.

share|improve this question
add comment

1 Answer 1

Have you seen pidstat? http://sebastien.godard.pagesperso-orange.fr/man_pidstat.html

pidstat -d shows disk io for all processes.

Some horribly hacky bash:

lsof myfilename | grep -v PID | awk '{print $2}' | xargs pidstat -d -p

For general system info (which is what use for system performance), I love iostat.

iostat -x

share|improve this answer
    
but pidstat still doesn't trace the IO at file level. –  icando May 17 '12 at 7:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.