Skip to content

Instantly share code, notes, and snippets.

@nari-ex
Last active August 29, 2015 14:15
Show Gist options
  • Save nari-ex/4a28649d7fd00d921fc4 to your computer and use it in GitHub Desktop.
Save nari-ex/4a28649d7fd00d921fc4 to your computer and use it in GitHub Desktop.
# dd で全部やるパターン
ionice -c3 dd if=/dev/zero of=100GB.img bs=1M count=102400 oflag=direct
ionice -c3 dd if=/dev/zero of=100GB.img bs=1M count=102400 oflag=sync
ionice -c3 dd if=/dev/zero of=100GB.img bs=1M count=102400 oflag=fdatasync
ionice -c3 dd if=/dev/zero of=100GB.img bs=1M count=102400 oflag=fsync
# 単位ファイルを作成して足し続けるパターン
ionice -c3 dd if=/dev/zero of=100MB.img bs=1M count=100 oflag=direct
for i in $(seq 1 1000); do ionice -c3 cat 100MB.img >> 100GB.img; sleep 5; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment