📝 The early window that predicted the latch eight times out of eight predicts nothing, and one slow boot was the whole sample
Component: `crates/reims-vgpu` — docs on `runtime::drain::census`'s `VBL_REPORT_EARLY` and on `signal_display_refresh_classes`. No behaviour change.cad67521recorded that the first sustained `arm=delivered` window predicted the rate a boot latches, 8 times out of 8, and called the split settled. **It is not, and the finding was a false positive.** That run contained exactly one slow boot, so every feature of that one boot predicted the outcome perfectly. The forty-boot run of7e68dba2carried the instrument on twenty of its boots: boots first sustained window latched B8,B9,B12,B16 119.6 - 120.3 slow B7 44.1 fast the other 15 119.4 - 120.5 fast Four slow boots were served a clean ~120 Hz across that window and latched 60 anyway; one boot served 44 Hz latched fast. The window reads ~120 Hz in 18 of 20 boots whatever follows, so it carries no signal. The docs now lead with the trap rather than the conclusion: the slow population appears in about 30 % of boots, so a run of eight holds one or two and cannot separate a cause from a coincidence. Anyone testing the next candidate feature needs forty boots, not eight. What the twenty boots do show is that every boot shares one shape — two windows at ~120 Hz, a dip, ten-plus quiet seconds while the desktop comes up, then a ramp — and the populations differ only in where the ramp settles, fast at 110-120 Hz delivered and slow at 75-90. That is the outcome and not the cause: a 60 Hz compositor arms VBL less often by construction, and a slow boot is not starved when it settles, receiving ~85 VBL a second while presenting 60. So the cause is open. What is now closed: it is not the limiter, which holds ~118 Hz on fast and slow boots alike; not the claim ordering, at p≈0.7 over forty interleaved boots; and not anything visible in the window this instrument was built to expose. Verified: clippy `-D warnings` clean on the Vulkan arm; `cargo doc` intra-doc link pass clean for the links touched. Not verified: no replacement hypothesis is offered. The instrument stays because it is what falsified the first one, not because it has found the answer. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
7e68dba216
commit
49701ba36e
2 files changed
+41
-29
No files matched your search
@@ -68,37 +68,49 @@ const VBL_REPORT_EVERY: u64 = 1024;
|
||||
/// later lines could recover it. Sixteen finer lines at the head of each arm cost
|
||||
/// nothing and cover the first ~9 s.
|
||||
///
|
||||
/// # What it found: one window decides the whole boot
|
||||
/// # What it found, and the false positive it found first
|
||||
///
|
||||
/// Eight driven macos-13 boots of one binary, quiesced host. The **first
|
||||
/// sustained `arm=delivered` window** — the guest's first stretch of holding VBL
|
||||
/// armed continuously, which lands around `delivered=128` — predicts the rate
|
||||
/// the guest keeps, 8 times out of 8:
|
||||
/// Boots on this rail are sharply bimodal: over 40 interleaved driven macos-13
|
||||
/// boots, 28 presented 94.8-117.0 frames a second and 12 presented 59.8-60.5,
|
||||
/// with nothing in between. Roughly three in ten lose half their frame rate.
|
||||
///
|
||||
/// The first reading off this instrument was that the **first sustained
|
||||
/// `arm=delivered` window** — the guest's first stretch of holding VBL armed,
|
||||
/// landing near `delivered=128` — predicted which population a boot fell into,
|
||||
/// 8 times out of 8. **It does not.** That run contained exactly one slow boot,
|
||||
/// so every feature of that one boot "predicted" the outcome perfectly. Twenty
|
||||
/// instrumented boots later:
|
||||
///
|
||||
/// ```text
|
||||
/// boot first sustained window presented frames/s
|
||||
/// b1 60.5 Hz 59
|
||||
/// b2-b8 119.2 - 120.5 Hz 99 - 108
|
||||
/// boots first sustained window latched
|
||||
/// B8,B9,B12,B16 119.6 - 120.3 slow
|
||||
/// B7 44.1 fast
|
||||
/// the other 15 119.4 - 120.5 fast
|
||||
/// ```
|
||||
///
|
||||
/// The guest measures the rate it is being served, once, and holds the answer.
|
||||
/// Four slow boots were served a clean ~120 Hz across that window and latched 60
|
||||
/// anyway, and one boot served 44 Hz latched fast. The window is ~120 Hz in 18
|
||||
/// of 20 boots whatever happens afterwards, so it carries no signal at all.
|
||||
///
|
||||
/// **It does not revisit it.** b1 went on to receive 103-116 Hz of VBL for the
|
||||
/// rest of the boot, from `t=38 s` onward, and still presented 59 frames a
|
||||
/// second throughout. So this is not "the compositor runs as fast as it is
|
||||
/// paced": a guest that measured 60 Hz early keeps a 60 Hz compositor no matter
|
||||
/// what it is offered afterwards, and the only opportunity to influence it has
|
||||
/// closed by about nine seconds after the display comes up.
|
||||
/// **Treat a single-slow-boot sample as no sample.** The population that matters
|
||||
/// here shows up in 30 % of boots, so a run of eight contains one or two of them
|
||||
/// and cannot separate a cause from a coincidence. Forty boots is the order of
|
||||
/// sample size this question needs, and the same trap applies to any other
|
||||
/// feature someone thinks distinguishes the two.
|
||||
///
|
||||
/// That is why the early lines matter more than every later line put together,
|
||||
/// and why a change to this device's steady-state pacing can be real and still
|
||||
/// move nothing: by the time the probe drives the guest, the factor of two has
|
||||
/// already been chosen.
|
||||
/// What every boot does share is the shape: two windows at ~120 Hz, a dip, a
|
||||
/// quiet stretch of ten seconds or more while the desktop comes up, then a ramp.
|
||||
/// The populations diverge only in where that ramp settles — fast boots at
|
||||
/// 110-120 Hz delivered, slow boots at 75-90 — and that is the outcome rather
|
||||
/// than a cause, because a 60 Hz compositor arms VBL less often by construction.
|
||||
/// A slow boot is not being starved of VBL when it settles: it receives ~85 a
|
||||
/// second and presents 60.
|
||||
///
|
||||
/// What made b1's window read 60.5: across it the device delivered 64 VBL and
|
||||
/// declined 128, so the guest was found armed on about a third of ticks. Its
|
||||
/// re-arm turnaround, not the limiter, is what missed the grid — the limiter
|
||||
/// held its usual ~118 Hz in that boot as in every other.
|
||||
/// 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.
|
||||
///
|
||||
/// This is an instrument, not a rail: nothing branches on it.
|
||||
const VBL_REPORT_EARLY: u64 = 64;
|
||||
|
||||
@@ -5231,12 +5231,12 @@ pub(crate) fn display_event_enabled<H: HostMemory>(host: &H, gpa: u64, event_mas
|
||||
/// ordering repairs: B3 received 54 % more VBL than A2 and presented the same 59
|
||||
/// frames a second.
|
||||
///
|
||||
/// What the split is, is settled — see `VBL_REPORT_EARLY` beside
|
||||
/// [`census::VblCensus`]. The guest
|
||||
/// measures the rate it is served across **one early window**, latches 60 Hz or
|
||||
/// 120 Hz from it, and never revisits the answer however fast it is served
|
||||
/// afterwards. So this ordering can only matter to the extent it changes what
|
||||
/// that one window reads, which is a probability over boots and not a rate.
|
||||
/// The split is a property of the boot, not of the workload: a boot presents
|
||||
/// either ~60 or ~95-117 frames a second for its whole life, with nothing in
|
||||
/// between. What decides it is still open — see `VBL_REPORT_EARLY` beside
|
||||
/// [`census::VblCensus`], which also records the plausible-looking early-window
|
||||
/// explanation that twenty boots killed. So the outcome to rank this ordering
|
||||
/// against is a probability over boots and not a rate.
|
||||
///
|
||||
/// **It does not change it.** Forty interleaved driven macos-13 boots, twenty an
|
||||
/// arm, no guest panic and no boot lost:
|
||||
|
||||
Reference in new issue
Block a user