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
Just pass in custom parameters HTML <div id=&q...
Preface When I was typing my own personal blog, I...
Table of contents 1. Introduction 2. The first me...
The editor also shares with you the corresponding...
This article mainly introduces the analysis of th...
This article example shares the specific code of ...
Management of input and output in the system 1. U...
brew install nginx Apple Mac uses brew to install...
Problem Description Recently, there was a MySQL5....
All tags must be lowercase In XHTML, all tags must...
Use div to create a mask or simulate a pop-up wind...
What is the main function of Docker? At present, ...
How to install and configure mysql-5.7.5-m15-winx...
In front-end development, $ is a function in jQue...
Purchase Certificate You can purchase it from Ali...