CentOS raid Hard Drive Speed Test
Syntax: hdparm [-partition hiiqttvyyz] [-a <cache partition>] [-A <0 or 1>] [-c <I/O mode>] [-d <0 or 1>] [-k <0 or 1>] [-K <0 or 1>] [-m <Number of partitions>] [-n <0 or 1>] [-p <PIO mode>] [-P <Number of partitions>] [-r <0 or 1>] [-S <time>] [-u <0 or 1>] [-W <0 or 1>] [-X <transmission mode>] [device]
Note: hdparm can be detected to display and set the parameters of the IDE or SCSI hard disk.
Parameters:
-A <cache partition> sets the number of partitions that are pre-stored in the block area when the file is read. If the <cache partition> option is not added, the current setting is displayed.
-A <0 or 1> enables or disables the cache function when reading files.
-C <I/O mode> sets the IDE32-bit I/O mode.
-C: detects the power management mode of the IDE hard disk.
-D <0 or 1> sets the DMA mode of the disk.
-F writes the data in the memory buffer to the hard disk and clarifies the buffer.
-G: displays the disk's magnetic track, Head, magnetic area, and other parameters.
-H: displays help.
-I displays the hardware specification information of the hard disk, which is provided by the hard disk itself at startup.
-I directly reads the hardware specification information provided by the hard disk.
-K <0 or 1> to reset the hard disk, retain the-dmu parameter settings.
-K <0 or 1> to reset the hard disk, retain the-APSWXZ parameter settings.
-M <number of magnetic partitions> sets the number of partitions accessed by multiple hard disk partitions.
-N <0 or 1> indicates an error that occurs when the hard disk is written.
-P <PIO mode> sets the PIO mode of the hard disk.
-P <number of magnetic partitions> sets the number of partitions in the cache of the hard disk.
-When executing subsequent parameters, q does not display any information on the screen.
-R <0 or 1> sets the read/write mode of the hard disk.
-S <time> sets the waiting time before the hard disk enters power-saving mode.
-T to evaluate the Read efficiency of the hard disk.
-T to evaluate the Read efficiency of the hard disk cache.
-U <0 or 1> allows other interruption requests to be executed simultaneously during hard disk access.
-V displays the hard disk settings.
-W <0 or 1> sets the hard disk write cache.
-X <transmission mode> sets the transmission mode of the hard disk.
-Y enables the IDE hard drive to power-saving mode.
-Y: Enable the IDE hard drive to sleep.
-Z disables automatic power saving for some Seagate hard disks.
General disk test:
# hdparm -t /dev/sda
/dev/sda:
Timing buffered disk reads:
316
MB in
3.02
seconds =
104.71
MB/sec
# hdparm -T /dev/sda
/dev/sda:
Timing cached reads:
19328
MB in
1.99
seconds =
9691.24
MB/sec
Two RAID 0 disks:
# hdparm -t /dev/sdb
/dev/sdb:
Timing buffered disk reads:
622
MB in
3.01
seconds =
206.89
MB/sec
# hdparm -T /dev/sdb1
/dev/sdb1:
Timing cached reads:
19632
MB in
1.99
seconds =
9844.20
MB/sec