How to find which process using, while getting High Disk I/O?

In Our Production server I/O was very high, I Recived mail that Disk I/O was high, is it possible how to find which process Used this much I/O ?

Iam Using Ubuntu server 12.04.

Linux 3.9.3-x86_64-server33 (Li473-1200)         07/23/2014      _x86_64_        (8 CPU)
12:05:01 AM       DEV       tps  rd_sec/s  wr_sec/s  avgrq-sz  avgqu-sz     await     svctm     %util

12:25:03 PM  dev202-0    232.89  10349.03   9190.80     83.90     16.32     69.58      0.52     12.03
12:25:03 PM dev202-16      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
12:35:02 PM  dev202-0    512.07  21177.74  21592.79     83.52     19.58     38.46      0.48     24.84
12:35:02 PM dev202-16      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00

did u try

top

command?

top doesn't help me to find the high I/O

Did you try iotop ?

You may have to install it using sudo apt-get install iotop

1 Like

yes i found the particular service using iotop and fixed the issue, redis-server eating my cpu got fixed by flushing,

# redis-server FLUSHDB 

,

# redis-server FLUSHALL

top command should give you the output as per your requirement. You may need to install the package if required.

Also you can try ps -aef command and check if there are any idle/hung processes.