Network cards fine tune



  • 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



  • @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.



  • 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.



  • @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.



  • 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



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


Log in to reply