Centos disk continuous read/write Performance Test command

Source: Internet
Author: User

Generally, after installing the centos system, the new server executes the "dd" command and tries to perform a continuous write operation on the disk to determine the disk performance. Here we will summarize the two commands, namely disk write and disk read, which can also serve as a reference.


1. Continuous disk write test (268 MB)
Dd if =/dev/zero of = kwxgd bs = 64 k count = 4 k oflag = dsync

Ii. Continuous disk read Test (268 MB)
Dd if = kwxgd of =/dev/zero bs = 64 k count = 4 k iflag = direct

In the preceding test, a MB file is written through the DD command, and then read by the DD command. Allocation unit size (cluster): 4 K.


Hard Disk Performance Test 1. Install hdparm
Yum install hdparm-y

Ii. Read Evaluation

SSD hard drive. Use the hdparm command for read testing.


Hdparm-t/dev/xvda

Run the above commands by Using SSH. You can use hdparm to evaluate the SSD read rate.

Note: "/dev/xvda" indicates the drive Number of the corresponding disk. Run "fdisk-l" to view the drive number.

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.