upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/boot.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/boot.md')
-rw-r--r--docs/boot.md23
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
262or invalid requested trace is reported on stderr and sets exit code 2. In a partial JSON report that section 262or invalid requested trace is reported on stderr and sets exit code 2. In a partial JSON report that section
263is `null`; if neither input yields a report, stdout is empty. 263is `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
267A run that stops without a frame looks the same in the present count; the `[rt]` lines say which of these three
268stops it was. The rule behind the held value is in [`d3d12_xs_console_abi.md`](d3d12_xs_console_abi.md) §5.5. A
269device loss and the title's watchdog have their own lines (`[rt] aftermath: device lost` and `[rt] hang watchdog:`),
270and a `list values so far` line with a nonzero `at device loss` reason is a device loss even when `released unmet`
271is 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
279The `mem-probe` rows need `LEONIDA_MEM_PROBE=30` at the start; without it there is no `mem-probe` line. `submit frame`
280is every `LEONIDA_SUBMIT_FRAME_SECONDS` (default 10; `0` turns it off), and `LEONIDA_LIST_VALUES=0` drops the gate
281counters. The `[rt]` lines are the Vulkan layer's stderr, not a launcher log.
282
283Check the cgroup first when the process is gone without an `exit` event: a peak at `MemoryMax` plus the kernel's OOM
284line is host memory. Otherwise the `made` count decides: while it rises the run is compiling; once it is flat, a
285growing `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
267The questions are in [`d3d12_vulkan.md`](d3d12_vulkan.md) §8.2; this table takes the same 1–22 in 290The questions are in [`d3d12_vulkan.md`](d3d12_vulkan.md) §8.2; this table takes the same 1–22 in