Hi, > ZFS NOTICE: KSTACK_PAGES is 2 which could result in stack overflow panic! > Please consider adding 'options KSTACK_PAGES=4' to your kernel config why the default kernel for FreeBSD-11.0-RELEASE-arm-armv6-RPI2.img image has KSTACK_PAGES set to only 2? Can it be incread to '4' in GENERIC so kernel rebuild will not be necessary? Regards, vermaden
Why not put it in /boot/loader.conf? It is not necessary to recompile the kernel: From my amd64 systems /boot/loader.conf files: # Try to avoid kernel stack exhaustion due to TRIM storms. kern.kstack_pages="6" (Yes, TRIM "storms" can bite you even with it set to "4", and I've managed to get a panic on boot even with it set to "6" immediately after a make buildworld/installworld cycle.)
(In reply to karl from comment #1) Thanks, the message suggested that kernel recompile is needed. It should be modified the to tell that only /boot/loader.conf parameter is needed. Other question then. I now have 'kern.kstack_pages=8' in /boot/loader.conf, but ZFS module STILL complains about KSTACK_PAGES at load. How to verify that ZFS module 'knows' that KSTACK_PAGES is at '8' now?
Is this still and issue in newer releases?