View disk read/write status in centos

Source: Internet
Author: User

When the system slows down, we may first focus on the cpu metrics. Sometimes we find that the cpu usage is not high at all, but the system is still stuck, in this case, you may need to consider another thing that affects performance-the disk's IO performance. You can use % wa in the top command to obtain the current io status of the system. If the value remains high, the disk IO may be faulty. In addition, you can use the iotop command to learn more about the program's disk reading and writing speed, command line, pid, and other information. If this command does not exist, run the following command to install it:

Yum-y install iotop

In addition, you can use the dd command to test the disk write performance. For example:

Dd if =/dev/zero of = test bs = 64 k count = 4 k oflag = dsync

After the command is executed, the average speed of disk write operations is displayed.


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.