Linux hard disk performance analysis command

Source: Internet
Author: User
Command: iostat-x-k1 command parameter description: -x // Obtain more statistical information-k // some major powers that use block as the unit use Kilobytes as the Unit 1 // The Data Display is refreshed every 1 second. please refer to an output instance.: output description: Device // Device object Command:
Iostat-x-k 1
Command parameter description:
-X // Obtain more Statistics
-K // some powers that use block as the unit use Kilobytes as the unit
1 // data display refresh every 1 second

See an output instance:


Output description:
Device// Device object
Rrqm/s// The number of merge read operations per second. That is, delta (rmerge)/s
Wrqm/s// Number of merge write operations per second. That is, delta (wmerge)/s
R/s// The number of read I/O devices completed per second. That is, delta (rio)/s
W/s// The number of write I/O devices completed per second. That is, delta (wio)/s
RkB/s// Read K bytes per second. It is half of rsect/s because the size of each slice is 512 bytes. (Computing required)
WkB/s// Write K bytes per second. Half of wsect/s. (Computing required)
Avgrq-sz// Average data size (slice) of each device I/O operation ). Delta (rsect + wsect)/delta (rio + wio)
Avgqu-sz// Average I/O queue length. That is, delta (aveq)/s/1000 (because aveq is measured in milliseconds ).
Await// Average wait time (in milliseconds) for each device I/O operation ). That is, delta (ruse + wuse)/delta (rio + wio)
Svctm// Average service time for each device I/O operation (MS ). That is, delta (use)/delta (rio + wio)
% Util// The percentage of time in one second is used for I/O operations, that is, delta (use)/s/1000 (because use is measured in milliseconds)

How can I use this data to analyze problems?
1. if % util has a high probability of 100%, it indicates that too many I/O requests are generated and the I/O system is fully loaded. this disk may have a bottleneck.
2. generally, svctm is smaller than await (because the wait time of the simultaneously waiting request is calculated repeatedly ).
The size of the svctm is generally related to the disk performance. the CPU/memory load will also affect the capacity of the svctm. excessive requests may indirectly increase the capacity of the svctm.
If svctm is close to await, I/O has almost no waiting time.
If await is much larger than svctm, it indicates that the I/O queue is too long and the response time of the application is slow;
If the response time exceeds the allowable range (% util 100%), you can consider replacing a faster disk.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.