View IO busy process ID under Linux

  
 

Turn on IO monitoring:

sysctl vm.block_dump=1# or echo 1 >/proc/sys/vm/block_dump

The kernel will dump IO read and write to the diary after booting , use dmesg to view:

dmesg

process read and write block to disk dm-0:

mysqld(7822): READ block 78196624 on dm-0kjournald(529): WRITE block 211136 on dm-0bash(8336): dirtied inode 7391146 (dmesg) on ​​dm-0

Statistically the top 10 processes currently occupying IO:

dmesg

Copyright © Windows knowledge All Rights Reserved