Compute Dispatch
A One-Line AI Estimate Entered a 15-Million-Server Memory Budget With Nothing Showing What It Counted
An AI coding assistant answered a question in one sentence, and that sentence became a line in a memory budget for 15 million web servers. When the author tested the budget, the program ran out of memory. Whether the sentence was wrong, or answered a different question from the one the budget needed, is harder to say, because the answer came with nothing but the number. The episode comes from a post on kapteko.com. It is small and a little funny. The project builds on the author's earlier write-up titled "Running 10 million Codex CLIs on one server", which explained why running millions of separate programs creates too much overhead. This time an AI coding assistant, Codex, is helping with the arithmetic.
Audio is in English only for this language. Also read aloud in Spanish, French, Italian and Portuguese.
Fifteen million web servers, 10GB of memory, and 16 bytes each to keep track of them
The kapteko post sets out to run 15 million web servers on one virtual machine, a simulated computer running on shared hardware. It has 10GB of RAM, the working memory programs use while they run, and 1 CPU core. Run as separate programs, each server takes 1.5MB of RAM, so 15 million would need 20TB.
The workaround comes from that earlier write-up, "Running 10 million Codex CLIs on one server". Codex is an AI coding assistant, and a CLI is a version of a program operated by typed commands. The approach loads every server into a single program and switches between them. The post works out that this needs only 16 bytes of saved state per server, or 220MB for all 15 million.
Codex said idle connections cost zero, and the budget counted 14 million listening servers at zero
The author then asked Codex, "How much TCP connection takes?" TCP is the standard kind of connection web traffic travels over. The reply, as printed in the post: "Idle connection takes zero, while active connection consumes around 5kb."
Assuming 1 million connections active at a time, the budget listed 14 million idle connections at 0 bytes, 220MB for switching and 5GB for active connections. That came to about half the RAM.
The validation program created 14 million sockets and told each one to listen. A socket is the endpoint the operating system gives a program for network traffic, and a listening socket simply waits for someone to connect. No connection was ever opened. The program ran out of memory. The author then wrote that creating 10 million sockets, without listening on them, would exhaust a 10GB machine, and that they had missed a syscall "right in front of me": the one that creates the socket. A syscall is a request a program makes to the kernel, the core of the operating system.
The question was about connections, and the budget applied the answer to servers that only listened. The post does not say whether Codex's "zero" was meant to cover a socket like that. The test showed the budget was wrong. It did not clearly show the sentence was. The author's verdict: "While an LLM is a significant boost for learning, it's too easy to accept its answers without thinking critically and feel ashamed later on." An LLM, or large language model, is the kind of AI system behind assistants like Codex.
Valkey's sorted-set post showed every step of its arithmetic, and the measurement still came out different
Valkey is a database. In a post on the Valkey blog dated November 16, 2026, Rain Valentine and Dragos Andriciuc explain why Valkey 9.2 replaces the skiplist behind large sorted sets with a B+ tree variant called fbtree. A sorted set is a collection kept in ranked order, like a leaderboard. A skiplist stores one element per node, each node a separate allocation linked to the others by pointers, which are stored memory addresses. fbtree packs up to 61 entries into each fixed-size node.
The post adds up the skiplist's cost by hand. Each node has an 8-byte backward pointer, plus an average of 1.33 levels of forward pointers and span values at 16 bytes per level, about 29 bytes in all. Adding the 8-byte score gives "roughly 37B per node before accounting for the member string". Later, a test with 5 million 20-byte members measures the skiplist's overhead at 50.3 bytes per member, also excluding the member data. The post does not connect the two figures. Its reported savings, 36 to 43% less overhead and up to 109 MB, are measured against the 50.3.
Codex's answer offered no steps to inspect. The Valkey post's steps can all be read and checked, and they still do not account for the bytes the measurement found.
Wrong, or answering a different question?
When an AI assistant hands over a number with nothing behind it, how would a builder tell whether the number is wrong, or is answering a different question from the one the design depends on?
After the out-of-memory error, the post heads into the kernel's networking code
The kapteko post does not stop at the error. The author calls the embarrassment "a cost of entry" and moves into a section titled "Networking in the kernel", which goes back over the simple server's syscalls and finds the one that was missed: the call that creates the socket. The target is still 15 million servers, and the budget is still 10GB.
The earlier write-up explained why millions of separate programs cost too much and pointed to running them all inside one program instead. This one applies that idea to millions of web servers, and a coding assistant supplied one line of the plan: a single sentence that went in before anyone measured. What followed that sentence was a test and a closer look at the kernel, rather than an abandoned project, which is a hopeful sign, so far.