MMruDocs

Dusk

A Monte Carlo of redundancy policies on hardware that only ever decays. It asks what a shrinking quorum buys, and what it costs, on the same simulated hardware.

Rustno dependenciesdeterministic per seeddusk.mru.space ↗

Run it

cargo run --release --bin dusk                 # the default scenario, about 2 s
cargo run --release --bin dusk -- --spares 2   # add salvaged processors
cargo run --release --bin dusk -- --sweep      # sensitivity and cold standby, about 2 minutes
cargo run --release --bin dusk -- --ground     # against TMR with a ground team, about 12 s
cargo run --release --bin charts               # redraw the charts and data.json, about 2 minutes

The package has two programs. dusk is the default, and --bin charts redraws the charts. Times are for an Apple M4 with 10 cores. Results depend only on the seed, never on the thread count.

Options

OptionDefaultMeaning
--runs10000Missions per policy
--seed1Base seed
--threadsall coresWorker threads
--horizon-years1000Mission horizon
--nodes3Processors at launch
--spares0Salvaged processors
--shape1.5Weibull shape
--scale-years125Weibull scale
--p-corr0.1Chance a death kills another
--p-upset0.001Bad-result upsets per node-day
--coverage0.99Lone self-check coverage
--selfcheck-throughput0.5Lone output vs a vote
--cold-aging0.1 and 1.0How fast an unpowered spare ages, relative to a powered one. The report shows both ends; give a value to show one.

The fault model

Each mission is a day-by-day fault-injection run.

  • Processors die on a Weibull lifetime. Shape 1.5 and a 125-year scale give a median life of about 98 years.
  • Deaths can be correlated. With probability p_corr, a death also kills one other processor that day.
  • Spares are salvaged from instruments as they die, already aged by the same radiation.
  • Upsets corrupt a day's result, at the rate that gets past EDAC and scrubbing.
  • The comparison is paired. Every policy sees the same fault history, so any difference is the policy.

Default results

policy                     useful      p10      p50      p90      service   wrong days     risk
                           mean y                                  mean y   mean / run   P(>=1)
fixed TMR                    99.0     37.6     92.7    168.9         99.0        0.000     0.0%
standby simplex              83.1     38.4     78.3    134.0        166.4        0.603    43.2%
shrinking quorum            132.6     64.3    126.6    208.3        166.4        0.246    20.1%
TMR + unchecked simplex     166.2     76.9    156.7    267.9        166.4       24.715    87.2%
cold standby, aging 0.1     144.7     69.7    139.3    226.7        289.8        1.043    61.3%
cold standby, aging 1.0      83.1     38.4     78.3    134.0        166.4        0.603    43.2%

1.34× the useful work of fixed TMR in total (95% CI 1.33× to 1.35×). This assumes no ground support after launch. The gain falls to 1.00× when support never ends. See Ground support. Never less on any single mission, by construction: the two policies are identical until fixed TMR stops. Fixed TMR comes out ahead only if one wrong result costs more than 136 years of useful work (95% CI 131 to 142), next to a risk of 20.1% against 0.0%.

Cold standby is the nearest model here of dual-string with autonomous switchover. Standby simplex is the same design with spares that age as fast as a powered processor, so it equals cold standby at aging 1.0. See Baselines.

What the columns mean

Each mission runs one day at a time. On each day the policy runs in one mode, set by the number of live processors, and the lowest-numbered live processors do the work. These are the definitions in src/model.rs.

  • Useful. The sum over days of throughput credit for a correct delivered result: 1.0 for a vote day with at most one upset, 1.0 for a pair day with no upset, 0.5 (--selfcheck-throughput) for a single self-check day with no upset, 1.0 for an unchecked day with no upset, and 0 for lost, wrong and idle days. Shown as the mean in years, with the 10th, 50th and 90th percentiles.
  • Service. The first day the policy can never produce output again, or the horizon. For fixed TMR, the first day with fewer than two live processors. For the others, the first day with none left. The model ends the run that day, so a spare due to join later is not used. Shown as the mean in years.
  • Wrong days. Days whose delivered result was corrupted by an upset that nothing caught. One day is one result. Only a lone processor can make one: its self-check misses an upset with probability 1 minus --coverage, and an unchecked processor delivers every upset. Shown as the mean per mission.
  • Risk. The share of missions with at least one wrong day, with a paired bootstrap 95% CI.

A vote day with two or more upsets and a pair day with any upset are lost: the policy catches the disagreement and delivers nothing.

Baselines

Fixed TMR is one baseline, not what most spacecraft fly. Two more act with no ground team, on the same fault histories.

  • TMR + unchecked simplex steps down on its own, but its last processor does not check itself. It isolates the value of self-check. The shrinking quorum does 80% of its useful work and makes 1.00% of its wrong results (95% CI 0.96% to 1.04%). Risk: 87.2% against 20.1%.
  • Cold standby keeps one processor powered and switches on the next, in order, when it dies. The active one self-checks. Here it has three strings, on the same hardware as TMR. Correlated deaths follow the powered fault history, which slightly under-counts them for an unpowered spare.

How fast an unpowered spare ages is not known, so --sweep varies it from 0.1 to 1.0 of the powered rate. Against cold standby, the shrinking quorum does 0.92× the useful work at 0.1 (95% CI 0.91× to 0.92×) and 1.60× at 1.0 (95% CI 1.59× to 1.60×). Cold standby does more useful work below an aging rate of about 0.20. At every rate it has more missions with a wrong result: 43.2% to 61.3%, against 20.1%. With two strings (--nodes 2), the shrinking quorum does 1.05× to 1.49× the useful work of cold standby.

Sweeps

--sweep varies each parameter the model cannot pin down. Across every row, the gain over fixed TMR is 1.11× to 1.68×. Every row assumes no ground support after launch.

Ground support

The 1.34× above assumes no ground support after launch. --ground compares the shrinking quorum with fixed TMR plus a ground team. When TMR drops to one processor, the team commands it into self-check after an answer time, if support has not ended. The gain falls as support lasts longer:

10000 missions, seed 1; shrinking quorum's useful work vs TMR + ground fallback

ground support ends        1 day   30 days  180 days   95% CI at 30 days
at launch                  1.34x     1.34x     1.34x   1.33x to 1.35x
after 10 years             1.33x     1.33x     1.33x   1.33x to 1.34x
after 25 years             1.31x     1.31x     1.31x   1.30x to 1.32x
after 50 years             1.25x     1.25x     1.25x   1.24x to 1.25x
after 100 years            1.11x     1.11x     1.11x   1.10x to 1.11x
after 200 years            1.01x     1.01x     1.01x   1.01x to 1.01x
never                      1.00x     1.00x     1.00x   1.00x to 1.00x

With support that never ends, the gain is 1.00×: the ground does by hand what the shrinking quorum does alone. With 49 years of support, Voyager's so far, the charts program gives 1.25×. Answer time barely matters. What matters is whether anyone is still there.

Checked against the bench

--bench FILE replays the schedules of the Layer 1 bench through the model and compares the means. On the published results, 17 of 18 rows agree within 3 standard errors. Details are on the bench page. This checks the policy model against the real code. It does not calibrate the environment.

What this does not claim

NoteThe parameters are illustrative, not calibrated. The claim is the shape of the trade, and the sweep shows where it holds.

Updated October 11, 2026 · Edit on GitHub · Questions? Get in touch