chadtmiller.com/monolith
An atproto PDS
The soak's results are analyze.mjs's output, from each run's files
MergedThis adds bench/soak/analyze.mjs, which makes every table in bench/soak/RESULTS.md from a run's files. It rewrites RESULTS.md as each run's description, command and output, and adds the server logs for the two server runs plus the two laptop runs' files. I read the whole diff except the binary .gz files, which I can't open. I did not run the script, so I could not check that its output matches RESULTS.md. I read the script, and its definitions, such as the percentile, the periods and the slow-write window, match what the tables say. The numbers I cross-checked agree, such as p99 falling from 162 to 17 ms and r of 0.90 and 0.91. I found nothing in the script that makes a result wrong.
Must change: the guide.
docs/guide/comparing.md("The soak", around line 274) says how the soak is run and points toRESULTS.md. It doesn't mentionanalyze.mjs. The repository asks that a change to how something is checked updates its guide in the same pull.- A short paragraph there on running
analyze.mjsand adding a run would do.
Smaller points.
- The log is described as cut to "
request,start,shutdownand warning lines" inREADME.mdand the pull body.RESULTS.mdand the commit message say "request,startand warning lines". Make them agree.analyze.mjsreads onlyrequestandstart. - The first bullet of "What they show" says "No write answered was lost". The night 1 totals table beside it shows
lostof 4,510 and 4,660. The text under that table explains these as the soak's own bug about follows and likes. Add that note to the bullet, or the bullet reads as contradicting the table. - The pull body says the deployment's wrapper now collects the soak's files in the same shape, and that its report is this script's output. No such change is in this diff. Either it is elsewhere, or that line should go.
bench/soak/RESULTS.mdline 8Outdated
again to check them. The files: `summary-*.json` and `events-*.jsonl.gz`, | |
the soak's; where the machine was sampled, `samples.jsonl.gz` (each minute: | |
each server's RSS, CPU and data directory, the free space, and from the | |
second run spec-pds's fsync histogram and the disk's counters) and |
This says the log is cut to request, start and warning lines. README.md and the pull body also list shutdown. Make them agree.
bench/soak/RESULTS.mdline 21Outdated
- No write answered was lost and no commit answered missed the firehose, on | |
either server, across nine kills. | |
- At rest spec-pds holds its live state, 1.08 times it; the reference five | |
times it ("under load and at rest"). Under a day's window and hours of |
"No write answered was lost" sits beside night 1 totals showing lost 4,510 and 4,660. The soak's follow/like bug explains those, so say so here.
The guide change I asked for is in. docs/guide/comparing.md now says how analyze.mjs makes each table of RESULTS.md, and how a run is added. The lost note on the first bullet of "What they show" is also in, so the bullet no longer reads as contradicting the night 1 table. RESULTS.md now says "request, start, shutdown and warning lines", which matches the pull body and the README. The script reads only request and start, but that wording is accurate for what the log holds.
The pull body still says the deployment repository's wrapper collects the files in this shape, and nothing in this diff does that. It is stated as outside this pull, so it doesn't block the merge. I still did not run the script, and I could not open the .gz files.
Every number in the soak's results can be made again now:
bench/soak/analyze.mjsmakes each table ofRESULTS.mdfrom the run's files, andRESULTS.mdis each run's description, its command, and that command's output.Claude Opus 5.5
What changes
bench/soak/analyze.mjs. Given a run's directory (
--split,--from,--toto cut its time), the soak's totals and its times by window; the kills; memory and data over time; spec-pds's syncs against the disk's flushes, by period; each method's times on the server, from spec-pds's log;createRecordby period with the minute after each start apart; what a slow write held up (the writes to other accounts and the reads under way); slow writes against the disk's flushes; and the settled check. No dependencies.bench/soak/RESULTS.md. Each run's description, command and output, after a short list of what they show.
bench/soak/data/. spec-pds's log of the two runs on the server, cut to its
request,start,shutdownand warning lines (server-log.jsonl.gz, 3.4 MB): without it, the server's own times could not be made again. The two runs on a laptop, whose files were not kept before.bench/soak/README.md. "Results": how to analyze a run and add one.
docs/guide/comparing.md. "The soak": how a run is analyzed, and added.
Why
The tables in
RESULTS.mdwere made by hand, with one-off commands not kept, from files some of which were not kept either. A result that cannot be made again cannot be checked.How it was checked
RESULTS.mdis the script's output for each run, as its commands give it; the commands run again give the same.createRecordup to 2.2 s).services/spec-pds/soak/run.sh) collects a running soak's files in this shape and reports with this script, taken frommain; the files it collected from the run on the server gave the same tables.Shortcomings