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, …
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, …
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 …
Part 7 of a series on how Go manages the stack and the heap: the Go 1.15.1 runtime on Windows Server 2019. Reserve and commit instead of mmap, a gigabyte nobody writes counted against the commit limit, 4 MB heap arenas, …
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 …
Part 4 of a series on how Go manages the stack and the heap: Go's garbage collector, concurrent, precise, non-moving and non-generational. Tri-colour marking and the hybrid write barrier, the barrier in the machine code, …
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, …
Part 3 of a series on how Go manages the stack and the heap: the allocator behind every escaping variable. Size classes measured from 17 bytes to 64 KB and set beside TCMalloc, jemalloc and glibc, the tiny allocator that …
Part 4 of a series on the CPython runtime: what ob_refcnt does over an object's life. Objects freed at the exact moment their count reaches zero, the references that keep them alive without anyone noticing, the cycle …
Part 2 of a series on how Go manages the stack and the heap: escape analysis, the compiler pass that decides whether a variable lives in a stack frame or on the heap. Reading its decisions with -gcflags=-m, fourteen …
Part 1 of a series on the CPython runtime: what a Python value is in memory. The integer 1000, a float, a tuple and a list read byte by byte through id() on a stock Ubuntu 18.04, the same fields printed from C, and the …
Part 1 of a series on how Go manages the stack and the heap: goroutine stacks that start at 2 KB, the check at the top of every function, stacks that are copied to twice the size with every pointer into them rewritten, …