Skip to content

docs/boot.md: which end a late run ended in, read from the [rt] counters (DOCS-BOOT-WHICH-END) - #2843

Merged
MoonEyes merged 2 commits into
ProjectLeonida:mainfrom
aznohonza:docs/boot-which-end
Dec 1, 2026
Merged

MoonEyes merged 2 commits into
ProjectLeonida:mainfrom
aznohonza:docs/boot-which-end

Conversation

@aznohonza

@aznohonza aznohonza commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

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.

Stop Lines to read Measured shape from #2464
Pipelines still compiling mem-probe t= pipelines live ... (made N / M, X s / Y s in vkCreate*Pipelines); submit frame the made pair and the vkCreate*Pipelines seconds 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 ended
A held console value list values so far: released unmet by reason, then oldest held gate ...; submit frame 0 released unmet in every reason while the oldest gate grows; the submit frame lines stop: one wait unmet for 101 minutes, 209 gates held, 192 met, 0 released unmet
Host memory mem-probe breakdown t= and the cgroup peak 22.3 GB of 24 killed one run before a world frame, 22.2 GB another after one; a later run of the same scene peaked at 23.6 GB

The 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 the at device loss reason as the gate-side witness. It also says the mem-probe rows need LEONIDA_MEM_PROBE=30 at the start, submit frame needs LEONIDA_SUBMIT_FRAME_SECONDS (default 10), LEONIDA_LIST_VALUES=0 drops 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 exit event, then the made count, 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.md is 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.

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 KelboLive left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

  1. 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 the made pair. Cite the made pair for "built", or label both.
  2. The compile and memory rows need LEONIDA_MEM_PROBE at start. The probe is off by default (and mem_probe.h marks the file LOCAL DIAGNOSTIC (not for upstream)), so a normal log has no mem-probe line at all. Also say where the [rt] lines live: on this machine the five play-*.log files 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.
  3. "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 the list values line's at device loss reason is the discriminator between them. Either retitle the section to "three stalls" or add the device-loss/hang rows — as written, a reader with released unmet 0 will conclude "not a device loss" even when the reason counter says at 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.
@aznohonza

Copy link
Copy Markdown
Contributor Author

Addressed in 035da4f:

  • the pipeline row now cites the made pair for "made": 763 graphics / 619 compute made, 2,296 modules, 732 MiB (the live pair was also 763/619 at the end, but the row no longer mixes them);
  • a line under the table says the mem-probe rows need LEONIDA_MEM_PROBE=30 at the start, submit frame is every LEONIDA_SUBMIT_FRAME_SECONDS (default 10; 0 off), LEONIDA_LIST_VALUES=0 drops the gate counters, and the [rt] lines are the Vulkan layer's stderr, not a launcher log;
  • retitled to "which of these three stops is it", and the intro now names [rt] aftermath: device lost and [rt] hang watchdog:, plus the at device loss reason as the gate-side witness (so released unmet 0 is not read as "not a device loss").

Docs tests and check_no_game_data pass. AI-assisted.

@MoonEyes

MoonEyes commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Verified by MoonEyes (another person than the author) on head 035da4fa9 merged with main 501b3e6c5: docs only. The docs tests (tests/test_docs_*.py, 13 files, Windows, Python 3.14) pass, check_no_game_data.py was not run on it. Every number the page adds is in the two comments of #2464 it cites (and docs/d3d12_xs_console_abi.md §5.5, which exists), apart from issue and comment numbers. I did not run the game (no Linux here) and did not check the reading of the numbers beyond that.

AI-assisted (Claude Code).

@aznohonza

Copy link
Copy Markdown
Contributor Author

Thanks. check_no_game_data.py on docs/boot.md is clean here too, and the tests/test_docs_*.py set passes on this head. Nothing else to change.

AI-assisted.

@MoonEyes

MoonEyes commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Merging. Head 035da4fa9 merges cleanly with main 21e6bbf4b and does not force a rebase of #2566. CI green on this head and on main. Docs only: docs tests pass, every number traced to its source; KelboLive's points are addressed by the author. Merged by MoonEyes.

AI-assisted (Claude Code).

@MoonEyes
MoonEyes merged commit a63eb95 into ProjectLeonida:main Dec 1, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants