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
The SSH mentioned here is called Security Shell. ...
1. Download the installation package The installa...
This article uses the gearman+mysql method to imp...
I solved a problem tonight that has been botherin...
<br />The information on web pages is mainly...
Table of contents Preface Scenario simulation Sum...
Write configuration files in server.xml and conte...
Table of contents Main topic 1. Install Docker on...
1 Cause After the project migrated the database a...
To install Jenkins on CentOS 8, you need to use t...
Use profile to analyze slow SQL The main purpose ...
If prompted to enter a key, select [I don’t have ...
<!--[if IE 6]> Only IE6 can recognize <![...
This article shares the specific code of JavaScri...
Earlier, we used Docker to simply deploy the Spri...