Last active
August 29, 2015 14:09
-
-
Save theonewolf/1ce6f6030842acd69cdd to your computer and use it in GitHub Desktop.
nbd speed + correctness test
This file contains hidden or 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
➜ ~>cd /tmp | |
➜ tmp>dd if=/dev/urandom bs=8M count=640 of=test-random.bin | |
640+0 records in | |
640+0 records out | |
5368709120 bytes (5.4 GB) copied, 466.544 s, 11.5 MB/s | |
➜ tmp>mkdir test-mount | |
➜ tmp>sudo nbd-client -N test fog.elijah.cs.cmu.edu /dev/nbd0 | |
[sudo] password for wolf: | |
Negotiation: ..size = 8192MB | |
bs=1024, sz=8589934592 bytes | |
➜ tmp>sudo mount /dev/nbd0p1 ./test-mount | |
➜ tmp>sudo cp test-random.bin ./test-mount/ | |
➜ tmp>cmp ./test-mount/test-random.bin ./test-random.bin | |
➜ tmp>dd if=./test-mount/test-random.bin of=/dev/null bs=8M | |
640+0 records in | |
640+0 records out | |
5368709120 bytes (5.4 GB) copied, 49.6739 s, 108 MB/s | |
➜ tmp>sudo dd if=./test-random.bin of=./test-mount/test-random.bin bs=8M | |
640+0 records in | |
640+0 records out | |
5368709120 bytes (5.4 GB) copied, 111.786 s, 48.0 MB/s | |
➜ tmp>cmp ./test-mount/test-random.bin ./test-random.bin | |
➜ tmp>sudo umount test-mount | |
➜ tmp>sudo nbd-client -d /dev/nbd0 | |
disconnect, sock, done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment