15M web servers on one VM – smoltcp, DPDK, AF_XDP
Points and comments are a snapshot, not live.
A technical deep-dive into running 15 million TCP servers per VM via userspace networking.
The author sets out to run 15 million web servers on a single VM with 10GB RAM and one CPU core. The naive approach of spawning one Linux process per server fails due to port limits and per-socket kernel memory (≈3.3KB each). To avoid the kernel's overhead, the author proposes running all guests in a single process using a custom scheduler and the smoltcp TCP/IP stack. The stack can be fed via TUN/TAP, DPDK, or AF_XDP to bypass the kernel networking layer entirely. The target per-guest state is ~16 bytes, making the 15M goal theoretically reachable within the memory budget.
What commenters are saying
Commenters overwhelmingly praise the article's humor, technical depth, and readability, calling it a refreshing break from AI-generated content. Several note the resemblance to exokernel and library-OS ideas, with one pointing to Cheetah on XOK as a historical analogue. A few minor technical critiques appear: smoltcp's concurrency limits are noted, and one commenter found the HFT packet-rate math oversimplified. A suggested alternative title drop "15M servers" instead of "15M web servers" was offered.