Computing & Hardware November 19, 2026

15 Million Web Servers on One VM: smoltcp and AF_XDP Smash Limits

SHARE:
15 Million Web Servers on One VM: smoltcp and AF_XDP Smash Limits

Systems engineers pushed network virtualization to its limits, packing 15 million web servers onto a single 10GB virtual machine using smoltcp, DPDK, and AF_XDP bypass pipelines.

In network engineering, scaling concurrency has historically progressed in milestones: the C10K problem of the late 1990s gave way to the C10M challenge in the 2010s. Now, a provocative technical experiment published on Kapteko demonstrates how to host 15 million distinct, responsive web servers on a single virtual machine equipped with just one CPU core and 10GB of RAM.

While framed with dry humor—suggesting that hosting a web server for every human would eliminate scanning and hacking by flooding supply—the underlying architecture represents a masterclass in modern kernel-bypass networking. Achieving this scale exposes the fundamental overhead of traditional operating system abstractions when dealing with massive concurrency.

Under standard Linux networking conventions, each open TCP connection or socket requires kernel allocations, file descriptors, and structures like sk_buff. Even with modern event loops utilizing epoll, memory overhead per connection hovers around several kilobytes at best. Attempting to manage millions of concurrent sockets quickly triggers out-of-memory panics or kernel lock contention. To reach 15 million active servers within a 10GB ceiling, each server instance cannot consume more than roughly 680 bytes of total memory.

ADVERTISEMENT

To bypass these bottlenecks, the architecture completely evicts the standard Linux TCP/IP stack in favor of userspace networking. The design relies on AF_XDP (XDP socket) and the Data Plane Development Kit (DPDK). AF_XDP allows raw Ethernet frames to bypass the entire kernel protocol stack and land directly into userspace memory via zero-copy ring buffers, eliminating context switching and costly per-packet memory allocation overhead.

Once packet processing moves into userspace, protocol handling is offloaded to smoltcp, an ultra-compact, standalone TCP/IP stack implemented in Rust. Designed specifically for bare-metal and memory-constrained embedded environments, smoltcp avoids dynamic memory allocations and relies on strictly bounded state machines. By pairing a stripped-down HTTP state parser with smoltcp's deterministic memory footprint, the author effectively collapses the runtime cost of an HTTP listener into a handful of state bytes.

Beyond the architectural curiosity, this experiment carries serious implications for infrastructure engineering and cybersecurity. High-density userspace networking is already rewriting the rules of large-scale honeypot networks, DDoS mitigation appliances, and telecommunication data planes. By decoupling network services from monolithic kernel abstractions, developers can simulate entire internet topologies or withstand unprecedented connection surges on modest commodity hardware.

Sources & Primary References

Want real-time AI & tech intelligence dispatches?

Join the official TrendingTech Daily Telegram channel for breaking research, model launches, and market analysis.

Join Telegram Channel
Partner Intelligence

Automate Your Data & AI Infrastructure

Deploy autonomous agent pipelines and custom data integrations with Automation by Meir.

Discover AI Solutions →
Lex Fridman Podcast #419 — Sam Altman: OpenAI, GPT-5 & AGI
Lex Fridman & Sam Altman · 2 hr 18 min