40

How to track disk usage (write/read and other cool stuff) in realtime with fashion of top in the only right system in shell?

It would be cool if it could monitor specific directory.

Chenmunka
  • 3,228
  • 13
  • 29
  • 38
Szymon Toda
  • 1,619
  • 5
  • 19
  • 28

1 Answers1

63

There's a tool (top like) to track I/O :

iotop -oPa

enter image description here

$ apt-cache show iotop
(...)
Description-en: simple top-like I/O monitor
 iotop does for I/O usage what top(1) does for CPU usage. It watches I/O
 usage information output by the Linux kernel and displays a table of
 current I/O usage by processes on the system. It is handy for answering
 the question "Why is the disk churning so much?".
 .
 iotop can only run under a Linux 2.6.20 or later kernel built with the
 CONFIG_TASKSTATS, CONFIG_TASK_DELAY_ACCT, CONFIG_TASK_IO_ACCOUNTING and
 CONFIG_VM_EVENT_COUNTERS build config options on.
Homepage: http://guichaz.free.fr/iotop/
Gilles Quénot
  • 4,226
  • 1
  • 27
  • 28