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.
This commit is contained in:
aznohonza
2026-12-01 07:35:40 +01:00
parent 57d5c000ee
commit 035da4fa9d

View File

@ -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 <scope>` 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 <scope>` and the scope's journal.
## 4. The open questions, and the trace signal for each