41

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,264
Szymon Toda
  • 1,659

1 Answers1

65

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,475
  • 1
  • 30
  • 28