Generally, after installing the centos system, the newly installed centos system executes the & ldquo; dd & rdquo; 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. I. disk continuous write test (268 MB) ddif =/dev/zeroof = kwxgdbs = 64 kcount = 4 koflag = dsync 2. disk continuous read
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=64k count=4k oflag=dsync
II. continuous disk read test (268 MB)
dd if=kwxgd of=/dev/zero bs=64k count=4k 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.