Skip to content

Instantly share code, notes, and snippets.

@szaydel
Created December 6, 2011 13:49
Show Gist options
  • Save szaydel/1438270 to your computer and use it in GitHub Desktop.
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
# 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