How to test Linux and Unix Test Disk I/O Performance ?
Test Disk Write Performance With dd Command
dd is a basic command une in all linux distributions to copy data. You can also use this feature to test dis performance.
Syntax
dd if=/dev/zero of=/path/to/output.file bs=BLOCK-SIZE count=NUMBER-OK-BLOCKS oflag=dsync
Examples
dd if=/dev/zero of=./test.img bs=1G count=1 oflag=dsync
dd if=/dev/zero of=./test.img bs=64M count=1 oflag=dsync
dd if=/dev/zero of=./test.img bs=1M count=256 conv=fdatasync
dd if=/dev/zero of=./test.img bs=8k count=10k
dd if=/dev/zero of=./test.img bs=512 count=1000 oflag=dsync
## OR alternate syntax for GNU/dd ##
dd if=/dev/zero of=./test.img bs=1G count=1 conv=fdatasync
Do not forget to delete created file
Test Disk Read Performance With dd Command
Syntax
dd if=/path/to/input.file of=/dev/null bs=1M count=1024
Examples
dd if=./test.img of=/dev/null bs=1M count=1024
dd if=./test.img of=/dev/null bs=1G count=1
Comments