Last active
August 29, 2015 14:15
-
-
Save nari-ex/4a28649d7fd00d921fc4 to your computer and use it in GitHub Desktop.
This file contains 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 で全部やるパターン | |
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