Background - Online Alert An online server issued an alarm, and the disk utilization disk.util > 90, and the alarm continued. After logging in to the server, I used iostat -x 1 10 to view the relevant disk usage information. The relevant screenshots are as follows: # If there is no iostat command, use yum install sysstat to install it # iostat -x 1 10 As can be seen from the above figure, the %util[IO] of the vdb disk is almost 100% due to frequent data reading. Other Field Descriptions Device: device name rrqm/s: The number of read requests merged to the device per second. That is, delta(rmerge)/s avgrq-sz: The average amount of data per device I/O operation (in sectors). That is, delta(rsec+wsec)/delta(rio+wio) Find the process with high IO usage Through the iotop command If the command is not available, install it using the yum install iotop command. # iotop -oP This command allows you to see more detailed information, such as process number, disk read volume, disk write volume, IO percentage, and the commands involved. "Both grep commands cause large IO read volumes." Through the pidstat command # Command meaning: Display I/O statistics, updated once a second # pidstat -d 1 It can be seen that the grep command occupies a large amount of read IO. Then you can view the relevant process information based on the PID. Note: The PID in this figure is different from that in the previous figure because the process in the previous figure has been executed, and this figure is the process generated after the execution [both execute the same script]. Summarize The above is what I introduced to you about how to check disk IO in Linux and find out the processes that occupy a lot of IO read and write. I hope it will be helpful to you! You may also be interested in:
|
<<: JavaScript to implement the web version of Gobang game
>>: Detailed explanation of MySQL 30 military rules
Preface Zabbix is one of the most mainstream op...
Table of contents PXE implements unattended batch...
Table of contents Overview Why choose a framework...
Usage of alter command in mysql to edit table str...
Table of contents Undo Log Undo Log Generation an...
There is another tree structure Javascript object...
Table of contents 1. Integrate Ant Design Vue 2. ...
<br />The color of a web page is one of the ...
Previously, my boss asked me to make a program th...
This article shares the MySQL 5.7 installation an...
By default, the reading and writing of container ...
This error is often encountered by novices. This ...
The transaction log records the operations on the...
Check the transaction isolation level In MySQL, y...
Let’s take a look first. HTML source code: XML/HT...