diff options
| author | aznohonza <honnzaaio@gmail.com> | 2026-12-01 07:16:28 +0100 |
|---|---|---|
| committer | aznohonza <honnzaaio@gmail.com> | 2026-12-01 07:16:28 +0100 |
| commit | 57d5c000ee5aabbcdae87d50ec368edb2615fb2f (patch) | |
| tree | 6df301ba97ec47c0b4c4058342e20c0ef5f45cbe /docs | |
| parent | 640b0d0df891b12ae55a1acea3fb9ba7070d5a94 (diff) | |
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.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/boot.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/boot.md b/docs/boot.md index e6fbea587..7bb83e9f9 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 | |||
| 262 | or invalid requested trace is reported on stderr and sets exit code 2. In a partial JSON report that section | 262 | or invalid requested trace is reported on stderr and sets exit code 2. In a partial JSON report that section |
| 263 | is `null`; if neither input yields a report, stdout is empty. | 263 | is `null`; if neither input yields a report, stdout is empty. |
| 264 | 264 | ||
| 265 | ### Past the first frame: which end is it | ||
| 266 | |||
| 267 | A run that stops without a frame looks the same in the present count; the `[rt]` lines say which of three ends it | ||
| 268 | was. The rule behind the second is in [`d3d12_xs_console_abi.md`](d3d12_xs_console_abi.md) §5.5. | ||
| 269 | |||
| 270 | | End | Lines to read | The measured shape | | ||
| 271 | |---|---|---| | ||
| 272 | | **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. | | ||
| 273 | | **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. | | ||
| 274 | | **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. | | ||
| 275 | |||
| 276 | Check the cgroup first when the process is gone without an `exit` event: a peak at `MemoryMax` plus the kernel's OOM | ||
| 277 | line is host memory. Otherwise the `made` count decides: while it rises the run is compiling; once it is flat, a | ||
| 278 | growing `oldest held gate` names the held value. `LEONIDA_MEM_PROBE=30` prints the `mem-probe` lines every 30 s; the | ||
| 279 | cgroup's peak is its `memory.peak`, or `systemctl show -p MemoryPeak <scope>` and the scope's journal. | ||
| 280 | |||
| 265 | ## 4. The open questions, and the trace signal for each | 281 | ## 4. The open questions, and the trace signal for each |
| 266 | 282 | ||
| 267 | The questions are in [`d3d12_vulkan.md`](d3d12_vulkan.md) §8.2; this table takes the same 1–22 in | 283 | The questions are in [`d3d12_vulkan.md`](d3d12_vulkan.md) §8.2; this table takes the same 1–22 in |