Linux: Is there something similar to "top" for I/O?

54

7

My disk often is utilized, but top (and htop, a custom replacement) show nothing suspicious.

Is there a way to sort processes by I/O (more specific: disk) utilization?

EDIT
Found out using iotop that those strange processes are flush-8:16 and jbd2/sdb3-7. Seems to have to do with usual filesystem operations.

java.is.for.desktop

Posted 2010-03-02T16:17:38.390

Reputation: 1 458

http://unix.stackexchange.com/questions/55212/how-can-i-monitor-disk-io – Ciro Santilli 新疆改造中心法轮功六四事件 – 2016-05-18T12:37:37.463

1If I'm correct flush and jbd concerns the sync of the journal (FS metadata) to the disk. Which means you must have some processes either writing to the disk or reading a lot of data and you have the atime option on your mount. I don't recommend this because some software relies on it (mutt and I have heard one backup tool) but you can set your mount to relatime or even "better" noatime. The latter will completely stop updating the access time (which incures a disk write) each time a file is read. – Huygens – 2012-07-27T21:48:50.957

Answers

55

Have you tried iotop ?

You may need to install it before. Also, it depends on a kernel feature that may or may not enabled in your specific distribution.

b0fh

Posted 2010-03-02T16:17:38.390

Reputation: 2 005

2Root access needed, FYI. – Paul Draper – 2015-01-24T17:27:57.790

1Works on Mac OS X, too. Not sure that it is going to help with the problem at hand, though. – dmckee --- ex-moderator kitten – 2010-03-02T16:27:20.037

3wow. That's fantastic. 15+ years of admin work and I've never run into that. Thanks! – skarface – 2010-03-02T17:06:39.193

23

You might want to give atop a try. It seems to do a good job of letting you know what is going on.

afluth

Posted 2010-03-02T16:17:38.390

Reputation: 331

1Also no root or suid needed. – Rolf – 2018-02-25T21:08:32.797

Seems to be better than iotop because it also shows IO busy percent. – sorin – 2014-03-18T13:36:30.070

0

iostat is still the king of detailed I/O information.

CivMeierFan

Posted 2010-03-02T16:17:38.390

Reputation: 109