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

    How to increase HFSC_MAX_CLASSES

    Scheduled Pinned Locked Moved Traffic Shaping
    6 Posts 3 Posters 4.3k Views
    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

      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

        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

          Where can I get pfsense kernel options?

          1 Reply Last reply Reply Quote 0
          • S
            sullrich
            last edited by

            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

              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

                google for making freebsd kernel

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