← notes

Three replicas in parallel, measured on one clock

Oct 21, 2026

Mru Field 0.1.0 kept its CPU share against the wall time of a cycle. Three replicas ran in parallel inside that time, and only the slow emulated ARM runner showed it.

The note here that called Mru Field a specification with no code was committed at 14:21 UTC on October 21. The build was committed at 14:41. By the end of the afternoon Field 0.1.0 was merged: Rust, one process on one Linux board that runs an operator’s task as three replicas and hands every replica the same bytes. It decides with the quorum crate from the flight repository, unchanged, as a pinned git dependency. It votes on a hash of each reply, then compares the agreeing replies byte for byte. 32 unit tests, 18 integration tests, 23 scenario checks ported from flight, and ten power cuts. CI on Linux x86_64, Linux ARM64 and macOS, plus static musl builds for three targets, checked under emulation.

CI then failed four times in 36 minutes. Newer clippy lints wanted is_multiple_of, which the 1.86 bench toolchain cannot write. Start-up was not throttled, and the ARM build under emulation measured 8.6% against a 5% cap. A second power cut before the next checkpoint could erase the resumed line and its count. A one second cool-down could be shorter than a second. And grep -c that finds nothing prints 0 and fails, so || echo 0 printed a second zero.

The last fix was the cap itself. The supervisor kept its share by sleeping against the wall time of each cycle. The replicas compute in parallel, so wall time undercounts the CPU used by up to the number of processes. The emulated ARM build measured 8.3% against 5%. The work is now the CPU time of the supervisor and every task process: live ones read from /proc, finished ones from getrusage.

On a fast machine three replicas finish well inside one cycle, and the difference hides in the sleep. It took the slowest runner to make it big enough to fail.