frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: DPDK vs. Af_XDP Latency Benchmarks Tested on Real NICs

https://github.com/ASherjil/ABTRDA3
2•CoreCppEngineer•1h ago

Comments

CoreCppEngineer•1h ago
I built a C++20 packet I/O library and benchmarked AF_XDP against DPDK and raw Verbs on real hardware: ConnectX-4 Lx, Intel XXV710-DA2, and Intel I225-V. Each configuration ran for 24 hours in a port-to-port loopback, measuring RTT with HdrHistogram — median through P99.999, plus max.

Spoiler: DPDK outperforms AF_XDP on every latency metric across all NICs. One point that I think is underappreciated: a commonly marketed advantage of AF_XDP is that it doesn't unbind the NIC driver, so the interface stays visible to "ip link" and ethtool. That's true for Intel NICs, where DPDK requires binding to vfio-pci. But it's not true for mlx5 (ConnectX-4/5/6/7), which is a bifurcated driver — the NIC stays fully visible to the kernel while DPDK runs. On Mellanox hardware, the main practical argument for AF_XDP largely disappears.

On implementation effort: even with libbpf and libxdp, custom AF_XDP has high code complexity and plenty of driver-specific quirks. Its four lock-free SPSC rings (fill/RX/TX/completion) are counterintuitive and fairly difficult to comprehend. Without the helper libraries I'd call it a serious long-term project. For most use cases I'd recommend DPDK's AF_XDP PMD instead of a from-scratch implementation — in my results, my custom implementation performed only marginally better than DPDK’s AF_XDP PMD.

Most public AF_XDP examples I found lack rigorous benchmarking on real hardware; that's the gap this project aims to fill. Everything is open source: the library, the full results tables, histograms, and per-driver known-issues notes. Next up in the same repo: Solarflare ef_vi vs DPDK on an X2522-PLUS — the DPDK layer is done, the ef_vi backend is in progress.

Let me know if you guys have feedback on the code, benchmark methodology and/or anything. I’m also happy to answer any questions.

Solving Santa Claus Puzzle

https://wyounas.github.io/puzzles/concurrency/2026/01/10/how-to-help-santa-claus-concurrently/
1•simplegeek•7m ago•0 comments

Littlenavmap

https://github.com/albar965/littlenavmap
1•marklit•10m ago•0 comments

Datacentres drive up big tech's carbon emissions to a third of those of France

https://www.theguardian.com/us-news/2026/jul/11/microsoft-amazon-google-datacentre-carbon-emissio...
1•YeGoblynQueenne•11m ago•0 comments

Sonnet Encore/ST G4: How a Tiny Capacitor Destroyed a Rare Upgrade

https://retroreverend.com/blog/tantalum-fall-down-go-boom-how-a-tiny-capacitor-destroyed-one-of-t...
1•rbanffy•13m ago•0 comments

The Advantages of Flexible Typing

https://sqlite.org/flextypegood.html
1•ingve•15m ago•0 comments

Oh dear, did someone steal something from Apple?

https://www.businessinsider.com/apple-openai-trade-secrets-masimo-a123-jony-ive-2026-7
2•CrypticShift•16m ago•0 comments

Show HN: Sanbox, batteries included sandboxes for AI agents

https://sanbox.cloud
2•oryx1729•18m ago•0 comments

Google Opposes Site Blocking in Europe as US Piracy Blocking Plans Gain Momentum

https://torrentfreak.com/google-opposes-site-blocking-in-europe-as-u-s-piracy-blocking-plans-gain...
1•gslin•18m ago•0 comments

Death of the Status Update: Why 55% of Americans Stopped Posting on Social Media

https://ca.pcmag.com/social-media/16790/the-death-of-the-status-update-why-55-of-americans-stoppe...
2•thunderbong•19m ago•1 comments

Reflections on building a closed‑source consumer audio tool

https://github.com/AdBusterOfficial
1•Bo_Amigo_910•20m ago•0 comments

I built an AI strength coach because I wanted my training backed by real studies

https://github.com/clementrx/Performance-agent/tree/main
2•clementrx•22m ago•1 comments

CEO Pleads with AI Industry to Stop Charging So Much to Replace Human Labor

https://futurism.com/future-society/palo-alto-ceo-ai-arora-automation-labor
4•latexr•24m ago•0 comments

Show HN: Fenzo – Build an interactive course on any topic

https://fenzo.ai/
3•fahimulhaq•25m ago•0 comments

Show HN: Display Big Text on Screen

https://bigtext.net/
2•liquid99•27m ago•0 comments

Show HN: Spendict – a performance marketer's verdict for AI agents, over MCP

https://www.spendict.com/
2•ds246•31m ago•0 comments

Cloud Rebuild (Preview)

https://learn.microsoft.com/en-us/windows/configuration/cloud-rebuild/
1•taubek•36m ago•0 comments

Turbocharged solo dev – zooming out a couple of clicks

https://adjohu.com/blog/turbocharged-solo-dev/
1•adjohu•37m ago•0 comments

Children (Composition)

https://en.wikipedia.org/wiki/Children_(composition)
1•doener•39m ago•0 comments

Show HN: Lip Sync AI – Create Your Talking Videos Instantly

https://lipsyncai.co/
2•vtoolpro•42m ago•0 comments

AI-powered video generator SaaS Application for Sale

https://flippa.com/13365327-ai-powered-video-generation-platform-for-creating-viral-short-form-co...
1•kilincarslan•42m ago•1 comments

Movement Is Not Progress

https://frederickvanbrabant.com/blog/2026-07-10-movement-is-not-progress/
1•TheEdonian•43m ago•0 comments

Onemind.md – give your repo a memory without any extra tooling

https://github.com/lazardanlucian/onemind.md
1•lazardanlucian•45m ago•0 comments

I don't need you. I do

https://www.sunilshenoy.com/2026/07/12/i-dont-need-you-i.html
2•cybersunil•46m ago•0 comments

Yakr – a social-relay messaging protocol with Python and Rust implementations

https://github.com/MY20-PHEV/yakr
1•MY10-PHEV•53m ago•0 comments

Show HN: Grinta – a local-first coding agent built for long autonomous runs

https://github.com/josephsenior/Grinta-Coding-Agent
1•JosephSenior•54m ago•0 comments

How does a Dev's job look like in a few years?

1•korrak•55m ago•1 comments

Show HN: Runeward: Sandboxing AI agents with policy gates

https://runewardd.github.io/runeward/
1•tha_infra_guy•58m ago•0 comments

Big Tech to face fines for consumer protection failures, says EU official

https://www.ft.com/content/25640be5-a5bd-4548-81f9-bd0e16f87f35
3•giuliomagnifico•1h ago•1 comments

Leaked Documents Reveal Secret Russia-China Military Plan to Disable Starlink

https://united24media.com/world/leaked-documents-reveal-possible-secret-russia-china-military-pla...
3•vrganj•1h ago•0 comments

Show HN: DPDK vs. Af_XDP Latency Benchmarks Tested on Real NICs

https://github.com/ASherjil/ABTRDA3
2•CoreCppEngineer•1h ago•1 comments