Performance Tuning

Started by pholt, March 30, 2024, 07:23:41 PM

Previous topic - Next topic
I just installed OPNsense on a Lenovo m920q with a dual interface NIC, 32GB of memory, and an i5-8600T CPU. Network throughput to the 1Gb WAN is about 50% of what it was with the ASUS router it replaced. Since I assume I have lots of power and memory, I also assume there are settings which I may need to adjust.

Does anyone have advice about how to get things back up to close to normal? Thank you!

What sort of NIC?
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

It's a NIC with an Intel X540-BT2 chipset. It'll support 10Gb, but I only need 1Gb out of it at the moment.

I've been struggling with this and have been trying all kinds of tuneables to get things back to normal. Nothing was working. I just added the following to disable flow control:

dev.ix.0.fc = 0   
dev.ix.1.fc = 0

My interfaces are ix0 and ix1. As soon as I added these, my throughput doubled.

By default BSD doesn't sent Pause Frames if Flow control is enabled. However it will accept Pause control from directly connected device, which can result in lower performance in regards of throughput.

Flow control is a feature that should guarantee a mitigation of packet loss and retransmission due to H/W buffer overflow (saturation). Basically if flow control is enabled device that is not able to keep the pacing will sent Pause frames and ask "please slow down".

Flow control should be never enabled between network devices, this feature is only supposed to be used on towards endpoints/host devices

Regards,
S.
Networking is love. You may hate it, but in the end, you always come back to it.

OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | L 790 512G - VM HA(SOON)
N100   - i226-V | Crucial 16G  4800 DDR5 | S 980 500G - PROD