Thread: ZFS
View Single Post
  #2   (View Single Post)  
Old 30th October 2011
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

Hello, zfs noob (j/k)
This is your lucky day. I have i386 with 2.5GB, and before I replaced one ram module, it had 2GB

Code:
vfs.zfs.arc_max=134217728    # 128 MB
vm.kmem_size=536870912        # 512 MB
vm.kmem_size_max=536870912    # 512 MB
vfs.zfs.vdev.cache.size=8388608    # 8 MB
I use these settings in /boot/loader.conf with GENERIC

I also had custom kernel with
Code:
options        KVA_PAGES=384
and
Code:
vfs.zfs.arc_max=629145600    # 600 MB
vm.kmem_size=1153433600        # 1100 MB
vm.kmem_size_max=1153433600    # 1100 MB
vfs.zfs.vdev.cache.size=8388608    # 8 MB
But you might need to tune these numbers (make them lower). That includes KVA_PAGES. remember that KVA_PAGES must divide by 4 (KVA_PAGES % 4 = 0)


I recommend you start with first pair of settings and GENERIC and see if it will crash or not. I think it will not (also I recommend 8-STABLE or 9)
Reply With Quote