• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

How to increase HFSC_MAX_CLASSES

Traffic Shaping
3
6
4.2k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    m1s1u
    last edited by Sep 30, 2006, 8:25 AM

    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?

    1 Reply Last reply Reply Quote 0
    • J
      jeroen234
      last edited by Sep 30, 2006, 9:13 AM

      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

      1 Reply Last reply Reply Quote 0
      • M
        m1s1u
        last edited by Sep 30, 2006, 12:11 PM

        Where can I get pfsense kernel options?

        1 Reply Last reply Reply Quote 0
        • S
          sullrich
          last edited by Sep 30, 2006, 4:52 PM

          The kernel configuration file is:
          http://cvs.pfsense.com/cgi-bin/cvsweb.cgi/tools/builder_scripts/conf/pfSense.6?rev=1.33

          The patches file is:
          http://cvs.pfsense.com/cgi-bin/cvsweb.cgi/tools/builder_scripts/patches.RELENG_6_1?rev=1.10

          The patches directory is:
          http://cvs.pfsense.com/cgi-bin/cvsweb.cgi/tools/patches/RELENG_6_1/

          This is all unsupported.  Good luck!

          1 Reply Last reply Reply Quote 0
          • M
            m1s1u
            last edited by Oct 3, 2006, 9:00 PM

            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)

            1 Reply Last reply Reply Quote 0
            • J
              jeroen234
              last edited by Oct 4, 2006, 5:00 AM

              google for making freebsd kernel

              1 Reply Last reply Reply Quote 0
              3 out of 6
              • First post
                3/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.