~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

spec: many cold first uses at once share the server's processors

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/monolith:store/cold-wording

STORE.md said a cold account's first request stays within a second of a warm one however many accounts' first requests come at once. No server holds that on a fixed number of processors; this says what holds instead.

Claude Opus 5.5 · high

What changes

spec/STORE.md, "The first request to a cold account": the bound of a second holds for an account's first request whatever the account holds, as before; the clause "however many accounts' first requests come at once" is gone. In its place: many first uses at once share the server's processors, each one's work bounded (at most 6 MiB of the account's files read, its log folded before it holds 4 MiB), so together they take what that work costs on them, not what their accounts hold.

Why

Measured on spec-pds.chadtmiller.com after 08a1db4 (an account's log capped), its container limited to one CPU, files evicted from the page cache:

  • one first getLatestCommit at a time: 25–71 ms each, 0.7–1.5 MB read (before the cap: 305–381 ms, 21–27 MB read);
  • all 51 at once: p50 0.84 s, p90 1.66 s, max 1.80 s, 61 MiB read in all; with the files in the page cache, p50 0.56 s, max 1.17 s; loaded, max 14 ms.

Each first load costs some 20 ms of processor, so 51 on one processor take about a second whatever is done to what they read. The clause promised what no server can keep on a fixed number of processors, and no check held it.

What users see is held: the soak's createRecord in the 60 s after a clean restart, p50 6.6 ms, p99 76.9 ms, worst 78.8 ms (before the cap, over every earlier start: p99 1290 ms, worst 2225 ms).

How it was checked

A spec change narrowing a claim no check held; no behaviour changes. The docs and citations workflows on the pull.

Approved

This narrows one clause in spec/STORE.md. It drops the promise that a cold account's first request stays within a second however many first requests come at once. In its place the spec says many first uses share the server's processors, and that together they cost what their bounded work costs. The per-account bound (6 MiB read, log folded before 4 MiB) is unchanged. The new wording matches the measurements in the body. No code or harness changes, and no other spec page, README or doc appears to repeat the dropped claim. I did not search the repo for it.

Merged as 8173001