Archives
Every essay, tool teardown, and build note, newest first.
-

Python RSS Stays High After Free: When malloc_trim Helps
Free every object and 104.2 MiB of RSS can stay: glibc keeps the pages. On a 1 MiB-block filesystem one file open puts the heap/mmap line at 1,032 KiB, and one trim returned 89.9…
Read the article → -

inotify Misses Config Reloads: 16,384-Event Overflow and Dead Watches
One thousand appends collapse into one inotify event, a rename kills the watch, and a full queue keeps the oldest 16,384. A measured reload runbook.
Read the article → -

asyncio Connect Stalls at 1 s, 3 s and 7 s: the Listen Backlog Is Full
An asyncio accept queue holds 2 connections at listen(1); past that, connects return at 1 s, 3 s and 7 s, while a blocked loop adds 1,004 ms to the reply.
Read the article → -

TLS 1.3 Session Tickets: Rotation Handshake Herds and Stale Pools
TLS 1.3 tickets: 10 early sessions resumed 0, a rotation costs 29.7 ms a handshake, and a pre-write poll turns 24 stale reuses from ambiguous to served.
Read the article → -

HTTP/2 GOAWAY: What a Drain Drops, Why the Retries Multiply, and How One True Cutoff Ends Both
12 streams in flight, 4 admitted at the cut: a silent close left all 12 unknowable; one GOAWAY answered its four, lost none, in 142.1 ms.
Read the article → -

Too Many Open Files: the accept() Spin, the TIME_WAIT Pile, and the Descriptor Budget That Fixes Only the Spin
At a 64-descriptor limit one accept loop made 238,509 refused calls in half a second while its 64 clients waited, and served none of them.
Read the article → -

SQLite in Production: database is locked, 37 ms Commits and a WAL That Never Checkpoints – a Measured Runbook
Four processes lost 180 of 240 units to SQLITE_BUSY, and on this network mount a rollback-journal commit costs 37.2 ms against 8.8 ms in WAL.
Read the article → -

Python Logging in Production: the Rotation Race, 5 ms fsyncs, Dropped Records and the Event Loop – a Measured Runbook
Four processes on one rotating log left 526 of 800 records on disk and dropped 7 while rolling; a lock around the rollover kept all 800.
Read the article → -

Python subprocess Deadlocks: the 64 KiB Pipe, Zombies, Orphan Process Groups and asyncio Descriptor Leaks – a Measured Runbook
A pipe holds 65,536 bytes, so a child that writes more stops dead: reading it in the wrong order delivered 131,072 bytes, then waited forever.
Read the article → -

Streaming in FastAPI and Starlette: Chunk Size, Backpressure and the Abandoned Client – a Measured Runbook
One chunk per event cost 9.811 us against 2.901 in batches of a hundred, and an abandoned client took 1.0 MiB of a 256.0 MiB body.
Read the article →