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

    Network cards fine tune

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    6 Posts 4 Posters 1.4k 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.
    • O
      ozlecz
      last edited by

      Hello,

      Network cards Fine Tuning
      https://doc.pfsense.org/index.php/Tuning_and_Troubleshooting_Network_Cards

      Certain intel igb cards, especially multi-port cards, can very easily/quickly exhaust mbufs and cause panics, especially on amd64. The following tweaks should help:
      In /boot/loader.conf.local - Add the following (or create the file if it does not exist):

      kern.ipc.nmbclusters="131072"
      hw.igb.num_queues=1

      DO WE STILL NEED TO DO THIS ON VERSION 2.2.4?

      THANKS

      1 Reply Last reply Reply Quote 0
      • C
        cmb
        last edited by

        @ozlecz:

        https://doc.pfsense.org/index.php/Tuning_and_Troubleshooting_Network_Cards
        DO WE STILL NEED TO DO THIS ON VERSION 2.2.4?

        Yes, that page is updated accordingly with each version.

        @ozlecz:

        hw.igb.num_queues=1

        No, there's good reason that's no longer listed on that page, don't do that.

        1 Reply Last reply Reply Quote 0
        • H
          Harvy66
          last edited by

          I thought "hw.igb.num_queues=1" was mostly an issue for the Intel cards that exposed multiple queues via the driver, but on the backend, they really had one queue which requires locking. I was under the impression that their newer server NICs have real multi-queue support.

          1 Reply Last reply Reply Quote 0
          • C
            cmb
            last edited by

            @Harvy66:

            I thought "hw.igb.num_queues=1" was mostly an issue for the Intel cards that exposed multiple queues via the driver, but on the backend, they really had one queue which requires locking. I was under the impression that their newer server NICs have real multi-queue support.

            I didn't notice that was quoted, thought it was just a reference to what the linked page currently shows. There's good reason that is no longer listed, the multi-queue in the igb driver was broken in some older FreeBSD versions in ways that would reduce performance, but that hasn't been true of any 2.2.x version so it was removed from that page some time ago. It was a driver issue in FreeBSD 8.x and earlier that no longer applies.

            1 Reply Last reply Reply Quote 0
            • O
              ozlecz
              last edited by

              In /boot/loader.conf.local - Add the following (or create the file if it does not exist):

              kern.ipc.nmbclusters="1000000"

              i have only /boot/loader.conf, how do i create conf.local

              1 Reply Last reply Reply Quote 0
              • H
                heper
                last edited by

                you can create it using vi or ee or upload it with your favorite scp/sftp client

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