← Writing

Memory

11 posts

eBPF Learns to Allocate

Part 13 of a series on eBPF: how BPF went from fixed-size map values to memory it manages itself, with the verifier's guarantees intact. On Linux 6.10: kernel pointers kept in maps, objects a program allocates and frees, …

One Program, Seven Runtimes

Part 8, the last, of a series on how Go manages the stack and the heap: one workload written in Go, C, C++, Rust, Java, C#, Python and Erlang, run on Ubuntu 20.04's own kernel. How long a sleeping thread waits while each …

Memory the Runtime Keeps

Part 5 of a series on how Go manages the stack and the heap: how the Go runtime gives memory back to the operating system, and why top disagrees with it. One gigabyte freed by Go 1.11, 1.12 and 1.13 side by side on …

Where the Memory Goes

Part 5 of a series on the CPython runtime: pymalloc, the allocator under every small object. Size classes, 4 KiB pools and 256 KiB arenas, a pool header read from Python, why 4,000 surviving floats keep 95 MiB of memory, …