How to increase HFSC_MAX_CLASSES
-
I was trying to set per IP traffic shaping. I've added around 500 queues and I've got following error on reloading pf rules:
pfctl: DIOCADDALTQ: Cannot allocate memory
Googling about this I've found that the reaseon for this is HFSC_MAX_CLASSES parameter in altq_hfsc.h set by default to 64. To get rid of the error one must set HFSC_MAX_CLASSES to ex. 1024 and recompile the kernel.
Can enyone tell me how to perform abowe operations on pfSense?
-
you need a freebsd 6.1 full install with all kernel sourches and the gcc compiler and the pfsense kernel options to make a new kernel for pfsense and transfer that to youre pfsense system
-
Where can I get pfsense kernel options?
-
The kernel configuration file is:
http://cvs.pfsense.com/cgi-bin/cvsweb.cgi/tools/builder_scripts/conf/pfSense.6?rev=1.33The patches file is:
http://cvs.pfsense.com/cgi-bin/cvsweb.cgi/tools/builder_scripts/patches.RELENG_6_1?rev=1.10The patches directory is:
http://cvs.pfsense.com/cgi-bin/cvsweb.cgi/tools/patches/RELENG_6_1/This is all unsupported. Good luck!
-
Thanks for the links.
Can you tell me the command to apply the patches to standard freebsd files?
I assume that "patch" command should be used but I'm not sure about the parameters (I've tried some but without success).
Also I'm not sure where should I put *.diff files (I have original freebsd sources in /usr/src)
-
google for making freebsd kernel