Performance Test Analysis _iostat

Source: Internet
Author: User

Iostat for output CPU and disk I/O-related statistics

Iostat Syntax

Usage: iostat [options] [< time interval > [< times >]]

Options:

[-c] [-d] [-h] [-k |-m] [-X] [-y] [--j {ID | LABEL | PATH | UUID |  -T]-G < user group name >] [-P [< device > [  ,...] | < equipment > [...] | ALL]

Common Options explained:

-C: Output avg-CPU results separately, excluding device results -D: Output device results Separately, excluding CPU results -k/-m: Output results in kb/MB instead ofsector number -x: Output More detailed IO device statistics interval/count: Each output interval, count indicates the number of outputs, and no count represents the loop output
Common examples

1, Iostat, The result is statistics from the system boot to the current execution time

$ iostatlinux3.10.0-514.26.2. el7.x86_64 (Vm_17_110_centos) October 22, 2017 _x86_64_ (4CPU) Avg-CPU:%user% Nice%system%iowait%steal%Idle1.49    0.00    0.65    0.29    0.00   97.58Device:tps Kb_read/s kb_wrtn/s Kb_read Kb_wrtnvda3.27         6.38        48.27    7044109   53255704VDB0.00         0.00         0.00        944          0VDC12.22       145.74       120.85  160792201  133326268

Output meaning:

avg-cpu: Overall CPU usage statistics, for multi-core CPUs, here is the average of all CPUs. Focus on the Iowait value, which indicates when the CPU is waiting for the IO request to finish.

Device: IO statistics for each disk device. The columns have the following meanings:

Device: Unit name in SDX form TPS: Number of IO read and write requests per second process Blk_read/S: Number of Read sectors per second (512bytes for one sector) Blk_wrtn/s: Number of write sectors per second Blk_read: Total number of read sectors in the sampling interval BLK_WRTN: Total number of write sectors in the sample time interval

2, Iostat-x-k-d 1 2. Detailed details of every 1S output disk IO are sampled 2 times in total.

$ iostat-x-K1 2Linux3.10.0-514.26.2. el7.x86_64 (Vm_17_110_centos) October 22, 2017 _x86_64_ (4CPU) Avg-CPU:%user% Nice%system%iowait%steal%Idle1.49    0.00    0.65    0.29    0.00   97.58DEVICE:RRQM/s wrqm/s r/sW/s rkb/s wkb/s avgrq-sz avgqu-sz await r_await w_await SVCTM%Utilvda0.00     6.85    0.67    2.60     6.38    48.27    33.39     0.02    5.72    5.46    5.78   0.27   0.09VDB0.00     0.00    0.00    0.00     0.00     0.00    14.75     0.00    1.55    1.55    0.00   1.55   0.00VDC0.06    14.87    6.91    5.31   145.72   120.84    43.62     0.11    9.04    9.92    7.89   0.89   1.09avg-CPU:%user% Nice%system%iowait%steal%Idle0.50    0.00    0.25    0.00    0.00   99.25DEVICE:RRQM/s wrqm/s r/sW/s rkb/s wkb/s avgrq-sz avgqu-sz await r_await w_await SVCTM%Utilvda0.00    14.00    0.00    7.00     0.00    84.00    24.00     0.03    3.57    0.00    3.57   0.71   0.50VDB0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00VDC0.00     2.00    0.00   27.00     0.00   124.00     9.19     0.32   11.67    0.00   11.67   0.48   1.30

The above columns have the following meanings:

RRQM/S: The number of Read requests per second for the device is merged, and the file system merges requests to read the same block (block) WRQM/S: The number of times per second that a write request to the device is merged R/s: Reads completed per second W/S: Writes completedper second RKB/s: Amount of Read data per second (KB) WkB/S: Amount of Write data per second in kilobytes (KB) AVGRQ-  SZ: Average amount of data per IO operation (unit of sector) Avgqu-sz: Average waiting time for IO request Queue Length await: Average per IO request latency (including wait and processing time, milliseconds) SVCTM: Average processing time per IO request (in milliseconds)%util: The time ratio used for IO operations in cycles, that is, the time ratio of IO queue non-empty

Performance Test Analysis _iostat

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.