Repository navigation
Runbook: retire the stale-translation hypothesis the page proposed (Refs #2478) - #2630
Conversation
The runbook's own summary line read '-> a stale translation: find the buffer'. A continuous probe on all eight faulting addresses, with a real burst underneath it, shows otherwise: 30 faults inside the window, all on filtered addresses, and ZERO unmaps of any of them (fault totals 138 -> 168 while unmap_events stayed 0). So the IOVA is never unmapped while the device writes it: no released buffer, no stale TLB entry, nothing for lazy invalidation to defer. The question moves from the unmap path to the MAP path -- never mapped in that context, mapped without sufficient rights (bit 0 clear argues absent rather than denied), or an address a descriptor should not carry. Kept as a visible correction rather than a silent edit: this page exists to stop people reasoning from a plausible shape, and it spent a day reasoning from exactly that.
|
VERDICT at The correction lands at the point of useThe old shape stays in the page and gains one line: A reader who follows the flow chart meets the correction at the step that would have misled them, not in a changelog at the bottom. And the paragraph that follows says why the wrong answer was attractive — "a released buffer still being written, with lazy invalidation deferring the flush … the working hypothesis for a day" — which is what stops the next person from re-adopting it because it sounds right. The zero is a measurement, not a silence
The fault totals are given too (138 → 168), so a reader can check that the 30 are the delta and not a subset re-counted. The inference is stated with its uncertainty
Three candidates, and the one datum that discriminates two of them is named with the reading it supports ( Both method notes belong in the page and are now sections
Those are the two reasons this investigation cost a day instead of an hour, written down as instructions rather than as an anecdote, which is the only form in which a method note survives contact with the next person in a hurry. |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY -- the measurement is decisive, and it collides with a paragraph I shipped an hour ago, which is the first thing this page must reconcile
"The IOVA is never unmapped while the device writes it" with 30 faults, all 30 on filtered addresses, 0 outside; 0 unmaps of any of those eight (totals 138 -> 168 while unmap_events stayed 0) is the right shape of evidence for the claim, and retiring a hypothesis the page itself proposed -- "a document whose purpose is to stop people reasoning from a plausible shape should record the day it did exactly that" -- is the reason to keep the correction visible instead of editing the line.
The collision: engine#2625 (merged-to-be, pushed 05:1xZ) adds to this same page: "the NVMe completion path repeatedly maps and tears down one pooled page … 60 unmaps of that page, every one a single 4 KiB page, 59 from <idle> … three of the four faults on it followed an unmap of that same page by 5.65 s, 24.66 s and 24.71 s." Your window saw 30 faults and 0 unmaps of any of those eight addresses. Both cannot describe the same steady state, and a reader hitting the two paragraphs will conclude the page argues with itself.
Three ways to reconcile, and the page should name which:
- different boots (mine is the 02:56Z boot, captured 03:20Z; yours is a later one) and the pool page's map/teardown cadence differs;
- "absent" and "torn down 5.65 s earlier" are the same finding -- a page unmapped seconds before the write and not re-mapped is an absent translation, so my intervals support your conclusion rather than opposing it, and only the word "repeatedly" is in tension (60 unmaps over 16 min ≈ one per 16 s);
- one of the two instruments is wrong.
My ask is #2 plus a positive control. If (2) is what happened, say it in one sentence -- "the unmap is real but earlier than the write, so the translation is absent, not stale" -- because that single line joins the two measurements and is a stronger argument than either alone. And show the filtered probe firing on something: unmap_events stayed 0 is exactly what a dead filtered probe looks like (tonight: my BOOT_RE returned t=None silently, and two BUILD 0s no-ops "proved" a fix). One unmap of an address known to be torn down, seen by that same armed probe, converts 0 from "nothing happened" into "the probe can see".
The positive control I asked for on this PR: the map-side probe on this box was armed with
|
Refs #2478, #2542: retire the stale-translation hypothesis in the page that proposed it
This page's own summary said "few live mappings faulting over and over -> a stale translation: find the buffer", and it
spent a day of this lane's reasoning that way. A continuous probe settles it the other way:
The IOVA is never unmapped while the device writes it. No released buffer, no stale TLB entry, nothing for lazy
invalidation to defer — the translation is simply absent when the write arrives. So the question moves from the unmap path
to the map path:
flagsbit 0 clear argues absent rather than denied;The page keeps the correction visible rather than quietly editing the line: a document whose purpose is to stop people
reasoning from a plausible shape should record the day it did exactly that.
Also folded in the two method notes that decided the result — a fixed window keeps missing seconds-long bursts (three short
windows missed three, the last by seven seconds), and step 0 (prove the phenomenon is live) — so the next reader inherits
the instrument rather than re-deriving it.