Created
December 6, 2011 13:49
-
-
Save szaydel/1438270 to your computer and use it in GitHub Desktop.
Test write with dd and random `skip` offset on each run through the loop
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
# max=875 min=236; while :; do dd if=/source/data/file-big.out of=/dest/data/file2.out bs=64k skip=$(echo $(( RANDOM % (max - min) + $(echo $RANDOM|cut -b1,2) ** 2 ))) 2>&1|tee -a /tmp/some-logfile.log; sleep 1; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment