Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to find the process that is doing io frequently?

Tags:

linux

command

io

I am using ubuntu. There are some processes that are doing io frequently on my server, even a "ls" command will cost 1 second to execute. I want to find out which process is doing io so heavily, is there any good command or tool?

Thanks.

like image 637
cheng Avatar asked Mar 02 '11 12:03

cheng


People also ask

How can I tell which process is using disk IO?

By using iotop command, you can monitor the disk utilization by individual processes. You will get the following output: By typing the iotop command with o option, you will get the actual I/O activity. With the help of iostat command, you will get the individual hard disk I/O activity.

How do you check which process is doing more IO in Linux?

The iotop command is top-like utility for looking at disk I/O. It gathers I/O usage information provided by the Linux kernel so that you can get an idea which processes are most demanding in terms in disk I/O.

How do I check top IO consuming process?

To check which processes are actually utilizing the disk IO, run the iotop command with -o or –only option to visualize it. Details: IO: It shows Input/Output utilization of each process, which includes disk and swap. SWAPIN: It shows only the swap usage of each process.


1 Answers

You can use iotop to find processes that are io heavy.

like image 162
Šimon Tóth Avatar answered Nov 15 '22 18:11

Šimon Tóth