How to Check Which Process is Occupying Disk IO in Linux

Publish: 2016-12-24 | Modify: 2018-08-16

Method 1:

$ iotop -oP

Meaning of the command: Only display processes with I/O activity

Test result:

image

Method 2:

$ pidstat -d 1

Meaning of the command: Show I/O statistics, update every second

Test result:

image

Note:

Both commands require kernel versions 2.6.20 and later only.

For more parameters, please refer to the man manual.

Original article from: linux查看哪个进程占用磁盘IO , all rights reserved by the original author. If there is any infringement, please contact QQ: 337003006 for removal.


Comments