One VM, 15 million web servers: bypassing the kernel with smoltcp, DPDK, and AF_XDP
15M web servers on one VM – smoltcp, DPDK, AF_XDP

A bootstrapped experiment aims to run 15 million web servers on a single VM with 10GB RAM and 1 CPU core. Starting with a simple C server, the author hits port limits, memory overhead from the kernel's socket structures, and process scheduling costs. The solution involves userland TCP/IP with smoltcp, kernel bypass via DPDK and AF_XDP, and a custom runtime that switches between lightweight guests. The goal: make web servers so abundant that hacking becomes pointless.
Engineering wisdom tells us that if we can’t solve a task, we’re working at the wrong level of abstraction.
- 101008
Great article from the technical aspect, but I also enjoyed the humour a lot. I chuckled with the GB joke, and including the Wolfram screenshot reminded me of the blogs from the ~2005 era, that allowed themselves to include this type of humor.
It was like in the 2000s, blogs wanted to share informatin but also be funny, something similar to a talk in a event? Later they only focused on SEO, so they optimized every word and paragraph, removing jokes, etc. I remember noticing this with the Digital Ocean docs, that ranked 1 for every tutorial in how to install stuff on servers.
Anyway, good times! I miss them.
- LetMeLogin
That was really nice read, finally an article that is easy to read, simple but super technical, and most importantly not written by AI.
- pi-rat
Really interesting and love the humor. Made me chuckle over morning coffee multiple times.
Finding something today that makes you go “i want to subscribe to more of this”, is rare.
- gonzus
Came back to HN simply to say, what a fantastic article! Interesting, entertaining, it even had me laughing out loud at points. Great job!
- anonymousDan
Nice article, I hadn't come across AF_XDP before.