Skip to content

Instantly share code, notes, and snippets.

@NZKoz
Forked from timhaines/IOSpeedTest
Created May 1, 2010 12:07
Show Gist options
  • Save NZKoz/386279 to your computer and use it in GitHub Desktop.
Save NZKoz/386279 to your computer and use it in GitHub Desktop.
# IO speed tests on a new softlayer server using the cheap 500gb Sata drives.
#62500 blocks per gig
# want to double ram
# have 12gb, so want 24gb worth
# 62500 * 24 = 1500000
root@koz-two:~# time sh -c "dd if=/dev/zero of=ddfile bs=16k count=1500000 && sync"
1500000+0 records in
1500000+0 records out
24576000000 bytes (25 GB) copied, 310.911 s, 79.0 MB/s
real 5m15.546s
user 0m0.340s
sys 0m49.931s
#run this to flush the previous file out of memory
root@koz-two:~# dd if=/dev/zero of=ddfile2 bs=16K count=750000
750000+0 records in
750000+0 records out
12288000000 bytes (12 GB) copied, 149.935 s, 82.0 MB/s
#run this to read original file
root@koz-two:~# time dd if=ddfile of=/dev/null bs=16k
1500000+0 records in
1500000+0 records out
24576000000 bytes (25 GB) copied, 120.413 s, 204 MB/s
real 2m0.508s
user 0m0.248s
sys 0m13.237s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment