Linux iostat Field Parsing

Source: Internet
Author: User

The Iostat is primarily used to monitor the IO load on the system device, iostat the statistics from the start of the system startup when the first run, and then running Iostat displays statistics from the last time the command was run. Users can obtain the required statistics by specifying the number and time of the statistics.

The parameter-D indicates that the device (disk) usage status is displayed; k Some columns that use block are forced to use kilobytes, and 2 indicates that the data appears refreshed every 2 seconds.

Iostat-d-K 1 10device:tps kb_read/s kb_wrtn/s kb_read kb_wrtnsda 39.29 21.14              1.44 441339807 29990031sda1 0.00 0.00 0.00 1623 523sda2 1.32 1.43 4.54 29834273 94827104sda3 6.30 0.85 24.95 17816289 52072524        4sda5 0.85 0.46 3.40 9543503 70970116sda6 0.00 0.00 0.00 550 236SDA7 0.00 0.00 0.00 406 0SDA8 0.00 0.            XX 0.00 406 0SDA9 0.00 0.00 0.00 406 0SDA10 60.68 18.35 71.43 383002263 1490928140device:tps kb_read/s kb_wrtn/s kb_read kb_w          RTNSDA 327.55 5159.18 102.04 5056 100sda1 0.00 0.00 0.00 0 0

Output field Meaning:

TPS: The number of transmissions per second of the device (indicate, transfers per second, were issued to the.). "One-time transfer" means "one-time I/O request". Multiple logical requests may be merged into "one I/O request". The size of the "one transfer" request is unknown. KB_READ/S: The amount of data read from the device (drive expressed) per second, KB_WRTN/S: The amount of data written to the device (drive expressed) per second, Kb_read: Total amount of data read, KB_WRTN: Total amount of data written ; These units are kilobytes.

Iostat also has a more common option- x, which will be used to display and IO-related extended data.

iostat-d-x-k 1 10Device:    rrqm/s wrqm/s   r/s   w/s rsec/s wsec/s    rkb/s    wkb/s Avgrq-sz Avgqu-sz   await  svctm  %utilsda          1.56  28.31  7.80 31.49   42.51    2.92    21.26     1.46     1.16     0.03    0.79   2.62  10.28Device:    rrqm/s wrqm/s   r/s  w/s rsec/s  wsec/s    rkb/s    wkb/s avgrq-sz avgqu-sz   await  svctm  %utilsda          2.00  20.00 381.00  7.00 12320.00  216.00  6160.00   108.00    32.31     1.75    4.50   2.17  84.20

Field Meaning:

RRQM/S: How much of this device-dependent read request is merged per second (when the system call needs to read the data, the VFS sends the request to each FS, and if FS finds that different read requests read the same block data, FS merges the request into the merge); wrqm/ S: How much of this device-related write request per second has been merge. RSEC/S: Number of sectors read per second; wsec/: Number of sectors written per second. Rkb/s:the number of read requests that were issued to the device per second;wkb/s:the number of write requests that were I Ssued to the device per Second;avgrq-sz the average request sector size Avgqu-sz is the length of the average request queue. There is no doubt that the shorter the queue, the better.    await: The  average time (in milliseconds) of processing per IO request. This can be understood as the response time of IO, generally the system IO response time should be less than 5ms, if greater than 10ms is relatively large.         this time includes the queue time and service time, that is, in general, await is greater than SVCTM, their difference is smaller, then the shorter the queue time, conversely, the greater the difference, the longer the queue time, indicating that the system has a problem. SVCTM    represents the average service time (in milliseconds) for each device I/O operation. If the value of SVCTM is close to await, indicating that there is little I/O waiting, disk performance is good, and if the value of await is much higher than the value of SVCTM, the I/O queue waits too long for         the applications running on the system to become slower. %util: All processing io time, divided by total statistic time, in the statistical time. For example, if the statistic interval is 1 seconds, the device has 0.8 seconds to process Io, and 0.2 seconds is idle, then the device's%util = 0.8/1 = 80%, so this parameter implies the device's busy level. Generally, if this parameter is 100% indicates that the device is already running close to full load (of course if it is a multi-disk, even if%util is 100% because of the concurrency of the disk, disk usage may not be the bottleneck).

  

Linux iostat Field Parsing

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.