Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I need to monitor the I/O statistics of a process that writes to disk. The purpose is to avoid write rates too high for long periods.

I know there's iostat tool to accomplish this task on a system-wide perspective.

Is there something similar to monitor single process disk usage?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

What you want is iotop. Most distributions have a package for it, usually called (logically enough) iotop.

One very cool command (at least, on a system that isn't very busy) is iotop -bo. This will show I/O as it occurs. It also has options to only monitor specific processes or processes owned by specified users.

share|improve this answer
    
thank you, exactly what I wanted :) I ca also filter output of iotop -boP with grep to show only stats of the process I want :) –  Matteo Ceccarello Sep 23 '11 at 15:08
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.