Skip to content

Instantly share code, notes, and snippets.

@der-flo
Created October 30, 2009 12:58
Show Gist options
  • Save der-flo/222323 to your computer and use it in GitHub Desktop.
Save der-flo/222323 to your computer and use it in GitHub Desktop.
$ cat /sys/block/*/queue/scheduler
noop anticipatory deadline [cfq]
noop anticipatory deadline [cfq]
none
none
none
none
none
none
none
none
none
none
none
none
none
none
none
none
none
none
none
none
none
none
none
none
none
none
none
none
none
noop anticipatory deadline [cfq]
noop anticipatory deadline [cfq]
# Now two "dd"s parallel
$ ionice -c3 dd if=/dev/zero of=test1 bs=10M count=100 oflag=dsync
100+0 records in
100+0 records out
1048576000 bytes (1,0 GB) copied, 29,9719 s, 35,0 MB/s
$ ionice -c2 -n1 dd if=/dev/zero of=test2 bs=10M count=100 oflag=dsync
100+0 records in
100+0 records out
1048576000 bytes (1,0 GB) copied, 37,251 s, 28,1 MB/s
# Or also
$ ionice -c3 dd if=/dev/zero of=test1 bs=14M count=1000
1000+0 records in
1000+0 records out
14680064000 bytes (15 GB) copied, 255,732 s, 57,4 MB/s
$ ionice -c2 -n1 dd if=/dev/zero of=test2 bs=14M count=1000
1000+0 records in
1000+0 records out
14680064000 bytes (15 GB) copied, 254,077 s, 57,8 MB/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment