Article Title: linux testing hard drive read/write speed. 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 indicates the size of each read or write, that is, the size of a block. count indicates the number of read/write blocks.
1. Test/directory disk's pure write speed:
[Root @ base-dmz1/] # time dd if =/dev/zero bs = 1024 count = 1000000 of =/1Gb. file
2. Test/directory disk's pure read speed:
Dd if =/kvm/ftp/other/1Gb. file bs = 64 k | dd of =/dev/null
3. Test the read/write speed (what is this ):
Dd if =/vat/test of =/oradata/test1 bs = 64 k
Theoretically, the larger the replication volume, the more accurate the test.