Created
July 10, 2017 12:44
-
-
Save vpanton/eba04552a4215660702f0c3d013f2f9e to your computer and use it in GitHub Desktop.
Linux Test Disk I/O Performance With dd Command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dd if=/dev/input.file of=/path/to/output.file bs=block-size count=number-of-blocks oflag=dsync | |
## GNU dd syntax ## | |
########################################################## | |
##***[Adjust bs and count as per your needs and setup]**## | |
########################################################## | |
dd if=/dev/zero of=/tmp/test1.img bs=1G count=1 oflag=dsync | |
dd if=/dev/zero of=/tmp/test2.img bs=64M count=1 oflag=dsync | |
dd if=/dev/zero of=/tmp/test3.img bs=1M count=256 conv=fdatasync | |
dd if=/dev/zero of=/tmp/test4.img bs=8k count=10k | |
dd if=/dev/zero of=/tmp/test4.img bs=512 count=1000 oflag=dsync | |
## OR alternate syntax for GNU/dd ## | |
dd if=/dev/zero of=/tmp/testALT.img bs=1G count=1 conv=fdatasync |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment