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.