Repository navigation
docs/boot.md: which end a late run ended in, read from the [rt] counters (DOCS-BOOT-WHICH-END) - #2843
Conversation
A run that ends after the first frame now has a short table of the [rt] lines to compare: mem-probe's made-pipeline count, list values' oldest held gate, and the cgroup peak, with the measured shapes from #2464. Links the gate rule in d3d12_xs_console_abi.md instead of repeating it. AI-assisted.
KelboLive
left a comment
There was a problem hiding this comment.
The line names match main (mem_probe.h:580, d3d12_xs_list_values.h:1314, submit_phases.h:391), and the held-value row is right: gates held 209, met 192, released unmet 0 plus oldest held gate … 101 minutes is exactly the line, with the four reason counts as the "by reason" fields.
Three corrections:
- The pipeline row conflates two pairs. The line is
pipelines live graphics N compute M (made N2 / M2, X s / Y s in vkCreate*Pipelines); shader modules live …. The 763 graphics / 619 compute and 2,296 modules / 732 MiB are the live values printed before the parenthesis; "built" is themadepair. Cite the made pair for "built", or label both. - The compile and memory rows need
LEONIDA_MEM_PROBEat start. The probe is off by default (andmem_probe.hmarks the fileLOCAL DIAGNOSTIC (not for upstream)), so a normal log has nomem-probeline at all. Also say where the[rt]lines live: on this machine the fiveplay-*.logfiles are the D3D12 runtime's tracing and contain zero[rt]lines — the[rt]stream is the Vulkan layer's stderr, not the launcher's log. - "Three ends" is three stalls. The code also prints
[rt] aftermath: device lost(vulkan_aftermath.cpp:771) and[rt] hang watchdog:…(vulkan_backend.h:2632), and thelist valuesline'sat device lossreason is the discriminator between them. Either retitle the section to "three stalls" or add the device-loss/hang rows — as written, a reader withreleased unmet 0will conclude "not a device loss" even when the reason counter saysat device loss.
Minor: submit frame is LEONIDA_SUBMIT_FRAME_SECONDS (default 10, 0 turns it off) and LEONIDA_LIST_VALUES=0 drops the gate counters entirely — both are preconditions for the table, so one line under the table would save a run.
…tions The pipeline row now cites the made pair for "made", not the live counts; the table says the mem-probe rows need LEONIDA_MEM_PROBE at the start, submit frame needs LEONIDA_SUBMIT_FRAME_SECONDS, and the [rt] lines are the Vulkan layer's stderr. Retitle the section to three stops and name the device-loss/watchdog lines and the at device loss reason. AI-assisted.
|
Addressed in 035da4f:
Docs tests and |
|
Verified by MoonEyes (another person than the author) on head AI-assisted (Claude Code). |
|
Thanks. AI-assisted. |
|
Merging. Head AI-assisted (Claude Code). |
docs/boot.md's triage stops at the first frame. This adds a short guide for a run that stops after it: three stops that look alike in the present count, and the[rt]lines that tell them apart.mem-probe t=pipelines live ... (made N / M, X s / Y s in vkCreate*Pipelines);submit framemadepair and thevkCreate*Pipelinesseconds keep rising: 763 graphics + 619 compute made, 2,296 modules, 732 MiB of SPIR-V, 45 minutes of CPU time, the first frame as the builds endedlist values so far:released unmetby reason, thenoldest held gate ...;submit frame0 released unmetin every reason while the oldest gate grows; thesubmit framelines stop: one wait unmet for 101 minutes, 209 gates held, 192 met, 0 released unmetmem-probe breakdown t=and the cgroup peakThe gate rule stays in
docs/d3d12_xs_console_abi.md§5.5, linked rather than repeated. The section is titled "which of these three stops is it" and names the other two ends' lines ([rt] aftermath: device lost,[rt] hang watchdog:), plus theat device lossreason as the gate-side witness. It also says themem-proberows needLEONIDA_MEM_PROBE=30at the start,submit frameneedsLEONIDA_SUBMIT_FRAME_SECONDS(default 10),LEONIDA_LIST_VALUES=0drops the gate counters, and the[rt]lines are the Vulkan layer's stderr, not a launcher log.The prose gives the reading order: the cgroup first when the process is gone without an
exitevent, then themadecount, then the oldest gate. Values only: no shader or program names, addresses, local paths, log lines or screenshots.Tested: docs-only.
python3 -I scripts/check_no_game_data.py docs/boot.mdis clean, and the document tests (tests/test_docs_*.py,tests/test_i18n_index.py,tests/test_design_contract_rows.py) pass.Claimed in #2570 as DOCS-BOOT-WHICH-END (#2570 (comment)).
AI-assisted.