Metrics and the sink acceptance: smaug¶
These runs went from Gavin's laptop (macOS) to smaug (Debian 13, x86-64) on
2026-11-25. Both machines ran binaries built from main at e1a07fb; the sink
was later updated to wip/sink-sql at 02ad2e8 (group-readable data, see
below). The laptop used the join-by-invite config,
~/.config/allmyram-join/client.json.
The plan called for runners on smaug and the Bazzite desktop with the sink on
smaug. Bazzite can't run a runner yet (install.sh is Debian-only; the
installer that would work there is kata 0d5n), and a sink on a desktop makes
no sense, so the runner and the sink both ran on smaug. The sink still dials
the runner over tailcat; only the check with two runners waits for 0d5n.
Step 1: reinstall the runner¶
sudo bash install.sh in ~/allmyram-install, without --join, kept
smaug's trust and passed all nine egress self-checks. The runner's journal
kept its format, so install.sh still saw the self-check verdict.
Step 2: the sink joins¶
- smaug, as root: created the user
allmyram-sinkand/var/lib/allmyram-sink. - Laptop:
allmyram invite --sink. smaug:sudo -u allmyram-sink allmyram join --sink --name smaug-sink --state-dir /var/lib/allmyram-sink/state. Both showedKF4H-NN4V; Gavin approved, and one Touch ID prompt signed the sink record. The laptop printedsink smaug-sink joinedandreached: smaug. The sink issmaug-sinkbecause a name is a runner's or a sink's, never both. - The invite then waited 2 minutes for the sink's service, which wasn't
started yet, and warned to run
allmyram sync-sink, exiting 0, as designed. Its text says "dial runner" for a sink (kata 5bcj). - smaug: installed
allmyram-sink.servicewith--name smaug-sinkand started it.allmyram sync-sinksent it the runner list (runners=1).
Step 3: telemetry arrives¶
- Heartbeats came every 30 s, carrying every metric the spec lists, with
allmyram.runner=smaugadded by the sink. - Hoardable memory read 10.57 GB. By hand from smaug's
/proca moment later: MemAvailable 8.99 GB + ½ × (ARC size − c_min) 5.55 GB − the 4 GiB reserve = 10.25 GB, 3% apart (MemAvailable moves between readings). Hoardable GiB-minutes per heartbeat were about 9.8 GiB × ½ minute. - Warden memory read 3.5 MB, matching its cgroup's
memory.current. - Three jobs ran from the laptop: one exiting 3 after printing bytes that
aren't UTF-8, one holding about 200 MB and printing 2,001 lines, and one
cancelled after 20 s. Three run-end records arrived,
Errorexit 3,Completedexit 0 andCancelledexit −1. The cancelled run kept its peak memory (229 MB) and CPU time from the warden's Stop. The invalid bytes arrived as a bytes body. The 2,001 lines came in batches of 1,000. - The first job reported 0 used GiB-minutes: it ended in 1.2 s, before the runner's first one-second poll. Its peak and CPU time came from Stop.
Reading the data¶
Checking the data first meant a sudo copy of the sink's 0700 directory, so
the sink's data directory and files became group-readable (0750 and 0640;
state/ stays 0700), Gavin joined the allmyram-sink group, and
deploy/linux/sink.sql gives DuckDB views over the files. On smaug, without
sudo:
showed the last heartbeat 2 s before, the three jobs by outcome, and 3.9 hoardable GiB-hours with a sliver used.
Step 4: the sink goes away¶
A job printed a numbered line every second for 5 minutes. The sink was stopped from 15:46:33 to 15:50:45.
- Heartbeats: 22 over 10½ minutes with no gap over 30 s; the eight from the outage arrived after it.
- Spill: it rose from about a minute into the outage to 8 KB and was 0 at the first heartbeat after the restart.
- Job output: all 301 lines (300 ticks and
finished) arrived, each offset exactly once, with no gaps. The job endedCompleted, exit 0.
Step 5: the sink is retired, then restored¶
allmyram remove --config … smaug-sinksigned a "no sink" record (one Touch ID prompt) and printedreached: smaug.- The still-running sink logged once, "runner closed the telemetry connection at once; its sink record does not name this sink", then redialled at 1, 2 and 4 s, backing off.
- No heartbeats were kept while there was no sink (none for 15:52:48 or 15:53:18).
- Restoring needed no cleanup: stop the sink,
invite --sinkandjoin --sinkagain (its keys are reused), start it. The invite took the runner list once the service answered, and heartbeats resumed at 15:53:48.
Two runners¶
Later the same afternoon the Plan 2 session joined gavins-mac-mini (a Mac
runner from wip/plan-2-macos-runner), and the laptop sent the sink a list
of two runners (16:17:35). The sink pulled from both over tailcat: at 16:26
from runners showed heartbeats from each within the last 23 seconds. The
Mac sends runner, shipper and run metrics only; its host readers are kata
1ewf.
In between, another session reinstalled smaug from a branch without the
metrics code (wip/scratch-pads at 36c9042): the runner then had no sink
record handling, refused the sink's key ("not in allowedClients"), and the
sink backed off to a dial a minute. Reinstalled from a build containing main
(0b48001), smaug's heartbeats resumed on the sink's next dial, with nothing
done on the sink.
Not measured¶
- The shipper's own memory. The runner's RSS was 43–49 MB with telemetry on, and the sink's 43 MB. Without a reading from before telemetry existed, this run can't separate the shipper's share from tailcat's and the runner's, so the spec's ~10 MiB target is unchecked.
- The Mac readers (kata 1ewf).