Yum Install hdparm
Parameters:
-a< Cache partition > Set the number of partitions that are pre-deposited into the chunk when the file is read, and if the < cache partition > option is not added, the current setting is displayed.
-a<0 or 1> to start or close the cache when the file is read.
-C<I/O mode > Set IDE32 bit I/O mode.
-C detects the power management mode of the IDE hard drive.
-d<0 or 1> sets the DMA mode of the disk.
-F writes the memory buffer's data to the hard disk, and the buffer is clear.
-G Displays the magnetic track, head, magnetic region and other parameters of the hard drive.
-h displays Help.
-I displays hardware specification information for the hard disk, which is provided by the hard disk itself at boot time.
-I directly reads the hardware specifications provided by the hard drive.
-k<0 or 1> when resetting the hard drive, the settings of the-DMU parameter are preserved.
-k<0 or 1> when resetting the hard drive, the settings of the-APSWXZ parameter are preserved.
-m< number of magnetic regions > Sets the number of partitions accessed by the hard disk.
-n<0 or 1> ignores errors that occur when the hard disk is written.
-p<pio mode > Set the PIO mode of the hard drive.
-p< number of magnetic regions > Set the number of partitions on the hard drive internal cache.
-Q does not display any information on the screen when the subsequent parameters are executed.
-r<0 or 1> sets the read/write mode of the hard drive.
-s< time > Set the wait time before the hard drive enters power save mode.
-T evaluates the read efficiency of the hard drive.
-T evaluates the read efficiency of the hard drive cache.
-u<0 or 1> allows other interrupt requests to be performed while the hard disk is accessed.
-V Displays the relevant settings for the drive.
-w<0 or 1> sets the drive's write cache.
-x< Transfer Mode > set the transmission mode of the hard drive.
-y causes the IDE hard drive to enter power-saving mode.
-y causes the IDE hard drive to enter sleep mode.
-Z turns off the automatic power-down function for some Seagate hard drives.
Hdparm-t/DEV/SDA
Results of a I7 8G 7200rpm machine
Test CentOS hard Drive read and write speed