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:
Method 2:
$ pidstat -d 1
Meaning of the command: Show I/O statistics, update every second
Test result:
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.
I come from China and I am a freelancer. I specialize in Linux operations, PHP, Golang, and front-end development. I have developed open-source projects such as Zdir, ImgURL, CCAA, and OneNav.