Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Memory management Remove topic Memory management 101 posts RSS

November 2026

claude.dev

Using a "chaos loop" to harden the Claude Docs launch: 60 server errors across billions of requests

Case study 11 min +110 XP

Before launching Claude Docs, a two-week "chaos loop" had Claude Code drive a production-mirroring staging cluster at over a million synthetic docs a day, inject failures (mass reconnects, killed servers, stalled databases, hot docs), read Datadog telemetry, and ship fixes, with a human approving only hard-to-undo changes like schema or storage layout.

Asahi Linux

Progress Report: Linux 7.3

Release 14 min +140 XP

Asahi Linux's 7.3-cycle report covers upstream submission of the macaudio and AVD (~13,000 lines) drivers, initial M4 Pro/Max and M5 Devicetrees, and M3 support going generally available with DCP enabling sleep and the notch area. m1n1 now runs three EL1 VMs (macOS, SPTM, and the Secure Kernel with Exclaves) to reverse engineer M5 macOS.

October 2026

Kubernetes Blog

The Shift to cgroup v2 in Kubernetes: What You Need to Know

Deep dive 11 min +110 XP

Kubernetes has deprecated cgroup v1: from v1.35 the kubelet refuses to start on cgroup v1 nodes by default (`failCgroupV1: true`), kubeadm preflight errors on it, and the fallback is slated for removal in v1.38. cgroup v2 enables Memory QoS with `memory.high` throttling and tiered `memory.min`/`memory.low` reservations, container-wide OOM kills via `memory.oom.group`, safe rootless delegation, eBPF-based device control, PSI metrics, and accurate Pod-level in-place resizing.

September 2026

ClickHouse

Memory safety for Postgres extensions in C/C++

Case study 4 min +40 XP

Postgres's palloc/MemoryContext allocation and setjmp/longjmp-based error handling clash with C++ new/delete, destructors and exceptions: longjmp skips destructors (undefined behavior), exceptions bypass PG_CATCH, and an uncaught exception aborts the process and forces cluster-wide crash recovery.

August 2026

Hugging Face

Making Knowledge Distillation Cheap Enough to Run at Scale

Research 8 min +80 XP

Two systems changes make LLM knowledge distillation far cheaper: caching the teacher's top-100 logits offline so the teacher never shares memory with the student, and a fused chunked KL loss that folds the output projection into the loss and recomputes chunks in the backward pass, so the full vocabulary × sequence logits grid is never materialized.

July 2026

Servo

June in Servo: real world compat, media queries, SharedWorker, and more!

Release 11 min +110 XP

Servo 0.4.0 bundles a record 558 June commits, adding CSS features like experimental attr(), deferred calc() resolution and many media queries (device-width, aspect-ratio, pointer, hover), plus DOM APIs including SharedWorker, CustomElementRegistry constructors and new SubtleCrypto algorithms.

June 2026

May 2026

April 2026

Bun

Bun v1.3.13

Release 17 min +170 XP

Bun v1.3.13 adds per-file test isolation (--isolate), parallel test workers with work stealing (--parallel), CI sharding (--shard=M/N), and git-aware test selection (--changed) built on the import graph. bun install now streams tarballs to disk while downloading, cutting memory 17x in a large repo, and the isolated linker drops a peer-heavy monorepo install from 20.5s to 2.4s.

March 2026

December 2025

November 2025

September 2025

August 2025

What the interns have wrought, 2025 edition

Case study 12 min +120 XP

Jane Street's 2025 intern projects include an index-aware evaluator for JSQL, the company's internal SQL dialect, which over-approximates key ranges from WHERE clauses and specializes execution to Map, Hashtbl or multi-index containers, giving ~700x and ~30x speedups on 3.8M-row benchmarks.

July 2025

How Go 1.24’s Swiss Tables saved us hundreds of gigabytes

Deep dive 17 min +170 XP

Go 1.24's new map implementation, based on Swiss Tables and extendible hashing, cut roughly 500 MiB of live heap (about 1 GiB of RSS with GOGC=100) from a 3.5-million-entry routing cache map, enough to more than offset a separate Go 1.24 mallocgc memory regression.

June 2025

May 2025

April 2025

March 2025

February 2025

January 2025

December 2024

Hugging Face

Visualize and understand GPU memory in PyTorch

How-to 10 min +100 XP

PyTorch's memory snapshot recorder (torch.cuda.memory._record_memory_history plus the memory_viz web tool) makes it possible to see exactly where GPU memory goes during training: persistent parameters, activations that grow in the forward pass and shrink in backward, gradients, optimizer state and transient optimizer intermediates.

November 2024

September 2024

August 2024

May 2024

April 2024

February 2024

January 2024

Bun

Bun v1.0.21

Release 10 min +100 XP

Bun v1.0.21 fixes 33 bugs and focuses on memory: blob.arrayBuffer() now uses copy-on-write virtual memory mappings for blobs of 8 MB or more (1 MB with --smol), so 100 copies of a 128 MB blob use 192 MB instead of 12.9 GB. bun:sqlite now reports SQLite's memory to the garbage collector, cutting usage 4x for 100,000 prepared statements, and throws SQLiteError with extended error codes and messages.

December 2023

October 2023

V8

A new way to bring garbage collected programming languages efficiently to WebAssembly · V8

Deep dive 20 min +200 XP

Garbage-collected languages like Java, Kotlin, Dart, Python and C# can reach WebAssembly in two ways: compile an existing language VM to linear-memory WasmMVP, or lower the language's objects onto WasmGC structs and arrays managed by the host VM's garbage collector.

September 2023

August 2023

July 2023

10x faster python test iteration via fork(2)

Case study 8 min +80 XP

Benchling cut Python test iteration from 10 seconds to about 1 second by preloading slow-to-import dependencies and SQLAlchemy models in a parent process, then fork()ing a child that imports the changed app and test code, in the style of Rails' zeus. importlib.reload() fails because reverse dependencies keep stale bindings.

June 2023

Bun

Bun v0.6.9

Release 3 min +30 XP

Bun v0.6.9 focuses on memory reductions: zero-copy string Response bodies in Bun.serve() and Response (60 MB vs Deno's 425 MB and Node's 1414 MB after 1000 responses of a 12 MB string), 50% less memory for cold bun install, and fixed leaks when importing modules.

May 2023

April 2023

February 2023

December 2022

Optimizing Ruby’s Memory Layout: Variable Width Allocation

Deep dive 13 min +130 XP

Ruby 3.2's Variable Width Allocation replaces CRuby's single 40-byte RVALUE slot with five size pools (40, 80, 160, 320 and 640 bytes) so classes, strings, arrays and objects can store their data adjacent to the object instead of in separate malloc'd memory.

November 2022

Apollo Cache is Your Friend, If You Get To Know It

Deep dive 15 min +150 XP

Apollo Client's InMemoryCache stores a normalized, in-session representation of GraphQL data, and its object lifecycle runs through four stages: fetching (governed by fetch policies, defaulting to cache-first), normalization (splitting responses into objects keyed by __typename plus id or custom keyFields into a flat hash map), updating and merging, and garbage collection and eviction.

October 2022

September 2022

July 2022

June 2022

May 2022

November 2021

The quest for software engineering knowledge.

Look:
Layout: