Advertisement
peetaur

test, with single ramdisk, comparing UFS to ZFS

Jun 20th, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.19 KB | None | 0 0
  1. 800 MB/s limit test, with single ramdisk, comparing UFS to ZFS, using dd
  2.    
  3. /sbin/mdconfig -d -u md0
  4. /sbin/mdconfig -a -t swap -s 8g -u md0
  5.  
  6. zpool create zram /dev/md0
  7. zfs set atime=off zram
  8.  
  9. cd /zram
  10. gdd if=/tank/bcnasvm1/images/openSUSE-11.4-DVD-x86_64.iso of=testfile bs=1M conv=fdatasync
  11.     4614782976 bytes (4.6 GB) copied, 4.55347 s, 1.0 GB/s
  12.  
  13. zfs umount zram
  14. zfs mount zram
  15. gdd if=zram/testfile of=/dev/null bs=1M
  16.     4614782976 bytes (4.6 GB) copied, 2.33942 s, 2.0 GB/s
  17.  
  18. newfs /dev/md0
  19. cd /mnt
  20. mkdir test
  21. mount /dev/md0 test
  22. gdd if=/tank/bcnasvm1/images/openSUSE-11.4-DVD-x86_64.iso of=test/testfile bs=1M conv=fdatasync
  23.     4614782976 bytes (4.6 GB) copied, 4.26242 s, 1.1 GB/s
  24.  
  25.  
  26. umount test
  27. mount /dev/md0 test
  28. ls -l test
  29. find test
  30. gdd if=test/testfile of=/dev/null bs=1M
  31.     4614782976 bytes (4.6 GB) copied, 4.34821 s, 1.1 GB/s
  32.  
  33. # read cache problem
  34. gdd if=test/testfile of=/dev/null bs=1M
  35.     4614782976 bytes (4.6 GB) copied, 1.02903 s, 4.5 GB/s
  36.  
  37. # read cache clearing hack
  38. cd test
  39. umount /mnt/test
  40.     umount: unmount of /mnt/test failed: Device busy
  41. cd ..
  42. gdd if=test/testfile of=/dev/null bs=1M
  43.     4614782976 bytes (4.6 GB) copied, 5.74366 s, 803 MB/s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement