Iostat-x 1 Viewing the IO load on the disk

Source: Internet
Author: User


Linux System has a performance problem, generally we can use Top.iostat,vmstat and other commands to view the initial location problem. Where iostat can provide us with rich IO status data
$ iostat-x-1

AVG-CPU:%user%nice%system%iowait%steal%idle

10.43 0.00 1.51 1.51 0.00 86.56

device:rrqm/s wrqm/s r/s w/s rkb/s wkb/s avgrq-sz avgqu-sz await r_await w_await SVCTM%util

SDA 4477.00 9.00 951.00 13.00 24288.00 2492.00 55.56 0.21 0.22 0.21 0.92 0.17 16.00


< Span style= "font-size:11pt" >%user : show the percentage  of  cpu  utilization  that  occurred  while executing at the user Level (application).

%nice   : Show The percentage of CPU utilization that occurred While executing is at the user level with a nice priority.                 

%system:Show The percentage of CPU utilization that occurredWhile executing at the system level (kernel).

% Iowait: show  the  percentage  of  Time that the CPU or CPUs were &NBSP;&NBSP; idle during which the system had an outstanding disk  I/O &NBSP;&NBSP; request.

% Steal : show   The percentage of time spent in involuntary wait by  the virtual CPU or CPUs while The hypervisor was  servic< /span>ing another virtual processor.                   

% Idle : show  the  percentage  of  time that the CPU or CPUs were &NBSP; idle and the system did not has an" Span style= "White-space:pre" > outstanding disk  I/O &NBSP;&NBSP; &NBSP; request.    

rrqm/s: The number of read operations per second for the merge. Delta (rmerge)/swrqm/s: The number of write operations per second for the merge. Delta (wmerge)/sr/s: Number of Read I/O devices completed per second. Delta (RIO)/sw/s: Number of write i/0 devices completed per second. Delta (WIO)/srsec/s: Number of Read sectors per second. Delta (rsect)/swsec/s: Number of Write sectors per second. Delta (wsect)/srkb/s: Reads K bytes per second. is half the rsec/s because the size of each sector is 512 byteswkb/s: Writes K bytes per second. It's half the wsec/s.Avgrq-sz: The average data size (sector) per device I/O operation. Delta (rsect+wsect)/delta (rio+wio)Avgqu-sz: Average I/O queue length. Delta (AVEQ)/s/1000 (because the Aveq unit is milliseconds)await: The average wait time (in milliseconds) for each device I/O operation. Delta (ruse+wuse)/delta (rio+wio)SVCTM: The average service time (in milliseconds) per device I/O operation. Delta (use)/delta (rio+wio)%util: How much time in a second is spent on I/O operations, or how many times in a second I/O queues are non-empty. Delta (USR)/s/1000 (because the use unit is in milliseconds)
If the%util is close to 100%, indicating too many I/O requests, the I/O system is full load, the disk may have bottlenecks, the general%util greater than 70%,i/o pressure.
SVCTM generally less than await (because the waiting time for waiting requests is repeatedly computed), the size of SVCTM is generally related to disk performance, cpu/memory load will have an impact on it, too many requests willindirectly leads to an increase in SVCTM. The size of an await typically depends on the service time (SVCTM) and the length of the I/O queue and the emit mode of the I/O request. If SVCTM is closer to await, I/O has littlewait time, if the await is much larger than SVCTM, the I/O queue is too long, the response time of the application gets slower, and if the response time is more than the user can tolerate, you can consider replacing the faster disk,integer kernel elevator algorithm, optimize application, or upgrade CPU
the queue Length (AVCQU-SZ) can also be used as an indicator for measuring the system I/O load, but because Avcqu-sz is averaged over a unit time, it does not reflect instantaneous I/O flooding.

Iostat-x 1 Viewing the IO load on the 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.