{"id":51,"date":"2010-02-24T17:56:35","date_gmt":"2010-02-24T17:56:35","guid":{"rendered":"http:\/\/www.hypersurf.com\/blog\/?p=51"},"modified":"2010-02-25T21:15:42","modified_gmt":"2010-02-25T21:15:42","slug":"increasing-the-maximum-number-of-queues-with-pf-and-altq","status":"publish","type":"post","link":"http:\/\/www.hypersurf.com\/blog\/freebsd\/increasing-the-maximum-number-of-queues-with-pf-and-altq\/","title":{"rendered":"Increasing the Maximum Number of Queues with PF and ALTQ"},"content":{"rendered":"<p>When using PF and ALTQ in FreeBSD and using more than 64 queues you must increase the number of queues complied in the kernel. If you have more then 64 queues you will get the following error. <\/p>\n<p>DIOCADDALTQ: Cannot allocate memory<\/p>\n<p>To increase the number of queues edit \/usr\/src\/sys\/contrib\/altq\/altq\/altq_hfsc.h and change the value<br \/>\n#define HFSC_MAX_CLASSES        64<\/p>\n<p>Make the value equal to or greater then the number of queues you will use in the pf.conf file. After you have change the file you will need to recompile your kernel. See http:\/\/www.freebsd.org\/doc\/en_US.ISO8859-1\/books\/handbook\/kernelconfig-building.html for information on how to recompile your kernel. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>When using PF and ALTQ in FreeBSD and using more than 64 queues you must increase the number of queues complied in the kernel. If you have more then 64 queues you will get the following error. DIOCADDALTQ: Cannot allocate memory To increase the number of queues edit \/usr\/src\/sys\/contrib\/altq\/altq\/altq_hfsc.h and change the value #define HFSC_MAX_CLASSES [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[41],"tags":[21,8,20],"_links":{"self":[{"href":"http:\/\/www.hypersurf.com\/blog\/wp-json\/wp\/v2\/posts\/51"}],"collection":[{"href":"http:\/\/www.hypersurf.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hypersurf.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hypersurf.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hypersurf.com\/blog\/wp-json\/wp\/v2\/comments?post=51"}],"version-history":[{"count":12,"href":"http:\/\/www.hypersurf.com\/blog\/wp-json\/wp\/v2\/posts\/51\/revisions"}],"predecessor-version":[{"id":63,"href":"http:\/\/www.hypersurf.com\/blog\/wp-json\/wp\/v2\/posts\/51\/revisions\/63"}],"wp:attachment":[{"href":"http:\/\/www.hypersurf.com\/blog\/wp-json\/wp\/v2\/media?parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hypersurf.com\/blog\/wp-json\/wp\/v2\/categories?post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hypersurf.com\/blog\/wp-json\/wp\/v2\/tags?post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}