Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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, where I was told to ask here.

share|improve this question

Have you seen pidstat?

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

Your Answer


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.