Advertisement
peetaur

test, with striped 4 disk ramdisk, comparing UFS to ZFS

Jun 20th, 2012
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.43 KB | None | 0 0
  1. 800 MB/s limit test, with striped 4 disk ramdisk, comparing UFS to ZFS
  2.    
  3. /sbin/mdconfig -d -u md0
  4. /sbin/mdconfig -d -u md1
  5. /sbin/mdconfig -d -u md2
  6. /sbin/mdconfig -d -u md3
  7. /sbin/mdconfig -a -t swap -s 2g -u md0
  8. /sbin/mdconfig -a -t swap -s 2g -u md1
  9. /sbin/mdconfig -a -t swap -s 2g -u md2
  10. /sbin/mdconfig -a -t swap -s 2g -u md3
  11.  
  12. zpool create zram md0 md1 md2 md3
  13. zfs set atime=off zram
  14.  
  15. cd /
  16. #run this twice and ignore first result (fills read cache)
  17. gdd if=/tank/bcnasvm1/images/openSUSE-11.4-DVD-x86_64.iso of=zram/testfile bs=1M conv=fdatasync
  18.     4614782976 bytes (4.6 GB) copied, 3.63037 s, 1.3 GB/s
  19.  
  20. zfs umount zram
  21. zfs mount zram
  22. gdd if=zram/testfile of=/dev/null bs=1M
  23.     4614782976 bytes (4.6 GB) copied, 1.84721 s, 2.5 GB/s
  24.  
  25. zpool destroy zram
  26.  
  27. gstripe load
  28. gstripe create -v -s 131072 ufsram md0 md1 md2 md3
  29. newfs /dev/stripe/ufsram
  30. cd /mnt
  31. mkdir test
  32. mount /dev/stripe/ufsram test
  33. gdd if=/tank/bcnasvm1/images/openSUSE-11.4-DVD-x86_64.iso of=test/testfile bs=1M conv=fdatasync
  34.     4614782976 bytes (4.6 GB) copied, 4.25456 s, 1.1 GB/s
  35.  
  36.  
  37. umount test
  38. mount /dev/md0 test
  39. ls -l test
  40. find test
  41. gdd if=test/testfile of=/dev/null bs=1M
  42.     (total system hang) ****************
  43.  
  44. # read cache problem
  45. gdd if=test/testfile of=/dev/null bs=1M
  46.     ?
  47.  
  48. # read cache clearing hack
  49. cd test
  50. umount /mnt/test
  51.     umount: unmount of /mnt/test failed: Device busy
  52. cd ..
  53. gdd if=test/testfile of=/dev/null bs=1M
  54.     ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement