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

The soak's results are analyze.mjs's output, from each run's files

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/monolith:soak-analyze

Every number in the soak's results can be made again now: bench/soak/analyze.mjs makes each table of RESULTS.md from the run's files, and RESULTS.md is 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, --to to 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; createRecord by 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, shutdown and 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.md were 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.md is the script's output for each run, as its commands give it; the commands run again give the same.
  • Against what was measured by hand before, the script's numbers agree where the time spans do; where they differ, as night 1's totals (its summary was written once more as the soak stopped), the script's are kept.
  • Making them so found two things the hand-made tables said wrongly: the correlation with the volume's flushes (0.91) came from the second run, not the first, which sampled no syncs; and the minute after a start is slow after a clean start too, not only after a kill (18:11, createRecord up to 2.2 s).
  • Not in this pull: the deployment repository's soak wrapper (hetzner-infra, services/spec-pds/soak/run.sh) collects a running soak's files in this shape and reports with this script, taken from main; the files it collected from the run on the server gave the same tables.

Shortcomings

  • The soak's own sequence of operations depends on timing, though seeded: a run again gives the same kind of numbers, not the same ones.
Asked for changes

This 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 to RESULTS.md. It doesn't mention analyze.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.mjs and adding a run would do.

Smaller points.

  • The log is described as cut to "request, start, shutdown and warning lines" in README.md and the pull body. RESULTS.md and the commit message say "request, start and warning lines". Make them agree. analyze.mjs reads only request and start.
  • The first bullet of "What they show" says "No write answered was lost". The night 1 totals table beside it shows lost of 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
review.knotless.dev

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
review.knotless.dev

"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.

Approved

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.

Merged as ef64d96