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

Merged
aznohonza merged 2 commits from upstream-pr/2843 into main 2026-12-01 11:43:31 +00:00
aznohonza commented 2026-12-01 06:16:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aznohonza on 2026-12-01T06:16:37Z.


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://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7302664895).

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5580226988 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2843). Originally posted by [aznohonza](https://github.com/aznohonza) on 2026-12-01T06:16:37Z. --- `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://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7302664895). AI-assisted.
KelboLive commented 2026-12-01 06:29:08 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-01T06:29:08Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6126218385 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2843#pullrequestreview-6126218385). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-12-01T06:29:08Z. **Review:** COMMENTED --- 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.
aznohonza commented 2026-12-01 06:36:01 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aznohonza on 2026-12-01T06:36:01Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7303057749 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2843#issuecomment-7303057749). Originally posted by [aznohonza](https://github.com/aznohonza) on 2026-12-01T06:36:01Z. --- 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.
MoonEyes commented 2026-12-01 08:00:10 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-01T08:00:10Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7304748218 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2843#issuecomment-7304748218). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-01T08:00:10Z. --- 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 commented 2026-12-01 08:36:11 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aznohonza on 2026-12-01T08:36:11Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7305536812 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2843#issuecomment-7305536812). Originally posted by [aznohonza](https://github.com/aznohonza) on 2026-12-01T08:36:11Z. --- 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 commented 2026-12-01 11:43:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-01T11:43:28Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7310044171 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2843#issuecomment-7310044171). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-01T11:43:28Z. --- 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).
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
ProjectLeonida/mandy!2843
No description provided.