Linux Common Operations Command

Source: Internet
Author: User

Iostat to monitor IO performance

#iostat-D-K 1 20

Display Throughput Kb_read/s,kb_write/s,tps

Device:tps kb_read/s kb_wrtn/s Kb_read kb_wrtnsda7.00        64.00        24.00          -          -sda10.00         0.00         0.00          0          0sda20.00         0.00         0.00          0          0Sda30.00         0.00         0.00          0          0sda40.00         0.00         0.00          0          0Sda57.00        64.00        24.00          -          -

TPS: The number of times a device transmits per second (a single transmission may contain multiple IO requests);

KB_READ/S: The amount of data read per second, KB_WRTN/S: The amount of data written to the device per second;

Kb_read and Kb_wrtn, respectively, are read and write quantities, in kilobytes.

#iostat-D-k-x 1 20

Show detailed information, mainly see device usage%util and response time await

device:rrqm/s wrqm/s r/sW/s rkb/s wkb/s avgrq-sz Avgqu-sz await SVCTM%UTILSDA0.00     0.00  4.00  0.00    64.00     0.00    32.00     0.02    6.00   6.00   2.40sda10.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00sda20.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00Sda30.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00sda40.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00Sda50.00     0.00  4.00  0.00    64.00     0.00    32.00     0.02    6.00   6.00   2.40

rrqm/s: How many times per second the read operation of the device is merged (when different session operations access the same data on the device at the same time), and the wrqm/s: how many times per second the device's write operation is merge;

RKB/S: The fan block scanned by the read operation per second, wkb/s: the fan block scanned by the write operation per second, the number of read operations per second processed by the r/s, and the number of write operations processed per second w/s

Await: The average time it takes to process an IO operation;

%util: Device IO utilization, calculated by 0.6 seconds for IO operation in 1 seconds, then%util is 60%

#iostat-C 1 20

View CPU Information

AVG-CPU:  %user   % nice%system%iowait  %steal   %idle           0.63     0.00    0.25    0.00    0.00   99.12

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.