Test hard disk read/write speed in CentOS

Source: Internet
Author: User
A chance of accidentally installing a DB database found that the installation was slow, so the system engineer suggested that I test the hard disk read/write speed and found that the read/write speed was only about 200, the machine is dellR710 memory 12g operating system is centos664 bit later, the centos5.764 bit is reinstalled, and other changes have not been made. The test speed is as follows (3 times): R710CENTOS5.764-bit (12 GB memory) [root @ localhostdata] # ddif =/dev/zer

A chance of accidentally installing a DB database found that the installation was slow, so the system engineer suggested that I test the hard disk read/write speed and found that the read/write speed was only about 200,

The machine is dellR710 memory 12G operating system is centos 6 64-bit


Later, centos 5.7 64-bit was reinstalled,

No other changes have been made.

The test speed is as follows (3 times ):

R710 CENTOS 5.7 64-bit (12 GB memory)

[Root @ localhost data] # dd if =/dev/zero of =/data/test bs = 1 M count = 1024
1024 + 0 records in
1024 + 0 records out
1073741824 bytes (1.1 GB) copied, 1.30085 seconds, 825 MB/s

[Root @ localhost data] # dd if =/dev/zero of =/data/test bs = 1 M count = 1024
1024 + 0 records in
1024 + 0 records out
1073741824 bytes (1.1 GB) copied, 1.39172 seconds, 772 MB/s
[Root @ localhost data] # dd if =/dev/zero of =/data/test bs = 1 M count = 1024
1024 + 0 records in
1024 + 0 records out
1073741824 bytes (1.1 GB) copied, 1.26415 seconds, 849 MB/s

Test other machines (refer to machine configuration again)

So in the other 710, the 32-bit centos5.4 with the same configuration: (12 GB memory)

[Root @ db1 ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
1024 + 0 records in
1024 + 0 records out
1073741824 bytes (1.1 GB) copied, 3.04131 seconds, 353 MB/s
[Root @ db1 ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
1024 + 0 records in
1024 + 0 records out
1073741824 bytes (1.1 GB) copied, 2.23476 seconds, 480 MB/s
[Root @ db1 ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
1024 + 0 records in
1024 + 0 records out
1073741824 bytes (1.1 GB) copied, 1.45485 seconds, 738 MB/s
[Root @ db1 ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
1024 + 0 records in
1024 + 0 records out
1073741824 bytes (1.1 GB) copied, 1.30145 seconds, 825 MB/s
[Root @ db1 ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
1024 + 0 records in
1024 + 0 records out
1073741824 bytes (1.1 GB) copied, 1.3871 seconds, 774 MB/s

Cache R610 centos 6.0 64-bit (16 GB memory)

[Root @ cache ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
Recorded 1024 + 0 reads
Records 1024 + 0 writes
1073741824 bytes (1.1 GB) copied, 7.08763 seconds, 151 MB/second
[Root @ cache ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
Recorded 1024 + 0 reads
Records 1024 + 0 writes
1073741824 bytes (1.1 GB) copied, 8.12101 seconds, 132 MB/second
[Root @ cache ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
Recorded 1024 + 0 reads
Records 1024 + 0 writes
1073741824 bytes (1.1 GB) copied, 6.66439 seconds, 161 MB/second
[Root @ cache ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
Recorded 1024 + 0 reads
Records 1024 + 0 writes
1073741824 bytes (1.1 GB) copied, 7.80735 seconds, 138 MB/second
[Root @ cache ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
Recorded 1024 + 0 reads
Records 1024 + 0 writes
1073741824 bytes (1.1 GB) copied, 7.87918 seconds, 136 MB/second

WEB1 R610 CENTOS 6 64 (8 GB memory)

[Root @ web1 ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
Recorded 1024 + 0 reads
Records 1024 + 0 writes
1073741824 bytes (1.1 GB) copied, 6.15494 seconds, 174 MB/second
[Root @ web1 ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
Recorded 1024 + 0 reads
Records 1024 + 0 writes
1073741824 bytes (1.1 GB) copied, 5.95299 seconds, 180 MB/second
[Root @ web1 ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
Recorded 1024 + 0 reads
Records 1024 + 0 writes
1073741824 bytes (1.1 GB) copied, 5.7888 seconds, 185 MB/second

LVS R610 CENTOS 5.4 32-bit configuration is exactly the same as WEB1 (8 GB memory)

[Root @ lb1 ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
1024 + 0 records in
1024 + 0 records out
1073741824 bytes (1.1 GB) copied, 3.34055 seconds, 321 MB/s
[Root @ lb1 ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
1024 + 0 records in
1024 + 0 records out
1073741824 bytes (1.1 GB) copied, 5.97799 seconds, 180 MB/s
[Root @ lb1 ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
1024 + 0 records in
1024 + 0 records out
1073741824 bytes (1.1 GB) copied, 1.60396 seconds, 669 MB/s
[Root @ lb1 ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
1024 + 0 records in
1024 + 0 records out
1073741824 bytes (1.1 GB) copied, 1.59689 seconds, 672 MB/s
[Root @ lb1 ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
1024 + 0 records in
1024 + 0 records out
1073741824 bytes (1.1 GB) copied, 2.81365 seconds, 382 MB/s

6.0 64-bit, the speed is much worse than 5.7 64-bit,

Because 710 of 64-bit data has been deleted, there is no data, but at that time, the test basically did not exceed 250,

Is this a 6.0 64 BUG? What is it? it seems that the system has to be changed to 5 after confirmation in the future.


In addition, two R310 tests with the same configuration (except memory:

Configuration is much lower than 710 and 610:

CENTOS 5.4 32-bit 12 GB memory

[Root @ beta1 ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
1024 + 0 records in
1024 + 0 records out
1073741824 bytes (1.1 GB) copied, 1.14459 seconds, 938 MB/s
[Root @ beta1 ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
1024 + 0 records in
1024 + 0 records out
1073741824 bytes (1.1 GB) copied, 1.15009 seconds, 934 MB/s
[Root @ beta1 ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
1024 + 0 records in
1024 + 0 records out
1073741824 bytes (1.1 GB) copied, 1.14913 seconds, 934 MB/s
[Root @ beta1 ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
1024 + 0 records in
1024 + 0 records out
1073741824 bytes (1.1 GB) copied, 1.14882 seconds, 935 MB/s

CENTOS 6 64-bit, 4 GB memory

[Root @ admin ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
Recorded 1024 + 0 reads
Records 1024 + 0 writes
1073741824 bytes (1.1 GB) copied, 5.16662 seconds, 208 MB/second
[Root @ admin ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
Recorded 1024 + 0 reads
Records 1024 + 0 writes
1073741824 bytes (1.1 GB) copied, 10.1894 seconds, 105 MB/second
[Root @ admin ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
Recorded 1024 + 0 reads
Records 1024 + 0 writes
1073741824 bytes (1.1 GB) copied, 10.1708 seconds, 106 MB/second
[Root @ admin ~] # Dd if =/dev/zero of =/data/test bs = 1 M count = 1024
Recorded 1024 + 0 reads
Records 1024 + 0 writes
1073741824 bytes (1.1 GB) copied, 10.3586 seconds, 104 MB/second


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.