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

getaddrinfo Stalls: 56 ms Loop Freezes, 33 ms Search Paths, 6 Threads
One lookup costs 6.8 ms. Three search domains make an unqualified name 33 ms, eight blocking lookups freeze an event loop for 56 ms, and the executor behind getaddrinfo is 6 threads on a…
Read the article → -

Gunicorn Preload Memory: Reading Every Record Copies 86 MiB After Fork
Reading every record of a 105.5 MiB heap leaves 87.1 MiB private, 86.0 MiB of it copied (81.5% of the heap the records grew); 15 large objects add 92.0 KiB over idle, and each…
Read the article → -

SIGTERM Graceful Shutdown: Why In-Flight Requests Die on Deploy
A default SIGTERM ends the process in 0.90 ms and answers none of the 12 requests in flight. A drain that counts requests instead of connections served all 12 and exited in 435.6 ms;…
Read the article → -

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 →