View Io data with iostat

Source: Internet
Author: User

In Linux, performance problems occur. Generally, we can use top, iostat, free, vmstat, and other commands to locate the problem. Iostat can provide us with a wealth of Io status data.

$ Iostat-D-K 1 10

The-D parameter indicates that the Usage Status of the device (Disk) is displayed.-K indicates that kilobytes is used as the unit of block usage. 1 10 indicates that the data is refreshed every one second, 10 times in total.

TPS: the number of transmissions per second (indicate the number of transfers per second that were issued to the device .). "One transmission" means "one I/O Request ". Multiple logical requests may be merged into one I/O Request ". The size of a "one-time transmission" 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: the total amount of data read; kb_wrtn: the total amount of data written. These units are kilobytes.

Common usage:

$ Iostat-D-K 1 10 # view TPS and throughput Information

Iostat-D-X-K 1 10 # view device usage (% util), response time (await)

Iostat-C 1 10 # view CPU status

Original article:

Http://www.orczhou.com/index.php/2010/03/iostat-detail/

Http://www.cnblogs.com/mfryf/archive/2012/03/12/2392000.html

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.