Here are my current results on new box:
Create:
# zfs create basefs/test
# zfs set mountpoint=/test basefs/test
Options:
# zfs set compression=[on|off] basefs/test
# zfs set checksum=[on|off] basefs/test
Code:
# cd /test && bonnie -s 8192 (this machine has 3GB RAM)
-------Sequential Output-------- ---Sequential Input-- --Random--
-Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---
Machine MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU /sec %CPU
8192 36165 36.9 46683 16.4 20419 9.7 74582 78.0 94540 13.8 75.1 1.8 ZFS (default)
8192 36325 37.1 43597 15.6 19792 9.5 72155 75.4 83432 12.8 58.6 1.6 ZFS checksum=off
8192 36345 37.0 45016 16.5 23312 10.5 69788 72.5 84694 12.8 67.9 1.2 ZFS checksum=off compression=on
/boot/loader.conf
Code:
# modules
zfs_load="YES"
ahci_load="YES"
# zfs tuning
vm.kmem_size=536870912 # 512 MB
vm.kmem_size_max=536870912 # 512 MB
vfs.zfs.vdev.cache.size=8388608 # 8 MB
vfs.zfs.arc_max=67108864 # 64 MB
vfs.zfs.prefetch_disable=0 # enable prefetch
# page share factor per proc
vm.pmap.shpgperproc=512
# default 1000
kern.hz=100
# avoid additional 128 interrupts per second per core
hint.atrtc.0.clock=0
# do not power devices without driver
hw.pci.do_power_nodriver=3
# ahci power management
hint.ahcich.0.pm_level=5
hint.ahcich.1.pm_level=5
hint.ahcich.2.pm_level=5
hint.ahcich.3.pm_level=5
hint.ahcich.4.pm_level=5
hint.ahcich.5.pm_level=5
/etc/sysctl.conf
Code:
# fs
vfs.read_max=32