Linux test Drive Read and write speed

Source: Internet
Author: User

Test Drive read/write speed tools/materials with/dev/zero and/dev/null
    • ubuntu14.04

    • Dd

Baidu Experience: jingyan.baidu.com

Method/Step
  1. 1

    First we need to understand/dev/null and/dev/zero two files, we open two files respectively,

    650) this.width=650; "class=" Exp-image-default "alt=" use/dev/zero and/dev/null to test HDD read/write Speed "src="/HTTP/ c.hiphotos.baidu.com/exp/w=500/sign=a3251c48b01bb0518f24b328067bda77/ A1ec08fa513d269753bc183756fbb2fb4316d868.jpg "/> Step reading

  2. 2

    The graph can see that null is an empty file, and zero is a non-display unlimited input file, never end, which means zero can be used as an infinite file to write to the hard disk, and Null is an infinite empty file can be understood as a garbage bin under Windows.

    650) this.width=650; "class=" Exp-image-default "alt=" use/dev/zero and/dev/null to test HDD read/write Speed "src="/HTTP/ h.hiphotos.baidu.com/exp/w=500/sign=4dc2d359708da9774e2f862b8050f872/ 63d0f703918fa0ec0fa87467259759ee3d6ddb68.jpg "/> Step reading

  3. 3

    Then we can use the DD command to test the speed, first create a test file under/var for testing use

    650) this.width=650; "class=" Exp-image-default "alt=" use/dev/zero and/dev/null to test HDD read/write Speed "src="/HTTP/ g.hiphotos.baidu.com/exp/w=500/sign=bf536fcaf503738dde4a0c22831ab073/ 622762d0f703918fa6be2da0523d269759eec468.jpg "/> Step reading

  4. 4

    Next, we write the infinite input in the/dev/zero to the test file via the DD command, and note that we use DD to make the timing with the time command.

    Time DD If=/dev/zero of=/var/test bs=8k count=1000000

    The result is 24 seconds of 333m,8.2g per second.

    650) this.width=650; "class=" Exp-image-default "alt=" use/dev/zero and/dev/null to test HDD read/write Speed "src="/HTTP/ c.hiphotos.baidu.com/exp/w=500/sign=58bf0b2988d4b31cf03c94bbb7d7276f/ 42166d224f4a20a454712cad93529822720ed068.jpg "/> Step reading

  5. 5

    Let's test the read speed again, and we'll use the DD command.

    Time DD if=/var/test of=/dev/null bs=8k count=1000000

    650) this.width=650; "class=" Exp-image-default "alt=" use/dev/zero and/dev/null to test HDD read/write Speed "src="/HTTP/ a.hiphotos.baidu.com/exp/w=500/sign=a1b69d5478ec54e741ec1a1e89399bfd/ D009b3de9c82d1584c3649db830a19d8bc3e4227.jpg "/> Step reading

  6. 6

    To understand the above, we can be used to test read and write speed, we create a test1 file in/tmp, with the DD command to write data in the test test1.

    Time DD if=/var/test of=/tmp/test1 bs=8k count=1000000

    650) this.width=650; "class=" Exp-image-default "alt=" use/dev/zero and/dev/null to test HDD read/write Speed "src="/HTTP/ g.hiphotos.baidu.com/exp/w=500/sign=7f601c5b223fb80e0cd161d706d02ffb/ 574e9258d109b3dee20bf402cfbf6c81800a4c27.jpg "/> Step reading

    650) this.width=650; "class=" Exp-image-default "alt=" use/dev/zero and/dev/null to test HDD read/write Speed "src="/HTTP/ c.hiphotos.baidu.com/exp/w=500/sign=847d22522b381f309e198da999004c67/ 730e0cf3d7ca7bcb1014d745bd096b63f624a868.jpg "/> Step reading

  7. 7

    So we can test the read and write speed of the hard drive.

    END

Linux test Drive Read and write speed

Related Article

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.