diff --git a/docs/boot.md b/docs/boot.md index e6fbea5872..7dc1691c2d 100644 --- a/docs/boot.md +++ b/docs/boot.md @@ -262,6 +262,29 @@ 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 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 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. + +| 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` 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. 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