chadtmiller.com/monolith
An atproto PDS
0
0
The authorization pages in Monolith's look
.claude/skills/ui/SKILL.md+6−0
| @@ -40,8 +40,14 @@ just look ended # consent answered 400: "This sign-in has ende | ||
just look busy # the sign-in held on its way: the button busy, the rest disabled | ||
just look error # the error page | ||
just look consent --phone --light # one size and scheme alone | ||
just look email resetPassword # an email's HTML part, as the server sent it over SMTP | ||
``` | ||
| ||
`email` takes any kind of email: `confirmEmail`, `updateEmail`, | ||
`resetPassword`, `signInAuthFactor`, `deleteAccount`, `plcOperation`; or | ||
`all`, which `just look-emails` runs. The browser draws it as a page; a | ||
mail client may draw less. | ||
| ||
It prints each console message, and says when a view is wider than the | ||
screen, naming the element that runs past the edge. Fix that before | ||
anything else, because on a phone the page then scrolls sideways. | ||
bench/docker/reference.Dockerfile+1−1
| @@ -4,7 +4,7 @@ | ||
# harness/bench-reference.mjs. Built by `node bench.mjs --setup` with | ||
# harness/ as its context: | ||
# | ||
# docker build -t spec-pds-bench-reference:local -f bench/docker/reference.Dockerfile harness | ||
# docker build -t monolith-bench-reference:local -f bench/docker/reference.Dockerfile harness | ||
# | ||
# The image also answers the benchmark's client ceiling (bench.mjs), with | ||
# its node and another entrypoint. | ||
bench/soak/data/at-rest/events-monolith.jsonl.gznew+0−0
A binary file, not shown.
bench/soak/data/at-rest/events-spec-pds.jsonl.gzdeleted+0−0
A binary file, not shown.
bench/soak/data/at-rest/summary-spec-pds.json → bench/soak/data/at-rest/summary-monolith.jsonrenamed+1−1
| @@ -1,5 +1,5 @@ | ||
{ | ||
"side": "spec-pds", | ||
"side": "monolith", | ||
"updated": "2026-11-13T17:54:02.772Z", | ||
"started": "2026-11-13T17:43:55.394Z", | ||
"accounts": 20, | ||
bench/soak/data/day-local-disk/events-monolith.jsonl.gznew+0−0
A binary file, not shown.
bench/soak/data/day-local-disk/events-spec-pds.jsonl.gzdeleted+0−0
A binary file, not shown.
bench/soak/data/day-local-disk/summary-spec-pds.json → bench/soak/data/day-local-disk/summary-monolith.jsonrenamed+1−1
| @@ -1,5 +1,5 @@ | ||
{ | ||
"side": "spec-pds", | ||
"side": "monolith", | ||
"updated": "2026-11-13T18:37:19.433Z", | ||
"started": "2026-11-13T17:01:54.588Z", | ||
"accounts": 50, | ||
bench/soak/data/night1/events-monolith.jsonl.gznew+0−0
A binary file, not shown.
bench/soak/data/night1/events-spec-pds.jsonl.gzdeleted+0−0
A binary file, not shown.
bench/soak/data/night1/summary-spec-pds.json → bench/soak/data/night1/summary-monolith.jsonrenamed+1−1
| @@ -1,5 +1,5 @@ | ||
{ | ||
"side": "spec-pds", | ||
"side": "monolith", | ||
"updated": "2026-11-13T16:13:52.687Z", | ||
"started": "2026-11-13T07:08:46.689Z", | ||
"accounts": 50, | ||
bench/soak/analyze.mjs+5−5
| @@ -4,7 +4,7 @@ | ||
// | ||
// The run's directory holds what soak.mjs wrote (summary-*.json, events-*.jsonl) | ||
// and, where they were kept, a sampler's samples.jsonl and kills.jsonl, and | ||
// spec-pds's request lines as server-log.jsonl (its log, PDS_LOG_DIR, cut to | ||
// Monolith's request lines as server-log.jsonl (its log, PDS_LOG_DIR, cut to | ||
// them); each may be gzipped. --split cuts the time into periods, as before | ||
// and after a change; --from and --to bound everything read by time. | ||
// Markdown on stdout: only the sections the files allow. | ||
| @@ -142,7 +142,7 @@ if (samples.length) { | ||
| ||
const synced = samples.filter((s) => s.specFsync && s.specFsync['+Inf'] != null) | ||
if (synced.length > 1) { | ||
out.push("## spec-pds's syncs (samples.jsonl: its fsync histogram, the disk's counters)", '') | ||
out.push("## Monolith's syncs (samples.jsonl: its fsync histogram, the disk's counters)", '') | ||
// Counts between consecutive samples of the same start (a start sets the histogram to 0). | ||
const steps = [] | ||
for (let i = 1; i < synced.length; i++) { | ||
| @@ -160,7 +160,7 @@ if (samples.length) { | ||
} | ||
} | ||
| ||
// ---------------------------------------------------------------- spec-pds's log | ||
// ---------------------------------------------------------------- Monolith's log | ||
| ||
const log = lines('server-log.jsonl').filter((l) => inRange(l.time)) | ||
if (log.length) { | ||
| @@ -174,7 +174,7 @@ if (log.length) { | ||
const s = [...ms].sort((a, b) => a - b) | ||
return [int(s.length), num(pct(s, 0.5)), num(pct(s, 0.99)), num(pct(s, 0.999)), num(s.at(-1))] | ||
} | ||
out.push("## spec-pds's requests, server side (server-log.jsonl)", '', `Its \`request\` lines' \`ms\`. Starts in the log: ${starts.length}.`, '') | ||
out.push("## Monolith's requests, server side (server-log.jsonl)", '', `Its \`request\` lines' \`ms\`. Starts in the log: ${starts.length}.`, '') | ||
const by = {} | ||
for (const r of reqs) (by[r.method] ??= []).push(r.ms) | ||
table(['method', 'n', 'p50 ms', 'p99 ms', 'p99.9 ms', 'worst ms'], Object.entries(by).filter(([, v]) => v.length >= 500).sort((a, b) => b[1].length - a[1].length).map(([m, v]) => [m.replace('com.atproto.', ''), ...stats(v)])) | ||
| @@ -211,7 +211,7 @@ if (log.length) { | ||
out.push(`Slow writes: ${int(slowN)}.`, '') | ||
| ||
if (samples.length) { | ||
// Slow writes against the disk's flush time and spec-pds's slow syncs, a sample apart. | ||
// Slow writes against the disk's flush time and Monolith's slow syncs, a sample apart. | ||
const steps = [] | ||
for (let i = 1; i < samples.length; i++) { | ||
const a = samples[i - 1], b = samples[i] | ||
bench/soak/README.md+2−2
| @@ -91,8 +91,8 @@ node bench/soak/analyze.mjs bench/soak/data/<run> [--split <ISO time>]... [--fro | ||
It reads what a run's directory holds: the soak's `summary-*.json` and | ||
`events-*.jsonl`; a sampler's `samples.jsonl` and `kills.jsonl`, where one | ||
ran beside it (each minute, each server's RSS, CPU and data directory, the | ||
free space, and spec-pds's fsync histogram and the disk's flush counters); | ||
and spec-pds's log cut to its `request`, `start`, `shutdown` and warning | ||
free space, and Monolith's fsync histogram and the disk's flush counters); | ||
and Monolith's log cut to its `request`, `start`, `shutdown` and warning | ||
lines as `server-log.jsonl`, each gzipped or not. It answers the soak's | ||
totals and times, the kills, memory and data over time, the syncs against | ||
the disk's flushes, each method's times on the server, `createRecord`'s by | ||
bench/soak/RESULTS.md+77−77
| @@ -5,8 +5,8 @@ Each run's files are in `data/<run>/`, and every table below is | ||
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 | ||
`kills.jsonl`; and `server-log.jsonl.gz`, spec-pds's log (`PDS_LOG_DIR`) | ||
second run Monolith's fsync histogram and the disk's counters) and | ||
`kills.jsonl`; and `server-log.jsonl.gz`, Monolith's log (`PDS_LOG_DIR`) | ||
cut to its `request`, `start`, `shutdown` and warning lines. | ||
| ||
The soak's own times ("The soak's times") are from a driver capped at half | ||
| @@ -19,11 +19,11 @@ server's own from its log. | ||
either server, across nine kills. Night 1's `lost` and `mismatches` are | ||
the soak's own, from before it knew that a follow or like replaces the | ||
account's others of the same subject ("nine hours"). | ||
- At rest spec-pds holds its live state, 1.08 times it; the reference five | ||
- At rest Monolith 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 | ||
writes spec-pds held about twice the reference's ("nine hours"). | ||
writes Monolith held about twice the reference's ("nine hours"). | ||
- On the network volume a slow sync held up every write under way, with | ||
spec-pds's slow syncs and slow writes following the volume's flush time | ||
Monolith's slow syncs and slow writes following the volume's flush time | ||
(r 0.91 and 0.90); on the server's own disk neither did, and | ||
`createRecord`'s p99 fell from 162 ms to 17 ms ("the volume, then the | ||
server's own disk"). | ||
| @@ -45,7 +45,7 @@ starting it again. | ||
| ||
## 2026-11-13: nine hours side by side | ||
| ||
spec-pds `1707f04` and the reference, each with its data on a Hetzner Volume | ||
Monolith `1707f04` and the reference, each with its data on a Hetzner Volume | ||
(network block storage); 50 accounts and 6 operations a second on each, | ||
from 07:08 to 16:14 UTC; four kills of each, in turn, 40 to 80 minutes apart. | ||
| ||
| @@ -61,45 +61,45 @@ node bench/soak/analyze.mjs bench/soak/data/night1 --to 2026-11-13T16:14 | ||
| ||
### Totals (summary-*.json) | ||
| ||
| | reference | spec-pds | | ||
| | monolith | reference | | ||
| --- | --: | --: | | ||
| from, to | 07:08–16:13 | 07:08–16:13 | | ||
| accounts, records | 50, 109,868 | 50, 110,175 | | ||
| operations | 209,710 | 209,823 | | ||
| accounts, records | 50, 110,175 | 50, 109,868 | | ||
| operations | 209,823 | 209,710 | | ||
| 5xx | 0 | 0 | | ||
| rate limited (429) | 0 | 0 | | ||
| lost | 4,510 | 4,660 | | ||
| mismatches | 200 | 213 | | ||
| lost | 4,660 | 4,510 | | ||
| mismatches | 213 | 200 | | ||
| commits not on the firehose | 0 | 0 | | ||
| outages, their time | 4, 31.1 s | 3, 9.4 s | | ||
| outages, their time | 3, 9.4 s | 4, 31.1 s | | ||
| ||
### The soak's times, by five-minute window (events-*.jsonl) | ||
| ||
Each window has its own p50 and p99 per operation; the median of them, and the worst p99. Times are the soak's, from request to answer. | ||
| ||
| operation | reference p50 | reference p99 | reference worst p99 | spec-pds p50 | spec-pds p99 | spec-pds worst p99 | | ||
| operation | monolith p50 | monolith p99 | monolith worst p99 | reference p50 | reference p99 | reference worst p99 | | ||
| --- | --: | --: | --: | --: | --: | --: | | ||
| post | 72.9 | 650.7 | 4059.9 | 9.9 | 289.3 | 1797.4 | | ||
| like | 75.4 | 649.9 | 4373.4 | 12.9 | 230.3 | 2598.5 | | ||
| applyWrites | 89.2 | 710.5 | 4484.2 | 13.7 | 307.1 | 2646.7 | | ||
| delete | 75.8 | 628.0 | 3866.6 | 11.1 | 226.7 | 1928.3 | | ||
| getRecord | 12.2 | 353.2 | 3544.1 | 2.5 | 70.4 | 722.2 | | ||
| listRecords | 18.0 | 403.7 | 2348.6 | 3.8 | 84.1 | 1812.6 | | ||
| getLatestCommit | 11.4 | 407.5 | 2950.8 | 2.1 | 100.2 | 2536.2 | | ||
| getRepo | 103.0 | 516.2 | 5539.1 | 17.6 | 43.1 | 2844.7 | | ||
| post | 9.9 | 289.3 | 1797.4 | 72.9 | 650.7 | 4059.9 | | ||
| like | 12.9 | 230.3 | 2598.5 | 75.4 | 649.9 | 4373.4 | | ||
| applyWrites | 13.7 | 307.1 | 2646.7 | 89.2 | 710.5 | 4484.2 | | ||
| delete | 11.1 | 226.7 | 1928.3 | 75.8 | 628.0 | 3866.6 | | ||
| getRecord | 2.5 | 70.4 | 722.2 | 12.2 | 353.2 | 3544.1 | | ||
| listRecords | 3.8 | 84.1 | 1812.6 | 18.0 | 403.7 | 2348.6 | | ||
| getLatestCommit | 2.1 | 100.2 | 2536.2 | 11.4 | 407.5 | 2950.8 | | ||
| getRepo | 17.6 | 43.1 | 2844.7 | 103.0 | 516.2 | 5539.1 | | ||
| ||
#### Events by kind | ||
| ||
| kind | reference | spec-pds | | ||
| kind | monolith | reference | | ||
| --- | --: | --: | | ||
| down | 4 | 3 | | ||
| found | 1 | 0 | | ||
| lost | 4,510 | 4,660 | | ||
| mismatch | 200 | 213 | | ||
| down | 3 | 4 | | ||
| found | 0 | 1 | | ||
| lost | 4,660 | 4,510 | | ||
| mismatch | 213 | 200 | | ||
| ready | 1 | 1 | | ||
| resumed | 1 | 1 | | ||
| seq jump | 0 | 5 | | ||
| up | 4 | 3 | | ||
| seq jump | 5 | 0 | | ||
| up | 3 | 4 | | ||
| ||
### Kills (kills.jsonl) | ||
| ||
| @@ -128,7 +128,7 @@ Each window has its own p50 and p99 per operation; the median of them, and the w | ||
| 15:59 | 180 | 1,560 | 283 | 857 | 11 | | ||
| 16:13 | 195 | 1,597 | 284 | 880 | 11 | | ||
| ||
### spec-pds's requests, server side (server-log.jsonl) | ||
### Monolith's requests, server side (server-log.jsonl) | ||
| ||
Its `request` lines' `ms`. Starts in the log: 5. | ||
| ||
| @@ -168,10 +168,10 @@ Slow writes: 1,563. | ||
| ||
## 2026-11-13: the volume, then the server's own disk | ||
| ||
The same accounts on both, from 16:27 to 18:40 UTC. At 17:01 spec-pds's data | ||
The same accounts on both, from 16:27 to 18:40 UTC. At 17:01 Monolith's data | ||
moved from the volume to the server's own disk (the reference's stayed on | ||
the volume), and the soak started again; at 18:11 spec-pds `3218378` was | ||
deployed; at 17:54 spec-pds was killed. The totals are from the soak's | ||
the volume), and the soak started again; at 18:11 Monolith `3218378` was | ||
deployed; at 17:54 Monolith was killed. The totals are from the soak's | ||
start at 17:01. Its `mismatch` are `getRecord`s answered `429` as it read | ||
every account back after its start, which it now takes as no answer; its | ||
`found`, writes a kill cut short that had landed. | ||
| @@ -182,44 +182,44 @@ node bench/soak/analyze.mjs bench/soak/data/day-local-disk --split 2026-11-13T17 | ||
| ||
### Totals (summary-*.json) | ||
| ||
| | reference | spec-pds | | ||
| | monolith | reference | | ||
| --- | --: | --: | | ||
| from, to | 17:01–18:37 | 17:01–18:37 | | ||
| accounts, records | 50, 133,136 | 50, 133,930 | | ||
| operations | 38,854 | 39,279 | | ||
| accounts, records | 50, 133,930 | 50, 133,136 | | ||
| operations | 39,279 | 38,854 | | ||
| 5xx | 0 | 0 | | ||
| rate limited (429) | 381 | 300 | | ||
| rate limited (429) | 300 | 381 | | ||
| lost | 0 | 0 | | ||
| mismatches | 0 | 53 | | ||
| mismatches | 53 | 0 | | ||
| commits not on the firehose | 0 | 0 | | ||
| outages, their time | 0, 0.0 s | 1, 3.5 s | | ||
| outages, their time | 1, 3.5 s | 0, 0.0 s | | ||
| ||
### The soak's times, by five-minute window (events-*.jsonl) | ||
| ||
Each window has its own p50 and p99 per operation; the median of them, and the worst p99. Times are the soak's, from request to answer. | ||
| ||
| operation | reference p50 | reference p99 | reference worst p99 | spec-pds p50 | spec-pds p99 | spec-pds worst p99 | | ||
| operation | monolith p50 | monolith p99 | monolith worst p99 | reference p50 | reference p99 | reference worst p99 | | ||
| --- | --: | --: | --: | --: | --: | --: | | ||
| post | 74.0 | 510.6 | 1847.7 | 7.0 | 201.5 | 1280.3 | | ||
| like | 76.8 | 543.3 | 1406.6 | 12.3 | 200.0 | 2184.6 | | ||
| applyWrites | 92.2 | 778.6 | 2182.8 | 10.9 | 195.7 | 4572.6 | | ||
| delete | 77.1 | 594.0 | 2790.5 | 8.5 | 190.9 | 1456.1 | | ||
| getRecord | 12.2 | 312.4 | 867.9 | 2.5 | 190.4 | 1388.2 | | ||
| listRecords | 21.1 | 402.2 | 1358.8 | 3.9 | 190.3 | 1732.1 | | ||
| getLatestCommit | 11.2 | 373.1 | 917.3 | 2.1 | 110.4 | 519.1 | | ||
| getRepo | 299.2 | 998.7 | 5205.9 | 34.2 | 75.1 | 1258.4 | | ||
| post | 7.0 | 201.5 | 1280.3 | 74.0 | 510.6 | 1847.7 | | ||
| like | 12.3 | 200.0 | 2184.6 | 76.8 | 543.3 | 1406.6 | | ||
| applyWrites | 10.9 | 195.7 | 4572.6 | 92.2 | 778.6 | 2182.8 | | ||
| delete | 8.5 | 190.9 | 1456.1 | 77.1 | 594.0 | 2790.5 | | ||
| getRecord | 2.5 | 190.4 | 1388.2 | 12.2 | 312.4 | 867.9 | | ||
| listRecords | 3.9 | 190.3 | 1732.1 | 21.1 | 402.2 | 1358.8 | | ||
| getLatestCommit | 2.1 | 110.4 | 519.1 | 11.2 | 373.1 | 917.3 | | ||
| getRepo | 34.2 | 75.1 | 1258.4 | 299.2 | 998.7 | 5205.9 | | ||
| ||
#### Events by kind | ||
| ||
| kind | reference | spec-pds | | ||
| kind | monolith | reference | | ||
| --- | --: | --: | | ||
| down | 0 | 1 | | ||
| found | 0 | 25 | | ||
| mismatch | 14 | 93 | | ||
| down | 1 | 0 | | ||
| found | 25 | 0 | | ||
| mismatch | 93 | 14 | | ||
| ready | 2 | 2 | | ||
| resumed | 2 | 2 | | ||
| seq jump | 0 | 5 | | ||
| up | 0 | 1 | | ||
| seq jump | 5 | 0 | | ||
| up | 1 | 0 | | ||
| ||
### Kills (kills.jsonl) | ||
| ||
| @@ -240,7 +240,7 @@ Each window has its own p50 and p99 per operation; the median of them, and the w | ||
| 17:59 | 166 | 1,951 | 291 | 1,015 | 11 | | ||
| 18:40 | 196 | 2,138 | 292 | 1,063 | 11 | | ||
| ||
### spec-pds's syncs (samples.jsonl: its fsync histogram, the disk's counters) | ||
### Monolith's syncs (samples.jsonl: its fsync histogram, the disk's counters) | ||
| ||
| period | syncs | over 25 ms | over 100 ms | slow syncs ~ disk flush time (r, a sample apart) | | ||
| --- | --: | --: | --: | --: | | ||
| @@ -248,7 +248,7 @@ Each window has its own p50 and p99 per operation; the median of them, and the w | ||
| 17:01–18:11 | 14,337 | 2 | 0 | – | | ||
| 18:11–end | 6,400 | 1 | 0 | – | | ||
| ||
### spec-pds's requests, server side (server-log.jsonl) | ||
### Monolith's requests, server side (server-log.jsonl) | ||
| ||
Its `request` lines' `ms`. Starts in the log: 3. | ||
| ||
| @@ -300,7 +300,7 @@ Slow writes: 110. | ||
| ||
Both fresh, each its data on the server's own disk, a backfill window `W` | ||
of 2 minutes and the rate limits off; 20 accounts and 10 operations a second | ||
on each for 10 minutes, seed 7, spec-pds `1707f04`; then the settled check | ||
on each for 10 minutes, seed 7, Monolith `1707f04`; then the settled check | ||
(`README.md`). | ||
| ||
```sh | ||
| @@ -309,11 +309,11 @@ node bench/soak/analyze.mjs bench/soak/data/at-rest | ||
| ||
### Totals (summary-*.json) | ||
| ||
| | reference | spec-pds | | ||
| | monolith | reference | | ||
| --- | --: | --: | | ||
| from, to | 17:43–17:54 | 17:43–17:54 | | ||
| accounts, records | 20, 3,312 | 20, 3,338 | | ||
| operations | 6,178 | 6,209 | | ||
| accounts, records | 20, 3,338 | 20, 3,312 | | ||
| operations | 6,209 | 6,178 | | ||
| 5xx | 0 | 0 | | ||
| rate limited (429) | 0 | 0 | | ||
| lost | 0 | 0 | | ||
| @@ -325,20 +325,20 @@ node bench/soak/analyze.mjs bench/soak/data/at-rest | ||
| ||
Each window has its own p50 and p99 per operation; the median of them, and the worst p99. Times are the soak's, from request to answer. | ||
| ||
| operation | reference p50 | reference p99 | reference worst p99 | spec-pds p50 | spec-pds p99 | spec-pds worst p99 | | ||
| operation | monolith p50 | monolith p99 | monolith worst p99 | reference p50 | reference p99 | reference worst p99 | | ||
| --- | --: | --: | --: | --: | --: | --: | | ||
| post | 35.2 | 61.9 | 64.1 | 5.8 | 12.1 | 12.1 | | ||
| like | 36.5 | 268.4 | 268.4 | 6.2 | 13.5 | 13.5 | | ||
| applyWrites | 43.9 | 251.7 | 251.7 | 7.9 | 12.9 | 12.9 | | ||
| delete | 35.9 | 75.9 | 75.9 | 5.9 | 11.8 | 11.8 | | ||
| getRecord | 12.1 | 20.5 | 20.5 | 2.4 | 5.7 | 8.9 | | ||
| listRecords | 15.3 | 41.1 | 41.1 | 3.0 | 9.9 | 9.9 | | ||
| getLatestCommit | 11.7 | 19.8 | 19.8 | 2.2 | 4.6 | 4.6 | | ||
| getRepo | 28.9 | 87.0 | 87.0 | 4.7 | 6.6 | 6.6 | | ||
| post | 5.8 | 12.1 | 12.1 | 35.2 | 61.9 | 64.1 | | ||
| like | 6.2 | 13.5 | 13.5 | 36.5 | 268.4 | 268.4 | | ||
| applyWrites | 7.9 | 12.9 | 12.9 | 43.9 | 251.7 | 251.7 | | ||
| delete | 5.9 | 11.8 | 11.8 | 35.9 | 75.9 | 75.9 | | ||
| getRecord | 2.4 | 5.7 | 8.9 | 12.1 | 20.5 | 20.5 | | ||
| listRecords | 3.0 | 9.9 | 9.9 | 15.3 | 41.1 | 41.1 | | ||
| getLatestCommit | 2.2 | 4.6 | 4.6 | 11.7 | 19.8 | 19.8 | | ||
| getRepo | 4.7 | 6.6 | 6.6 | 28.9 | 87.0 | 87.0 | | ||
| ||
#### Events by kind | ||
| ||
| kind | reference | spec-pds | | ||
| kind | monolith | reference | | ||
| --- | --: | --: | | ||
| ready | 1 | 1 | | ||
| settled | 1 | 1 | | ||
| @@ -346,17 +346,17 @@ Each window has its own p50 and p99 per operation; the median of them, and the w | ||
| ||
#### The settled check | ||
| ||
| | reference, 17:58 | spec-pds, 17:58 | | ||
| | monolith, 17:58 | reference, 17:58 | | ||
| --- | --: | --: | | ||
| live state: repositories + blobs | 6.8 MiB (1 + 5.8) | 7.1 MiB (1 + 6.1) | | ||
| when the load stopped | 33.9 MiB | 25.6 MiB | | ||
| after 2 W with no write | 33.9 MiB | 16.6 MiB | | ||
| at rest, after a write to each | 33.9 MiB, 4.99 × live | 7.7 MiB, 1.08 × live | | ||
| the settled bound | 23.9 MiB: over | 24.9 MiB: within | | ||
| live state: repositories + blobs | 7.1 MiB (1 + 6.1) | 6.8 MiB (1 + 5.8) | | ||
| when the load stopped | 25.6 MiB | 33.9 MiB | | ||
| after 2 W with no write | 16.6 MiB | 33.9 MiB | | ||
| at rest, after a write to each | 7.7 MiB, 1.08 × live | 33.9 MiB, 4.99 × live | | ||
| the settled bound | 24.9 MiB: within | 23.9 MiB: over | | ||
| ||
## 2026-11-13: settled, on a laptop | ||
| ||
`harness/dev.mjs` on an Apple laptop, `W` of 1 minute, spec-pds `1707f04`: | ||
`harness/dev.mjs` on an Apple laptop, `W` of 1 minute, Monolith `1707f04`: | ||
5 accounts and 30 operations a second for 10 minutes, then the settled | ||
check, the server running throughout. | ||
| ||
| @@ -416,7 +416,7 @@ Each window has its own p50 and p99 per operation; the median of them, and the w | ||
`harness/dev.mjs` on an Apple laptop, `W` of 2 minutes: 5 accounts and 30 | ||
operations a second for 4 minutes, the server stopped, `2 W` with it down, | ||
started again on the same data, then the settled check with `SETTLE_ONLY`. | ||
At 16:58 spec-pds `1707f04`; at 17:15, after `2 W` and a start, `3218378`. | ||
At 16:58 Monolith `1707f04`; at 17:15, after `2 W` and a start, `3218378`. | ||
45 accounts more, made by the soak at 16:53, each have one write. | ||
| ||
```sh | ||
bench/soak/soak.mjs+3−3
| @@ -6,7 +6,7 @@ | ||
// whole now and then, nothing else done to that account meanwhile: a record | ||
// answered is never lost, a server killed meanwhile included. A firehose | ||
// subscriber on each server checks that every commit answered comes | ||
// through. With DURATION_MS it ends with the settled check of spec-pds's | ||
// through. With DURATION_MS it ends with the settled check of Monolith's | ||
// spec/STORE.md, "Bounds". | ||
// | ||
// Writes to OUT: events-<name>.jsonl (what went wrong, outages, and each | ||
| @@ -329,7 +329,7 @@ class Side { | ||
const r = await this.write(a, op, 'com.atproto.repo.createRecord', { repo: a.did, collection, record }) | ||
if (r.status === 200) { | ||
// A follow or like replaces the account's others of the same subject, | ||
// in the same commit (spec-pds's spec/VALIDATION.md, "Duplicates"). | ||
// in the same commit (Monolith's spec/VALIDATION.md, "Duplicates"). | ||
const subject = subjectOf(record) | ||
if (subject) { | ||
const model = this.model.get(a.did) | ||
| @@ -451,7 +451,7 @@ class Side { | ||
const [body] = cbor(b, p) | ||
if (header.op === -1) { this.event('firehose error', { body }); return } | ||
if (typeof body.seq !== 'number') return | ||
// A jump in seq is no event missed: spec-pds reserves seqs in blocks, | ||
// A jump in seq is no event missed: Monolith reserves seqs in blocks, | ||
// and numbers past the block after a start (spec/STORE.md, "Seqs are | ||
// never reused"). An event missed is a commit answered that never | ||
// comes (sweep). | ||
bench/store/README.md+1−1
| @@ -40,7 +40,7 @@ of a RocksDB for each of 2000 accounts is left out, and says so. | ||
| ||
On the runner, the `store-bench` workflow runs the same script when the | ||
owner asks, on `main` or a branch (`knotless run rerun | ||
knotless://chadtmiller.com/spec-pds --ref refs/heads/main --workflow | ||
knotless://chadtmiller.com/monolith --ref refs/heads/main --workflow | ||
store-bench`): its log is the tables. Asked for when nothing else runs | ||
there, as it loads the runner's disk and the gates' runs beside it are held | ||
to times. A pull that changes `bench/store/` or `crates/pds-store` runs | ||
bench/impls.json+5−5
bench/README.md+17−17
bench/results.json+11−11
bench/RESULTS.md+32−32
compat/README.md+31−31
compat/results.json+65−65
compat/RESULTS.md+29−29
crates/pds-server/src/email.rs+89−12
crates/pds-server/src/ops.rs+1−1
crates/pds-server/build.rs+18−1
docs/guide/comparing.md+2−2
docs/README.md+2−2
docs-site/content.mjs+1−1
docs-site/package-lock.json+2−2
docs-site/package.json+1−1
harness/checks/accounts.mjs+2−2
harness/checks/blobs.mjs+1−1
harness/checks/commands.mjs+2−2
harness/checks/identity.mjs+1−1
harness/checks/logging.mjs+1−1
harness/checks/oauth.mjs+1−1
harness/checks/operations.mjs+1−1
harness/checks/session.mjs+1−1
harness/lib/adapters/index.mjs+7−7
harness/lib/adapters/spec-pds.mjs → harness/lib/adapters/monolith.mjsrenamed+3−3
harness/lib/areas.mjs+1−1
harness/lib/args.mjs+5−5
harness/lib/env.mjs+4−1
harness/lib/mail.mjs+52−9
harness/lib/report.mjs+1−1
harness/lib/server.mjs+6−6
harness/lib/smtp.mjs+18−0
harness/lib/via.mjs+1−1
harness/spaces/package-lock.json+2−2
harness/spaces/package.json+1−1
harness/bench.mjs+12−12
harness/compare.mjs+1−1
harness/compat.mjs+13−13
harness/dev.mjs+1−1
harness/look.mjs+93−7
harness/package-lock.json+2−2
harness/package.json+1−1
spec/COMPAT.md+13−13
spec/EMAIL.md+44−10
spec/OAUTH-PAGES.md+6−5
spec/OPERATIONS.md+1−1
spec/PDS.md+1−1
web/src/assets/fonts/jetbrains-mono-latin.woff2new+0−0
A binary file, not shown.
web/src/assets/fonts/OFL-JetBrainsMono.txtnew+93−0
web/src/assets/fonts/OFL-SpaceGrotesk.txtnew+93−0
web/src/assets/fonts/space-grotesk-latin.woff2new+0−0
A binary file, not shown.