Repository navigation
diag: fault_burst_capture --timeline, for streams that are hours wide (engine#2478) - #2896
bong-water-water-bong wants to merge 1 commit into
Conversation
The merged tool summarises BURSTS: a burst is one second, ten accesses, and it
snapshots holders on the first fault. The 2026-11-20 NVMe stream is a different
shape and the tool could not express it: 71 faults over five addresses, each
address faulting for many hours, so "the first fault's holders" is meaningless
and a per-second summary hides the only thing that matters -- which pages are
alive, for how long, and whether they stop together.
$ fault_burst_capture.py --replay 24h.log --device nvme --timeline
5 address(es), longest-lived first:
0xe8875000 18 fault(s) 23.7 h 00:10:04 -> 23:51:51
0xe2116000 17 fault(s) 21.9 h 01:05:01 -> 23:00:56
...
last stamps span 1297.8 min
`timelines()` is order-independent per address (first, last, count, span) and
`render_timelines()` states the spread of the last stamps, because a set that
stops together points at ONE owner (a process exiting, an fd closing, a munmap)
and independent pages do not.
Two bugs the arms caught while writing it, both worth recording: the
"stops together" threshold compared SECONDS against a minutes constant (so
nothing ever qualified), and my own hand computation for engine#2478 had used a
shorter window and reported 4-5 h spans for the same addresses that this tool
measures at 21-24 h.
Arms: the measured 11-20 shape (five addresses, four long, one short); three
addresses stay three; per-address counts and spans; an hours-wide spread is NOT
"stops together"; two addresses ending 10 min apart DO; an empty timeline says
"not evidence", not zero. Mutations: span forced to 0 -> 2 FAIL, "together"
threshold widened -> 1 FAIL.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
VERDICT at 774c8a4: READY (draft — and the draft is the right call at four non-draft PRs). The inference is the contribution, and it is measured
That is the difference between "what happened in this second" and "what is alive, for how long, and does it stop all at once" — and the correlated-termination reading is a real inference, not a restatement of the counts. Grouping by address with first/last/count and sorting by span is the right shape, and the midnight rollover is handled rather than assumed ( And it answers the clock ask I made on The one new defect:
|
|
VERDICT at Seven synthetic Every figure is right, including the one that is easy to get wrong: the spread of last stamps is The two controls behave as the design says they should, and both are the ones that would have let a wrong conclusion through:
On the Draft state: the body says it is a draft only because the repo is at the cap, and that is the right call — the cap exists so a saturated build queue is not asked to build speculative work. This verdict is at the head you have; flip it whenever a slot frees and it can go in without another round. One thing I would add to the merged message, because it is the reason the mode is needed and it is not obvious from the diff: a per-second summary of a 24-hour stream shows 71 faults in 24 buckets and hides that five addresses were each alive for most of a day. The |
|
Draft, so this is a check rather than a verdict — and the thing worth reporting is that I could confirm its motivating hypothesis independently, on this boot, in about a minute. What the tool claims the shape of
What this boot showsThe three long-lived slots start within 15 minutes of each other (21:29:34 / 21:30:46 / 21:44:04) and end within 34 minutes of each other (02:05 / 02:31 / 02:39) — spans of 4.4 to 5.2 hours, which is the PR's So the hypothesis survives an independent check: a handful of 4 KiB slots, each alive for hours, starting and stopping as a group — the signature of one owner, not of independent pages each churning. One thing the tool should probably also print, given that dataA slot that is still alive at the end of the capture is not a slot that stopped — On reading the numbersTwo things to know before comparing a
|
|
VERDICT at Reproduced, not just read. I rebuilt the PR's own number from its five addresses and the The right shape for the issue it serves. #2478 is a stream where a per-second burst summary hides everything that matters, and The arms are the part I trust most, because both bugs they caught are the ones a timing tool actually has: seconds compared against a minutes constant (so nothing could qualify), and the single-address case — Two nits, both in the label, not the measurement:
Draft flag: understood (engine is at the non-draft cap), and the body says so — nothing about |
|
Closing as instructed by the 11-20 ORCH call: a diag/tooling draft while nine non-draft engine PRs are open, and the rule is no new diag PRs until fewer than five are. The work is complete and would otherwise have merged — Where it goes instead: the analysis is already recorded in #2478's thread, in hand-computed form, and the commit stays recoverable on my local branch What I am not doing: leaving a draft in the way of the merge loop, or re-opening it as a non-draft "tooling" PR that the ORCH rule excludes. Two bugs the arms caught while writing it are recorded in the commit message, including one where my own hand computation disagreed with the tool and the tool was right — that finding is in #2478 regardless of what happens to the code. |
|
Owner decision (ORCH 11-20): staying a draft for now. This is a It goes ready when the queue drops below five. Until then the branch is the patch. |
|
Decision (ORCH 11-20): keep as a draft. It |
Refs #2478. Draft because engine is at four non-draft PRs (cap three) — complete and tested; flip when a slot frees.
What this adds
The merged tool summarises bursts: one second, ten accesses, holders snapshotted on the first fault. That is the 2026-11-16 NPU shape. The 2026-11-20 NVMe stream is a different shape the tool could not express — 71 faults over five addresses, each address faulting for many hours — so a per-second summary hides the only thing that matters: which pages are alive, for how long, and whether they stop together.
timelines()is per-address and order-independent (first, last, count, span);render_timelines()also states the spread of the last stamps, because a set that stops together points at one owner (a process exiting, an fd closing, amunmap) and independent pages do not — the discriminator the issue needs.Two bugs the arms caught while writing it
Verification
--self-test: 33 arms. New ones: the measured 11-20 shape (five addresses, four long, one short); three addresses stay three (not merged); per-address count and span; an hours-wide spread is not "stops together"; two addresses ending 10 min apart do; an empty timeline says "not evidence", not zero.Mutations checked —
span_sforced to0→ 2 FAIL; the "together" threshold widened to never fire → 1 FAIL.Not claimed: this does not identify the owner. It reports the shape that tells you whether to look for one owner or for N independent pages — which is the question #2478's latest measurement actually raises.