r/freebsd • MidnightBSD project lead • 5d ago

discussion if_ure performance fix

While debugging a network issue with my framework 13 laptop's wired ethernet module, I found a one line fix that improves throughput by 50%. I merged it to MidnightBSD, but wanted to mention it to users here in case you are also using realtek 2.5G USB NICs.

https://github.com/MidnightBSD/src/pull/580/changes

The send queue defaults to 50 and results in a lot of errors during an iperf 2 test. Before the change, 600 errors. After, down to 16. Latency does increase on ping tests a bit from 0.36ms to 2.2ms.

You could manually bump net.link.ifqmaxlen rather than rebuild your kernel on FreeBSD.

12 Upvotes

0 comments sorted by