How Netgate Improved FreeBSD Networking for Everyone
-
Opens the door for up to 3.7x performance gains
Netgate
software engineer Christian McDonald identified a bug in FreeBSD
's iflib framework, which underpins many of today's most widely used network interface drivers, including em, igb, igc, ix, ixl, ice, iavf, bnxt, vmx, axgbe, enetc, enic, and mgb. The bug was artificially limiting the number of packets per second each interface could process, capping throughput at 0.98 Mpps in testing.Two targeted fixes changed everything. The first, a single line of code, pushed throughput to 2.57 Mpps. The second took it further still, to 3.58 Mpps. The result is a 3.7x improvement in network throughput, and because the fix lives in iflib itself, every FreeBSD user and every project built on FreeBSD benefits.
-
https://www.netgate.com/blog/ding-dong-ditch-the-doorbell-prank-in-freebsds-iflib
-
Excellent write-up!
-
@pfGeorge Excellent detective work.
Will any of the fixed versions be included in 26.10 (either the non-batched or batched version)?
-
Great stuff ... thank you for the writeup @cmcdonald

-
Great work @cmcdonald. In addition to the throughput benefits of the router itself, the fix also appears to bring a lower latency for packets transiting the router which could bring a significant throughput benefit for TCP connections. And perhaps a significant benefit for NTP in the local network (which is significantly affected by high latency variance).
I'm wondering, has any quantization of latency improvement been done?
-
-
Dear Experts,
My pfSense box is Dell Micro PC that have Intel NIC (em0) which is in the list that can be tweaked or fixed the issue as well but I'm not sure where should I start and what should I adjust/modify, please provide some steps.
Thanks in advance,
Sokeada

-
@sokeada It’s a fair assumption it will be in 26.10 so we are just waiting.
-
@SteveITS Thanks for the info, I hope that will be available on CE version too.

-
I hope that will be available on CE version too
There will be no new "CE" versions see pfSense at 20 thread.
So indirectly yes, It will be available for those users -
@Patch That's excited news, thanks for keeping me post.

-
Yup it's in 26.10.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy