Problem after manual compile kernel
I manually compile kernel and it seemed worked ok, but now I got error kmem_malloc(4096): kmem_map too small: here size in kb and server crashes. Next it restarts but again crashes (usually when it starts ftp helper, firewall or carp).
I compiled kernel to increase HFSC_MAX_CLASSES from 64 to 512.
For compilation I used:
According to list :http://cvs.pfsense.com/cgi-bin/cvsweb.cgi/tools/builder_scripts/patches.RELENG_6_2?rev=1.109;content-type=text%2Fplain
Maybe I should use some other patches from directory not only these from list.
To avoid that problem I put in loader.conf vm.kmem_size_max="536870912", but it helped only for short time.
The error occurs when I try add any new rules,nat and sometimes shaping. After error, the only way to restore pfsense is bring config.xml before changes which caused crash.
Maybe my configuration becomes too big and it cannot allocate memory? I think it is because of lack of some patch.
Also I get errors:
There were error(s) loading the rules: pfctl: DIOCADDRULE: Cannot allocate memory
There were error(s) loading the rules: pfctl: DIOCADDRULE: device busy
Maybe this 1st error sometimes cause pfsense to crash. Not sure