Technology1 min read

15M web servers on one VM – smoltcp, DPDK, AF_XDP

By · Published by Everything Blog

In short

An initial prototype written in basic C achieved approximately 65,000 requests per second using standard system calls like listen, accept, recv, and send. However, scaling attempts halted at roughly 28,000 servers due to the exhaustion of the operating system's default local port range of 32,768 to 60,999. Because a 16-bit TCP port limit caps a single IP address at 65,535 ports, the architecture cannot scale further without alternative networking techniques. To break through this bottleneck, developers are turning to AnyIP to bind full subnets, as well as high-performance frameworks like smoltcp, DPDK, and AF_XDP.

Key points

  • Reaching millions of listening sockets without proxies requires distributing traffic acro…: Reaching millions of listening sockets without proxies requires distributing traffic across multiple IP addresses or subnets.
  • Traditional Linux socket system calls are insufficient for hosting millions of individual…: Traditional Linux socket system calls are insufficient for hosting millions of individual server instances on modest hardware.
  • Advanced tooling such as AnyIP, smoltcp, DPDK, and AF_XDP provides software mechanisms to…: Advanced tooling such as AnyIP, smoltcp, DPDK, and AF_XDP provides software mechanisms to bypass standard operating system limits.

Sources checked by our analysis pipeline: 1

15 million web servers on one VM - smoltcp, DPDK, AF_XDP

Put a web server online and everyone starts trying to hack it. Why? A basic rule of economics. Short supply, big demand - there aren’t enough web servers for everyone. Let’s run a web server for every human on the planet, all 8 billion of them. I couldn’t get funding, so we’re bootstrapping. The goal is to run 15 million web servers on one VM with 10GB of RAM and 1 CPU core. If we succeed, I’ll find some RAM from old microwaves around the house and we’ll scale it up so everyone can have their own web server. Demand will drop to zero and cybersecurity will be solved once and for all.

Web server

Instead of vibe coding it all, let’s use an ancient technique called learning

. First of all, what is a web server? There are a few essential syscalls.

listen

- syscall, asks kernel to listen for connections on a socketaccept

- syscall, accepts a connection on a socketrecv

- receives data from a socketsend

Technology