Getting disk i/o statistics for single process in Linux

6,414

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:
6,414
Matteo Ceccarello
Author by

Matteo Ceccarello

Updated on September 18, 2022

Comments

  • Matteo Ceccarello
    Matteo Ceccarello over 1 year

    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?

  • Matteo Ceccarello
    Matteo Ceccarello over 12 years
    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 :)
  • StatsSorceress
    StatsSorceress over 6 years
    What if you don't have root access, as iotop requires?