Four recordings from a real flysim at real time, with and without a real
fly-shadow (infra/tests/fixtures/shadow-guard): alone and with an idle
shadow on other cpus the guard does not trip; with a shadow on the fly's
own cpu (0.66 -> 0.44-0.60) it trips at check 7. Section 18 and the
implementation guide record R3, G1 (both guards), N3, the rebase onto
port/task-01 eaf588d and the merge of main v0.6.7 (adapter v8).
19 lines
1.1 KiB
Markdown
19 lines
1.1 KiB
Markdown
# Recorded live-fly samples for `fly-shadow-run`'s guard
|
|
|
|
These samples come from a real `flysim` (legacy, FAFB, macros mode, at real time) on a shared build
|
|
box on 2026-09-30. They are in `fly-shadow-run`'s own format and cadence:
|
|
|
|
- `baseline.jsonl` holds 60 samples 10 s apart;
|
|
- `checks.jsonl` holds 20 samples a minute apart, after the same flysim restart that `start` does.
|
|
|
|
`lint.sh` runs `fly-shadow-run simulate` over each case and holds it to `expect`:
|
|
|
|
| Case | Setup | Expect |
|
|
| --- | --- | --- |
|
|
| `slow-alone` | 1 cpu, 1 thread; no shadow | pass |
|
|
| `slow-shadow-same` | the same fly, with a real `fly-shadow` following it at normal priority on the same cpu. The live fly dropped from 0.66 to 0.44-0.60 | trip |
|
|
| `fast-shadow-idle` | 3 cpus, 3 threads; a real `fly-shadow` at `SCHED_IDLE` on other cpus. The box was already loaded, and the fly ran at 0.4-0.85 | pass |
|
|
| `fast-alone` | 3 cpus, 3 threads; no shadow | pass |
|
|
|
|
The box's own load moved the fly between 0.4 and 1.0 during some baselines. Those steps are why
|
|
the baseline is robust: the median, and the spread taken as the MAD.
|