From 57d5c000ee5aabbcdae87d50ec368edb2615fb2f Mon Sep 17 00:00:00 2001 From: aznohonza Date: Tue, 1 Dec 2026 07:16:28 +0100 Subject: [PATCH 1/2] docs/boot.md: tell a compile stall, a held value and host memory apart 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. --- docs/boot.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/boot.md b/docs/boot.md index e6fbea5872..7bb83e9f98 100644 --- a/docs/boot.md +++ b/docs/boot.md @@ -262,6 +262,22 @@ If startup stops before the first D3D12 call, the combined command still prints or invalid requested trace is reported on stderr and sets exit code 2. In a partial JSON report that section is `null`; if neither input yields a report, stdout is empty. +### Past the first frame: which end is it + +A run that stops without a frame looks the same in the present count; the `[rt]` lines say which of three ends it +was. The rule behind the second is in [`d3d12_xs_console_abi.md`](d3d12_xs_console_abi.md) §5.5. + +| End | Lines to read | The measured shape | +|---|---|---| +| **Pipelines still compiling** | `[rt] mem-probe t=` `pipelines live ... (made N / M, X s / Y s in vkCreate*Pipelines)`; `[rt] submit frame` | the made counts and the `vkCreate*Pipelines` seconds keep rising: one run built 763 graphics and 619 compute pipelines (2,296 modules, 732 MiB of SPIR-V) with 45 minutes of `vkCreate*Pipeline` CPU time, and its scene's first frame came as the builds ended. | +| **A held console value** | `[rt] d3d12_xs: list values so far`: `released unmet` by reason, then `oldest held gate ...`; `[rt] submit frame` | `0 released unmet` in every reason while the oldest gate's age grows, and the `submit frame` lines stop: one console value wait stayed unmet for 101 minutes; of 209 gates, 192 were met and 0 released unmet. | +| **Host memory** | `[rt] mem-probe breakdown t=` (what the runtime holds) and the cgroup's peak | the runtime's `allocated` is large and the cgroup peak is at its cap: 22.3 GB of 24 GB killed one run 21 minutes in, before a world frame, and 22.2 GB killed another after it had drawn one; a later run of the same scene peaked at 23.6 GB. | + +Check the cgroup first when the process is gone without an `exit` event: a peak at `MemoryMax` plus the kernel's OOM +line is host memory. Otherwise the `made` count decides: while it rises the run is compiling; once it is flat, a +growing `oldest held gate` names the held value. `LEONIDA_MEM_PROBE=30` prints the `mem-probe` lines every 30 s; the +cgroup's peak is its `memory.peak`, or `systemctl show -p MemoryPeak ` and the scope's journal. + ## 4. The open questions, and the trace signal for each The questions are in [`d3d12_vulkan.md`](d3d12_vulkan.md) §8.2; this table takes the same 1–22 in From 035da4fa9d8224f2ab249212500c149a0807f1c6 Mon Sep 17 00:00:00 2001 From: aznohonza Date: Tue, 1 Dec 2026 07:35:40 +0100 Subject: [PATCH 2/2] docs/boot.md: label the made pipeline pair and the counters' preconditions 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. --- docs/boot.md | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/docs/boot.md b/docs/boot.md index 7bb83e9f98..7dc1691c2d 100644 --- a/docs/boot.md +++ b/docs/boot.md @@ -262,21 +262,28 @@ If startup stops before the first D3D12 call, the combined command still prints or invalid requested trace is reported on stderr and sets exit code 2. In a partial JSON report that section is `null`; if neither input yields a report, stdout is empty. -### Past the first frame: which end is it +### Past the first frame: which of these three stops is it -A run that stops without a frame looks the same in the present count; the `[rt]` lines say which of three ends it -was. The rule behind the second is in [`d3d12_xs_console_abi.md`](d3d12_xs_console_abi.md) §5.5. +A run that stops without a frame looks the same in the present count; the `[rt]` lines say which of these three +stops it was. The rule behind the held value is in [`d3d12_xs_console_abi.md`](d3d12_xs_console_abi.md) §5.5. A +device loss and the title's watchdog have their own lines (`[rt] aftermath: device lost` and `[rt] hang watchdog:`), +and a `list values so far` line with a nonzero `at device loss` reason is a device loss even when `released unmet` +is 0. -| End | Lines to read | The measured shape | +| Stop | Lines to read | The measured shape | |---|---|---| -| **Pipelines still compiling** | `[rt] mem-probe t=` `pipelines live ... (made N / M, X s / Y s in vkCreate*Pipelines)`; `[rt] submit frame` | the made counts and the `vkCreate*Pipelines` seconds keep rising: one run built 763 graphics and 619 compute pipelines (2,296 modules, 732 MiB of SPIR-V) with 45 minutes of `vkCreate*Pipeline` CPU time, and its scene's first frame came as the builds ended. | +| **Pipelines still compiling** | `[rt] mem-probe t=` `pipelines live ... (made N / M, X s / Y s in vkCreate*Pipelines)`; `[rt] submit frame` | the `made` pair and the `vkCreate*Pipelines` seconds keep rising: one run made 763 graphics and 619 compute pipelines (2,296 modules, 732 MiB of SPIR-V) with 45 minutes of `vkCreate*Pipeline` CPU time, and its scene's first frame came as the builds ended. | | **A held console value** | `[rt] d3d12_xs: list values so far`: `released unmet` by reason, then `oldest held gate ...`; `[rt] submit frame` | `0 released unmet` in every reason while the oldest gate's age grows, and the `submit frame` lines stop: one console value wait stayed unmet for 101 minutes; of 209 gates, 192 were met and 0 released unmet. | | **Host memory** | `[rt] mem-probe breakdown t=` (what the runtime holds) and the cgroup's peak | the runtime's `allocated` is large and the cgroup peak is at its cap: 22.3 GB of 24 GB killed one run 21 minutes in, before a world frame, and 22.2 GB killed another after it had drawn one; a later run of the same scene peaked at 23.6 GB. | +The `mem-probe` rows need `LEONIDA_MEM_PROBE=30` at the start; without it there is no `mem-probe` line. `submit frame` +is every `LEONIDA_SUBMIT_FRAME_SECONDS` (default 10; `0` turns it off), and `LEONIDA_LIST_VALUES=0` drops the gate +counters. The `[rt]` lines are the Vulkan layer's stderr, not a launcher log. + Check the cgroup first when the process is gone without an `exit` event: a peak at `MemoryMax` plus the kernel's OOM line is host memory. Otherwise the `made` count decides: while it rises the run is compiling; once it is flat, a -growing `oldest held gate` names the held value. `LEONIDA_MEM_PROBE=30` prints the `mem-probe` lines every 30 s; the -cgroup's peak is its `memory.peak`, or `systemctl show -p MemoryPeak ` and the scope's journal. +growing `oldest held gate` names the held value. The cgroup's peak is its `memory.peak`, or +`systemctl show -p MemoryPeak ` and the scope's journal. ## 4. The open questions, and the trace signal for each