Linuxdd read/write speed

Source: Internet
Author: User
Article Title: linuxdd read and write speed to disk. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Time is used for timing. dd is used for copying, reading from if, and writing to. If =/dev/zero does not produce IO, so it can be used to test the pure write speed. Similarly, of =/dev/null does not generate IO and can be used to test the pure read speed. Bs is read or written each time.

The size of a block. count indicates the number of read/write blocks.

Specify the speed at which the file is written to the hard disk.

1. Test/directory disk's pure write speed:

[Root @ base-dmz1/] # time dd if =/dev/zero bs = 1024 count = 1000000 of =/1Gb. file

1000000 + 0 records in

1000000 + 0 records out

1024000000 bytes (1.0 GB) copied, 2.57314 seconds, 398 MB/s

Real 0m2. 787 s

User 0m0. 920 s

Sys 0m1. 867 s

The above is displayed only when time is used. It is not required in linux5. It is not included in linux4 (1024000000 bytes (1.0 GB) copied, 2.57314 seconds, 398 MB/s, therefore, the time command is required.

The copy time.

2. Test/directory disk's pure read speed:

Dd if =/kvm/ftp/other/1Gb. file bs = 64 k | dd of =/dev/null

382860 + 0 records in

382860 + 0 records out

3136389120 bytes (3.1 GB) copied, 68.38 seconds, 45.9 MB/s

Real 1m8. 406 s

User 0m0. 039 s

Sys 0m4. 573 s

3. Test the read/write speed (what is this ):

Dd if =/vat/test of =/oradata/test1 bs = 64 k

Dd: writing '/oradata/test1': No space left on device

5025 + 0 records in

5024 + 0 records out

329261056 bytes (329 MB) copied, 23.8813 seconds, 13.8 MB/s

Note: In theory, the larger the replication volume, the more accurate the test.

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.