diff options
| author | MoonEyes <ducoinbenjamin@yahoo.fr> | 2026-12-01 12:43:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-12-01 12:43:31 +0100 |
| commit | a63eb958d91bf430bdb152aead99ada2b32eec02 (patch) | |
| tree | 8a8f52e9651bf9a7a880ee7780ad18f20b804b36 /docs | |
| parent | 21e6bbf4b96459bf844c9e9233b1d001cbab2510 (diff) | |
| parent | 035da4fa9d8224f2ab249212500c149a0807f1c6 (diff) | |
Merge pull request #2843 from aznohonza/docs/boot-which-end
docs/boot.md: which end a late run ended in, read from the [rt] counters (DOCS-BOOT-WHICH-END)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/boot.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/boot.md b/docs/boot.md index e6fbea587..7dc1691c2 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 | |||
| 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 of these three stops is it | ||
| 266 | |||
| 267 | A run that stops without a frame looks the same in the present count; the `[rt]` lines say which of these three | ||
| 268 | stops it was. The rule behind the held value is in [`d3d12_xs_console_abi.md`](d3d12_xs_console_abi.md) §5.5. A | ||
| 269 | device loss and the title's watchdog have their own lines (`[rt] aftermath: device lost` and `[rt] hang watchdog:`), | ||
| 270 | and a `list values so far` line with a nonzero `at device loss` reason is a device loss even when `released unmet` | ||
| 271 | is 0. | ||
| 272 | |||
| 273 | | Stop | Lines to read | The measured shape | | ||
| 274 | |---|---|---| | ||
| 275 | | **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. | | ||
| 276 | | **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. | | ||
| 277 | | **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. | | ||
| 278 | |||
| 279 | The `mem-probe` rows need `LEONIDA_MEM_PROBE=30` at the start; without it there is no `mem-probe` line. `submit frame` | ||
| 280 | is every `LEONIDA_SUBMIT_FRAME_SECONDS` (default 10; `0` turns it off), and `LEONIDA_LIST_VALUES=0` drops the gate | ||
| 281 | counters. The `[rt]` lines are the Vulkan layer's stderr, not a launcher log. | ||
| 282 | |||
| 283 | Check the cgroup first when the process is gone without an `exit` event: a peak at `MemoryMax` plus the kernel's OOM | ||
| 284 | line is host memory. Otherwise the `made` count decides: while it rises the run is compiling; once it is flat, a | ||
| 285 | growing `oldest held gate` names the held value. The cgroup's peak is its `memory.peak`, or | ||
| 286 | `systemctl show -p MemoryPeak <scope>` and the scope's journal. | ||
| 287 | |||
| 265 | ## 4. The open questions, and the trace signal for each | 288 | ## 4. The open questions, and the trace signal for each |
| 266 | 289 | ||
| 267 | The questions are in [`d3d12_vulkan.md`](d3d12_vulkan.md) §8.2; this table takes the same 1–22 in | 290 | The questions are in [`d3d12_vulkan.md`](d3d12_vulkan.md) §8.2; this table takes the same 1–22 in |