15 million web servers on one VM - smoltcp, DPDK, AF_XDP
Web page · https://kapteko.com/15-million-webservers
First seen by Oriel on .
AI summary
The article explores why hosting 15 million web servers on one 10GB, one-core VM fails with ordinary processes and sockets, then proposes custom runtimes and userspace networking as the path forward.
- A basic C server achieves about 65k requests per second, but millions of instances quickly exhaust ports, memory, or both.
- A custom runtime using LFI could isolate guests and store approximately 16 bytes of scheduling state per server, or about 220MB total.
- Each Linux socket consumes roughly 3,384 bytes across TCP, socket, file, and dentry structures, making millions of kernel-managed sockets impossible within 10GB.
- The proposed escape is a userspace TCP/IP stack such as smoltcp, communicating through TUN, TAP, DPDK, or AF_XDP.
- DPDK avoids kernel networking and syscall overhead but requires a busy CPU core and exclusive control of the network device.
#smoltcp #dpdk #af_xdp #networking
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Hacker News: 402, latest observation ; +392 over observed period since
- Lobsters: 64, latest observation ; +63 over observed period since
Comments
Comment count reported by the source.
- Hacker News: 42, latest observation ; +41 over observed period since
- Lobsters: 1, latest observation ; +1 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Hacker News | 50556533 | https://kapteko.com/15-million-webservers/ Read discussion |
| Lobsters | elmy67 | https://kapteko.com/15-million-webservers/ Read discussion |