I am in the process of setting up a new server with FreeBSD 9.2 with amd64. I am using ZFS on all the drives. I run ZFS on root and use geli to encrypt everything except /boot.
I enabled ZFS swap as follows:
I have rebooted the machine but this hasn't made any difference. On my old server I can see my swap size and how much of it is free. Any ideas?
Also, this is my first amd64 server with ZFS. On my i386 server (with 4 GB RAM) I had the following /boot/loader.conf options set:
On my new amd64 server (which has 16 GB RAM), I have only set the following so far:
I have read the ZFS Tuning Guide for FreeBSD but am still unsure if I should change any further ZFS settings for 16 GB RAM?
I'd appreciate any help on this! I have read loads of ZFS articles but there are so many opinions about this. I would like the ARC cache to use up to 10 or 12 GB of RAM as the servers services only use up to 2 GB RAM.
I enabled ZFS swap as follows:
zfs create -V 8G -o org.freebsd:swap=on -o checksum=off -o compression=off -o dedup=off -o sync=disabled -o primarycache=none zroot/swap
but when I view top
I can't see any swap! It just says:
Code:
Swap:
I have rebooted the machine but this hasn't made any difference. On my old server I can see my swap size and how much of it is free. Any ideas?
Also, this is my first amd64 server with ZFS. On my i386 server (with 4 GB RAM) I had the following /boot/loader.conf options set:
Code:
vfs.zfs.prefetch_disable="1"
vfs.root.mountfrom="zfs:zroot"
zfs_load="YES"
vm.kmem_size="512M"
vm.kmem_size_max="512M"
vfs.zfs.arc_max="80M"
vfs.zfs.vdev.cache.size="5M"
On my new amd64 server (which has 16 GB RAM), I have only set the following so far:
Code:
vfs.root.mountfrom="zfs:zroot"
zfs_load="YES"
I have read the ZFS Tuning Guide for FreeBSD but am still unsure if I should change any further ZFS settings for 16 GB RAM?
I'd appreciate any help on this! I have read loads of ZFS articles but there are so many opinions about this. I would like the ARC cache to use up to 10 or 12 GB of RAM as the servers services only use up to 2 GB RAM.