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

Manually merged
github merged 2 commits from github-bot/gh-2843 into gh-pr/2843/base 2026-12-01 11:49:39 +00:00 AGit
Owner

@⁠aznohonza on GitHub · 2026-12-01 06:16 UTC · original
aznohonza:docs/boot-which-end → main · +23 −0 · 1 files · 2 commits · merged 2026-12-01 11:43 UTC

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).

AI-assisted.

**@⁠aznohonza** on GitHub · 2026-12-01 06:16 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2843) `aznohonza:docs/boot-which-end` → `main` · +23 −0 · 1 files · 2 commits · merged 2026-12-01 11:43 UTC `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 (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/2570). 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 06:18:53 +00:00
Author
Owner

@⁠KelboLive on GitHub · 2026-12-01 06:29 UTC · original · reviewed

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.

**@⁠KelboLive** on GitHub · 2026-12-01 06:29 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2843#pullrequestreview-6126218385) · **reviewed** 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.
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.
Author
Owner

@⁠aznohonza on GitHub · 2026-12-01 06:36 UTC · original

Addressed in 035da4fa9:

  • 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.

**@⁠aznohonza** on GitHub · 2026-12-01 06:36 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2843#issuecomment-7303057749) Addressed in 035da4fa9: - 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.
Author
Owner

@⁠MoonEyes on GitHub · 2026-12-01 08:00 UTC · original

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).

**@⁠MoonEyes** on GitHub · 2026-12-01 08:00 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2843#issuecomment-7304748218) 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).
Author
Owner

@⁠aznohonza on GitHub · 2026-12-01 08:36 UTC · original

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.

**@⁠aznohonza** on GitHub · 2026-12-01 08:36 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2843#issuecomment-7305536812) 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.
Author
Owner

@⁠MoonEyes on GitHub · 2026-12-01 11:43 UTC · original

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** on GitHub · 2026-12-01 11:43 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2843#issuecomment-7310044171) 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).
github-bot changed target branch from main to gh-pr/2843/base 2026-12-01 11:49:32 +00:00
github manually merged commit 035da4fa9d into gh-pr/2843/base 2026-12-01 11:49:39 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/ubiquitarianism--leonida!2843
No description provided.