Skip to content

Instantly share code, notes, and snippets.

@makuk66
Created June 15, 2011 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save makuk66/1027343 to your computer and use it in GitHub Desktop.
Save makuk66/1027343 to your computer and use it in GitHub Desktop.
dd performance
For shits and giggles: some crude IO performance tests based on dd'ing a 512M file of random content, results in MB/s:
macbook 10
mail server 17
KVM virtual 17
Older MacBookPro 23
Linux Workstation 45
Mac Mini SSD 46
m1.large HD 57
m1.large EBS 63
MacBook Pro SSD FileVault 87
MacBook Pro SSD 111
colo 116
LXC 208
# lxc container on LVM (hosted on thunder)
mak@saffron:~$ dd if=/dev/urandom of=~/test-data count=1000000
1000000+0 records in
1000000+0 records out
512000000 bytes (512 MB) copied, 71.9931 s, 7.1 MB/s
mak@saffron:~$ dd if=~/test-data of=~/test-data2
1000000+0 records in
1000000+0 records out
512000000 bytes (512 MB) copied, 2.46183 s, 208 MB/s
# colo, hw raid
mak@thunder:~$ dd if=/dev/urandom of=~/test-data count=1000000
1000000+0 records in
1000000+0 records out
512000000 bytes (512 MB) copied, 72.2604 s, 7.1 MB/s
mak@thunder:~$ dd if=~/test-data of=~/test-data2
1000000+0 records in
1000000+0 records out
512000000 bytes (512 MB) copied, 2.51171 s, 204 MB/s
# private colo
mak@river:~$ dd if=/dev/urandom of=~/test-data count=1000000
1000000+0 records in
1000000+0 records out
512000000 bytes (512 MB) copied, 86.0445 s, 6.0 MB/s
mak@river:~$ dd if=test-data of=test-data2
1000000+0 records in
1000000+0 records out
512000000 bytes (512 MB) copied, 4.43031 s, 116 MB/s
# mac SSD
crab:/ root# dd if=test-data of=test-data2
1000000+0 records in
1000000+0 records out
512000000 bytes transferred in 4.552413 secs (112467828 bytes/sec)
# mac with FileVault on SSD
mak@crab ~ $ dd if=/dev/urandom of=~/test-data count=1000000
1000000+0 records in
1000000+0 records out
512000000 bytes transferred in 44.332052 secs (11549206 bytes/sec)
mak@crab ~ $ dd if=~/test-data of=~/test-data2
1000000+0 records in
1000000+0 records out
512000000 bytes transferred in 5.762571 secs (88849229 bytes/sec)
# m1.large, EBS volume:
lucid@ip-10-101-66-203:~$ dd if=/dev/urandom of=~/test-data count=1000000
1000000+0 records in
1000000+0 records out
512000000 bytes (512 MB) copied, 127.686 s, 4.0 MB/s
lucid@ip-10-101-66-203:~$ dd if=~/test-data of=~/test-data2
1000000+0 records in
1000000+0 records out
512000000 bytes (512 MB) copied, 8.11239 s, 63.1 MB/s
# m1.large, ephemeral disk
lucid@ip-10-101-66-203:/mnt$ sudo dd if=test-data of=test-data2
1000000+0 records in
1000000+0 records out
512000000 bytes (512 MB) copied, 8.92617 s, 57.4 MB/s
# mac mini with SSD
dev:~ mak$ dd if=/dev/urandom of=~/test-data count=1000000
1000000+0 records in
1000000+0 records out
512000000 bytes transferred in 67.390003 secs (7597566 bytes/sec)
dev:~ mak$ dd if=~/test-data of=~/test-data2
1000000+0 records in
1000000+0 records out
512000000 bytes transferred in 10.707395 secs (47817419 bytes/sec)
# Linux Workstation 2.4Gz A64, IDE disks, ext3, LVM
mak@yoda ~ $ dd if=~/test-data of=~/test-data2
1000000+0 records in
1000000+0 records out
512000000 bytes (512 MB) copied, 11.32 s, 45.2 MB/s
# old macbook pro
mak@dolphin ~ $ dd if=/dev/urandom of=test-data count=1000000
1000000+0 records in
1000000+0 records out
512000000 bytes transferred in 93.115468 secs (5498549 bytes/sec)
mak@dolphin ~ $ dd if=test-data of=test-data2
1000000+0 records in
1000000+0 records out
512000000 bytes transferred in 21.339470 secs (23993098 bytes/sec)
= 23 MB/s
# A64 mail server
mak@solo:~$ dd if=/dev/urandom of=~/test-data count=1000000
1000000+0 records in
1000000+0 records out
512000000 bytes (512 MB) copied, 98.9011 s, 5.2 MB/s
mak@solo:~$ dd if=~/test-data of=~/test-data2
1000000+0 records in
1000000+0 records out
512000000 bytes (512 MB) copied, 29.0277 s, 17.6 MB/s
# KVM virtual on river
mak@makx ~ $ dd if=/dev/urandom of=test-data count=1000000
1000000+0 records in
1000000+0 records out
512000000 bytes (512 MB) copied, 92.0313 s, 5.6 MB/s
mak@makx ~ $ dd if=test-data of=test-data2
1000000+0 records in
1000000+0 records out
512000000 bytes (512 MB) copied, 30.1522 s, 17.0 MB/s
# sarah white macbook
sarah_macbook:~ sek$ dd if=/dev/urandom of=test-data count=1000000
1000000+0 records in
1000000+0 records out
512000000 bytes transferred in 75.183034 secs (6810047 bytes/sec)
sarah_macbook:~ sek$ dd if=test-data of=test-data2
1000000+0 records in
1000000+0 records out
512000000 bytes transferred in 47.087159 secs (10873453 bytes/sec)
=10 MB/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment