📝 Making this device 20% slower did not push boots over the vsync cliff, because there is no cliff
Component: `crates/reims-vgpu` — doc on `runtime::drain::census`'s `VBL_REPORT_EARLY`, and the boot-comparison rules in `AGENTS.md`. No behaviour change. # The hypothesis worth killing A guest holding a correctly-acquired 120 Hz link (8473b762) that presents either ~120 or exactly ~60 with nothing between is the textbook signature of vsync-locked halving: miss the 8.33 ms budget and fall to every other vblank. If that were the cause, this device would be sitting on the edge of that threshold, and every microsecond saved anywhere would buy a probability of doubling the frame rate rather than the microseconds it appears to buy — which would have been the most important fact in this crate, and would have explained the standing puzzle of CPU wins that bought time and no frames. Twenty-four interleaved driven macos-13 boots, pushing the device the wrong way on purpose with `REIMS_VGPU_COMPUTE_GATHER=off` (~20 % more GPU work per draw,11ab6089). The arm's positive control was checked before scoring: `compute_gather=off` and `buffer_gather_dispatches=0` on every boot of it. arm fast slow ~20 % slower device 10 2 shipping default 5 7 Making the device slower did not push boots over a cliff. The slower arm latched fast *more* often. Whatever that direction is — p≈0.09, and one run of twelve an arm cannot claim it — it refutes the cliff, which predicted the opposite and predicted it strongly. # The methodological result, which is worth more The base rate **drifts**. It was 12 slow in 40 early in this session and 7 in 12 twice, hours later, on the same binary. So a slow rate is comparable only within one interleaved run and never against an earlier number — which is why cliff1 was interleaved and why the 9-in-11 of an earlier non-interleaved pair was worthless. `AGENTS.md`'s "classify the boot" paragraph was also wrong on the facts: it described the split as ~420-vs-~268 draws per presented frame and said three boots an arm suffice. The split is ~60-vs-~95-117 presented frames a second with both `draws/s` and `fresh` halving together, `present_hz` is the discriminator, and twenty boots an arm are needed to move a claim about it. Rewritten in place rather than appended to, and it now carries the list of what the split is not so the next theory starts from the frontier. Verified: clippy `-D warnings` clean on the Vulkan arm; `cargo doc` intra-doc link pass clean for the links added. Twenty-four boots as above, no guest panic. Not verified: no cause is claimed, and the direction of the compute-gather effect is explicitly not claimed either — it is reported because it is what refutes the cliff, not because twelve boots an arm established it. macos-13 / x86 / Vulkan / one discrete host. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
8473b76222
commit
f1765e271c
2 files changed
+56
-8
No files matched your search
@@ -664,12 +664,28 @@ So a throughput, caching or cadence change needs
|
||||
Name which probe a number came from, the same way a rail is named: they are two populations of draws
|
||||
and a change can help one and hurt the other.
|
||||
|
||||
**Classify the boot before comparing two of them.** The guest itself has more than one compositing
|
||||
regime and picks between them per boot — the sustained probe reads either ~420 or ~268 draws per
|
||||
presented frame, tightly, with nothing in between. `present_hz` is not comparable across the two, and
|
||||
mixing boots from both is how a real 17 % effect ends up buried under a 24 % artifact. Everything
|
||||
else reproduces to a fraction of a percent *within* a regime, which is what makes three boots per arm
|
||||
enough to separate one. `drain_duty draws` over `window_publish fresh` is the discriminator.
|
||||
**Classify the boot before comparing two of them.** A macos-13 boot presents either ~60 frames a
|
||||
second or ~95-117 for its whole life, tightly, with nothing in between, and the guest picks per boot.
|
||||
`present_hz`, `draws/s` and `fresh` are all halved on a slow boot, so none of them is comparable
|
||||
across the two; `us/draw` and anything else normalised per draw is. Mixing boots from both
|
||||
populations is how a real 17 % effect ends up buried under a 2x artifact. `present_hz` alone is the
|
||||
discriminator — the gap between 61 and 94 is empty on every boot on record.
|
||||
|
||||
**A run's slow rate is a Bernoulli draw, and its base rate drifts.** Over 40 interleaved boots it was
|
||||
12 slow in 40; two runs later the same binary read 7 in 12, twice. So a slow rate is comparable only
|
||||
**within one interleaved run**, never against a number from an earlier one, and a change claiming to
|
||||
move it needs about twenty boots an arm — twelve cannot separate 0.4 from 0.7. This is a different
|
||||
rule from classifying a boot: that one is about which population a reading came from, this one is
|
||||
about the population *rate* being unstable across time on one host.
|
||||
|
||||
What the split is **not**: not the display mode (both populations report `1920 x 1080 @ 120.00Hz`),
|
||||
not the VBL limiter (~118 Hz on fast and slow boots alike), not the claim ordering (40 interleaved
|
||||
boots, p≈0.7), not anything visible in the guest's first sustained VBL window, and not this device
|
||||
sitting on a frame-time cliff — making it ~20 % slower with `REIMS_VGPU_COMPUTE_GATHER=off` did not
|
||||
raise the slow rate. The cause is open. Read `VBL_REPORT_EARLY` beside
|
||||
`runtime::drain::census::VblCensus` before spending boots on a new theory: a run of eight holds one
|
||||
or two slow boots and so cannot tell a cause from a coincidence, which has already produced one
|
||||
confident wrong answer here.
|
||||
|
||||
**Bracket one character of every `pkill -f` pattern**, as `x86_6[4]` does above and as
|
||||
`reims_vgp[u]-` does further down. `pkill -f` matches against whole command lines, and the shell
|
||||
|
||||
@@ -106,11 +106,43 @@ const VBL_REPORT_EVERY: u64 = 1024;
|
||||
/// A slow boot is not being starved of VBL when it settles: it receives ~85 a
|
||||
/// second and presents 60.
|
||||
///
|
||||
/// # It is not a frame-time cliff either
|
||||
///
|
||||
/// A guest holding a 120 Hz link that presents either ~120 or exactly ~60 is the
|
||||
/// signature of vsync-locked halving: miss the 8.33 ms budget and you fall to
|
||||
/// every other vblank. If that were it, this device would be sitting on the edge
|
||||
/// of the threshold, and every microsecond saved anywhere would buy a
|
||||
/// *probability* of doubling the frame rate — which would be the most important
|
||||
/// fact in this crate.
|
||||
///
|
||||
/// It is not it. Twenty-four interleaved boots, with the device deliberately
|
||||
/// pushed the wrong way by `REIMS_VGPU_COMPUTE_GATHER=off` (about 20 % more GPU
|
||||
/// work per draw, and the arm's positive control confirmed
|
||||
/// `buffer_gather_dispatches=0`):
|
||||
///
|
||||
/// ```text
|
||||
/// arm fast slow
|
||||
/// ~20 % slower device 10 2
|
||||
/// shipping default 5 7
|
||||
/// ```
|
||||
///
|
||||
/// Making the device slower did not push boots over a cliff; the slower arm
|
||||
/// latched fast *more* often. Whatever direction that effect is (p≈0.09, and one
|
||||
/// interleaved run of twelve an arm is not enough to claim it), it rules out the
|
||||
/// cliff, which predicted the opposite and predicted it strongly.
|
||||
///
|
||||
/// So the cause of the split is **open**. What is closed is that it is not the
|
||||
/// limiter (which holds ~118 Hz on every boot, fast or slow), not the claim
|
||||
/// ordering (40 interleaved boots, p≈0.7, see
|
||||
/// [`super::signal_display_refresh_classes`]), and not anything visible in the
|
||||
/// deciding window this instrument was built to expose.
|
||||
/// [`super::signal_display_refresh_classes`]), not the display mode (see
|
||||
/// [`super::fill_display_descriptor`]), not anything visible in the deciding
|
||||
/// window this instrument was built to expose, and not a frame-time threshold
|
||||
/// this device sits near.
|
||||
///
|
||||
/// One methodological result came with it and belongs to anyone testing the next
|
||||
/// theory: the base rate **drifts**. It was 12 slow in 40 early in a session and
|
||||
/// 7 in 12 twice, hours later, on the same binary. Compare arms only within one
|
||||
/// interleaved run.
|
||||
///
|
||||
/// This is an instrument, not a rail: nothing branches on it.
|
||||
const VBL_REPORT_EARLY: u64 = 64;
|
||||
|
||||
Reference in new issue
Block a user