Hi,
I'm using FreeBSD 11.2-RELEASE-p4 as Desktop OS on my Lenovo X230 with 16GB RAM and ZFS as file system. This is my first FreeBSD install. So far, I haven't had any issues with ZFS, but I have some slightly concerning boot messages and was wondering if I should change any ZFS-related configurations. In particular, I have two questions:
1) What is the recommended kmem_size for a machine with 16GB RAM?
I've had the following warning:
In /boot/loader.conf, I then set
Result:
The above boot message disappeared as expected. However, I have no clue whether these settings are optimal or even make sense. What is a good value for 16GB RAM? Is there anything else to consider besides memory size?
2. How to correctly set kstack_pages (if at all)?
During boot, I get:
I tried to fix this by adding
However, the boot message above persist. How come? Is this something to worry about?
Thank you!
I'm using FreeBSD 11.2-RELEASE-p4 as Desktop OS on my Lenovo X230 with 16GB RAM and ZFS as file system. This is my first FreeBSD install. So far, I haven't had any issues with ZFS, but I have some slightly concerning boot messages and was wondering if I should change any ZFS-related configurations. In particular, I have two questions:
1) What is the recommended kmem_size for a machine with 16GB RAM?
I've had the following warning:
Code:
[henning@localhost ~]$ dmesg | grep -A 2 'ZFS'
...
ZFS WARNING: Recommended minimum kmem_size is 512MB; expect unstable behavior.
Consider tuning vm.kmem_size and vm.kmem_size_max in /boot/loader.conf.
...
In /boot/loader.conf, I then set
vm.kmem_size="512M"
and vm.kmem_size_max="512M"
.Result:
Code:
[henning@localhost ~]$ sysctl -h vm.kmem_size
vm.kmem_size: 536.870.912
The above boot message disappeared as expected. However, I have no clue whether these settings are optimal or even make sense. What is a good value for 16GB RAM? Is there anything else to consider besides memory size?
2. How to correctly set kstack_pages (if at all)?
During boot, I get:
Code:
[henning@localhost ~]$ dmesg | grep -A 2 'ZFS'
...
ZFS NOTICE: KSTACK_PAGES is 2 which could result in stack overflow panic!
Please consider adding 'options KSTACK_PAGES=4' to your kernel config
...
I tried to fix this by adding
kern.kstack_pages=4
to boot/loader.conf. This seems to work, since after a reboot, I get:
Code:
[henning@localhost ~]$ sysctl kern.kstack_pages
kern.kstack_pages: 4
However, the boot message above persist. How come? Is this something to worry about?
Thank you!
Last edited: