About Linux under DD Test disk PIT!!

Source: Internet
Author: User

In Linux you want to know the disk read and write speed, the database can withstand much pressure is also very helpful. There are many ways to do this. But what I'm going to say today is about DD.

A. With regard to the readings

Time DD If=/dev/zero of=/var/test bs=2m count=3000

650) this.width=650; "title=" Dda.png "src=" http://s2.51cto.com/wyfs02/M01/80/43/ Wkiom1c8mrxcobinaaaxahz6wmq456.png "alt=" Wkiom1c8mrxcobinaaaxahz6wmq456.png "/>

Wow, so fast speed, I can't believe my eyes. If you do not know the configuration of the server, I think it is really so fast!!


B. Test and write again.

Time DD if=/var/test Of=/dev/null bs=2m

650) this.width=650; "title=" Ddb.png "src=" http://s3.51cto.com/wyfs02/M02/80/41/wKioL1c8M_Ww3bP-AAAu_ Rg9qq8036.png "alt=" Wkiol1c8m_ww3bp-aaau_rg9qq8036.png "/>

Don't believe in your own eyes.

C. Another one.

Time DD If=/dev/vda3 of=/var/2017 bs=2m count=300

650) this.width=650; "title=" Ddc.png "src=" Http://s4.51cto.com/wyfs02/M00/80/41/wKioL1c8NX-DFTL3AAAw_ Yeymie227.png "alt=" Wkiol1c8nx-dftl3aaaw_yeymie227.png "/>

The same is a machine, why the difference is so big??

Let's take a look at what each parameter means.

Detailed command:
Time for timing (real time-consuming, user-state time-consuming, SYS system-state elapsed)
DD is used for replication, from if read (input file), to the of (output file).
If=/dev/zero does not produce IO, so it can be used to test the write speed, and the same of=/dev/null does not produce IO, which can be used to test the read speed.
BS is the size of each read or write, that is, the size of a block;
Count is the number of read-write chunks, multiplied by the amount of read and write data, the larger the amount of data (count), the more accurate, and the average of multiple tests.


Have you seen the difference between the three commands?

if=/dev/**, yes, the key is the parameters of the root behind dev/, do not use zero, parameters are explained, so that is not generated I/O. The measured data is inaccurate. So the results vary so much.

Note: Be sure to root the real device number (Input command df-th, can get, red part)

650) this.width=650; "title=" Ddd.png "src=" http://s1.51cto.com/wyfs02/M01/80/41/ Wkiol1c8n4egxafjaaas2-hobvm633.png "alt=" Wkiol1c8n4egxafjaaas2-hobvm633.png "/>

All right, here it is!!




This article is from the "59090939" blog, please be sure to keep this source http://59090939.blog.51cto.com/6338052/1774831

About Linux under DD Test disk PIT!!

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.