CentOS raid Hard Drive Speed Test

Source: Internet
Author: User
Tags ide hard drive

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: 19328MB in 1.99seconds = 9691.24MB/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: 19632MB in 1.99seconds = 9844.20MB/sec

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.