[pr-fix][shaders][memory] A pipeline the driver refused for memory is retried by the workers, not by the frame that asks #367

Open
Andreww2009 wants to merge 1 commit from Andreww2009/Darner-Opt:claude/pipeline-oom-no-wait into main
First-time contributor

Contributor role (optional)

  • Fluxer ID:

What it changes

  • The problem on main: one player's session (RTX 5080 Laptop 16 GB, driver 621.47, release v2026.12.03.02 = this
    main's translator, warm cache, Series X profile, 1440, DLSS Quality, FG 2x) had seven frames of 1641, 1666, 1660,
    1449, 1698, 1526 and 1550 ms in 17 s, and no other frame over 1 s after entering the world. The log at that moment:

    16:34:03.303Z  INFO darner_gpu::pipeline: first bind ... stage="compute" size=45996 hash=c1eee35dbc50a9ef
    16:34:04.929Z  WARN darner_gpu::pipeline::make: host pipeline not made: D3D12 returned E_OUTOFMEMORY; it is tried again 1000 ms later, its draws are dropped until then shaders=[compute c1eee35dbc50a9ef] so_far=1
    16:34:04.956Z  INFO darner_gpu::frame_times: frame times: 1 frames, median 1641.1 ms ...
    16:34:07.582Z  WARN ... E_OUTOFMEMORY ... so_far=2
    16:34:07.602Z  INFO ... p99 1666.1, longest 1666.1
    16:34:12.962Z  WARN ... E_OUTOFMEMORY ... so_far=4
    16:34:12.986Z  INFO ... longest 1448.5
    (and 1659.6, 1697.5, 1526.0, 1549.5 ms at 16:34:10, :15, :18, :20; the warning is thinned)
    

    Each long frame ends right after an attempt; attempts are ~2.6 s apart = the 1000 ms pause + 1.4–1.7 s the
    driver takes to refuse. In ready() the pause is honoured (retry_waits), but once it is over a compute dispatch
    takes the compute-wait path again (compute_waits() && compute_room(frame), 3000 ms a frame): it makes the pipeline
    on its own thread or waits on the build's lock behind the worker. So every refusal is paid by a frame, for as long
    as the driver keeps refusing. Only this one pipeline was refused in that session (200 others were made, ~6 800
    loaded from the library).

    And the driver keeps refusing: made alone in a fresh process (darner warm --these <its number>, the same
    translator), the driver refused it 3 times out of 3, 1.9–2.1 s each, with proc_commit_mb=188 vram_used_mb=14 sys_free_mb=56596:

    made 50942 2126.18 0
    WARN darner_gpu::pipeline::refused: host pipeline failed (logged once per key) key="c1eee35dbc50a9ef" stage="compute" hr=0x8007000e lacks="" reason="compute 0x8007000e" ... proc_commit_mb=188 sys_commit_mb=27651 sys_limit_mb=84247 sys_free_mb=56596 vram_used_mb=14 vram_budget_mb=15235 shared_used_mb=22
    

    So here E_OUTOFMEMORY is not memory pressure (one pipeline cannot fill the 512 MiB shader heap); the driver will
    not build this pipeline at all, and on main each retry stalls a frame for as long as the title asks for the pass.
    (Why NVIDIA's compiler refuses this translated shader is a separate issue.)

What this does: new DARNER_PIPELINE_OOM_NO_WAIT (on by default, 0 = as before). A pipeline whose compile the
driver refused with E_OUTOFMEMORY (driver_oom, set by Pending::defer) is retried by the workers only; when a
draw or dispatch asks for it after its pause, it is dropped at once, as it already is during the pause. The retry
pacing (retry_at, NEXT_DRIVER_RETRY) is unchanged, and start() still re-queues it, so an attempt that succeeds
is used from the next ask on. Pipelines that were never refused take the same path as before, and so does the first
attempt at any pipeline (nothing knows yet that the driver will refuse it): in the session above the change would
leave the first of the seven frames and take away the six repeats.

The visual cost is the one main already has between attempts: that pipeline's draws/dispatches are skipped until an
attempt succeeds — now also during the attempt itself, instead of the frame standing 1.4–1.7 s for it. For a pipeline
the driver never builds (as here) the pass is missing on main too; only the stalls go.

How it was tested

  • Tested revision: f3840d73 + this change (uncommitted at test time; the commit is the same diff, except that
    oom_aside's doc comment was reworded after the release build; clippy gate 1 was run again on it, clean).

  • Commands and results (Windows 11 26300, rustc 1.98.1, MSVC 14.44.35207, SDK 10.0.26100.0):

    • New test pipeline::make::tests::a_pipeline_the_driver_refused_for_memory_is_not_made_by_the_dispatch_asking:
      runs itself in two child processes (the switch is read once): unset → the asking dispatch neither makes nor waits
      for it and the worker keeps its attempt; =0 → the dispatch makes it on its own thread, as on main. Passes with
      the change; fails with the oom_aside branch removed (panicked at ... the dispatch made it itself).
    • All 15 pipeline::make::tests pass.
    • cargo test -p darner-gpu --lib, three runs: the new test passed in all three; each run had 1–2 failures, all in
      modules this change does not touch (watch::tests::ask_once_by_res_splits_reservations_without_refusals twice,
      watch::watch_pipe_epoch_tests::ask_once_delta_reask_direct_carves_refreshes_and_updates_page_epochs,
      host::refresh_tests::refresh_front_zero_arc_matches_and_runs_due,
      descriptor::tests::records_copied_as_bytes_are_made_at_the_next_sync). Each of those four passed alone 3 of 3;
      the watch ones fail on plain main here too (3 and 1 of 12 runs; #150/#224/#261/#262 are about these).
  • Changes a default: yes, for everyone; it changes something only once the driver has refused a pipeline for memory.

  • A/B result: one in-game run with the switch flipped every 15 s (--features ab, DARNER_AB=15,DARNER_PIPELINE_OOM_NO_WAIT),
    31 min, 123 phases (62 A off / 61 B on), warm cache copy, Series X profile, 1440, DLSS Quality, FG off, no frame cap,
    RT off. The refused pipeline was not used in that run (no first bind of c1eee35dbc50a9ef, no E_OUTOFMEMORY), so it
    shows only that nothing else changes; in the player's sessions this pipeline came up once in ten.

    A (off, main) B (on)
    mean of the phases' mean frame time 35.00 ms 34.88 ms (B faster in 56 of 117 pairs)
    p50 / p99 / p99.9 (CSV, all frames of the phases) 32.4 / 63.6 / 107.0 ms 31.7 / 62.1 / 101.7 ms
    frames > 100 ms / > 500 ms 28 / 1 28 / 2
    frames > 1 s while the driver refuses (the session above, main) 7 (1449–1698 ms) expected 1 (the first attempt); not yet seen in play

    The long frames of the A/B run (517–1223 ms, both sides) are first builds of new pipelines (pipe_made 1–3,
    pipe_wait_ms 1.0–2.4 s), not refusals.

  • Gates run on that revision: cargo clippy --workspace --all-targets --locked -- -D warnings clean;
    cargo clippy --workspace --all-targets --all-features --locked -- -D warnings clean; cargo xtask policy:
    555 files ok. No CI.

  • Gameplay: RTX 5080 Laptop 16 GB, driver 621.47; the session with the problem: Series X profile, 1440, DLSS Quality,
    FG 2x, RT off; the A/B run as above.

  • Shader wave sizes tested: not relevant.

  • Hardware dependence: the change is general (any driver's E_OUTOFMEMORY); the refusal itself was seen on NVIDIA
    621.47 (and #100's comment reports such refusals on 635.05).

  • Coverage gaps: the change has not yet met a refusal in play (the unit test covers the path; the fresh-process run
    shows the driver keeps refusing). With the change a worker still retries the refused compile (~2 s of one core
    every ~3 s while the title asks for it); stopping after a few refusals while memory is plentiful would be a
    follow-up, not part of this PR.

Checklist

  • I ran this change in the game (the A/B run above; the refusal did not come up in it).
  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: #365 (pipelines warm-bad.txt lists are refused in play; it lists compiles that crashed or hung a warm
    child, not a refusal for memory: the warm on this PC refused this pipeline and warm-bad.txt stayed empty, so the
    two cover different pipelines; it touches Pending::make, this ready(), and git apply --check of #365 on top of
    this branch is clean). #350 (a memory gate before compiles; touches pipeline/make.rs in other places), #164
    (NVIDIA shader heap profile). Related report: #100, comment 851686 (RTX 4070 Ti SUPER, NVIDIA dev driver 635.05: the driver's
    compiler "consistently returns E_OUTOFMEMORY" for various compute pipelines), so such refusals are not only this
    PC's. No issue or PR about frames waiting for the retries (searched open and closed for E_OUTOFMEMORY and the key).
  • Replaces or overlaps: none found.

🤖 Generated with Claude Code

## Contributor role (optional) - Fluxer ID: ## What it changes - The problem on main: one player's session (RTX 5080 Laptop 16 GB, driver 621.47, release v2026.12.03.02 = this `main`'s translator, warm cache, Series X profile, 1440, DLSS Quality, FG 2x) had seven frames of 1641, 1666, 1660, 1449, 1698, 1526 and 1550 ms in 17 s, and no other frame over 1 s after entering the world. The log at that moment: ``` 16:34:03.303Z INFO darner_gpu::pipeline: first bind ... stage="compute" size=45996 hash=c1eee35dbc50a9ef 16:34:04.929Z WARN darner_gpu::pipeline::make: host pipeline not made: D3D12 returned E_OUTOFMEMORY; it is tried again 1000 ms later, its draws are dropped until then shaders=[compute c1eee35dbc50a9ef] so_far=1 16:34:04.956Z INFO darner_gpu::frame_times: frame times: 1 frames, median 1641.1 ms ... 16:34:07.582Z WARN ... E_OUTOFMEMORY ... so_far=2 16:34:07.602Z INFO ... p99 1666.1, longest 1666.1 16:34:12.962Z WARN ... E_OUTOFMEMORY ... so_far=4 16:34:12.986Z INFO ... longest 1448.5 (and 1659.6, 1697.5, 1526.0, 1549.5 ms at 16:34:10, :15, :18, :20; the warning is thinned) ``` Each long frame ends right after an attempt; attempts are ~2.6 s apart = the 1000 ms pause + 1.4–1.7 s the driver takes to refuse. In `ready()` the pause is honoured (`retry_waits`), but once it is over a compute dispatch takes the compute-wait path again (`compute_waits() && compute_room(frame)`, 3000 ms a frame): it makes the pipeline on its own thread or waits on the build's lock behind the worker. So every refusal is paid by a frame, for as long as the driver keeps refusing. Only this one pipeline was refused in that session (200 others were made, ~6 800 loaded from the library). And the driver keeps refusing: made alone in a fresh process (`darner warm --these <its number>`, the same translator), the driver refused it 3 times out of 3, 1.9–2.1 s each, with `proc_commit_mb=188 vram_used_mb=14 sys_free_mb=56596`: ``` made 50942 2126.18 0 WARN darner_gpu::pipeline::refused: host pipeline failed (logged once per key) key="c1eee35dbc50a9ef" stage="compute" hr=0x8007000e lacks="" reason="compute 0x8007000e" ... proc_commit_mb=188 sys_commit_mb=27651 sys_limit_mb=84247 sys_free_mb=56596 vram_used_mb=14 vram_budget_mb=15235 shared_used_mb=22 ``` So here `E_OUTOFMEMORY` is not memory pressure (one pipeline cannot fill the 512 MiB shader heap); the driver will not build this pipeline at all, and on main each retry stalls a frame for as long as the title asks for the pass. (Why NVIDIA's compiler refuses this translated shader is a separate issue.) What this does: new `DARNER_PIPELINE_OOM_NO_WAIT` (on by default, `0` = as before). A pipeline whose compile the driver refused with `E_OUTOFMEMORY` (`driver_oom`, set by `Pending::defer`) is retried by the workers only; when a draw or dispatch asks for it after its pause, it is dropped at once, as it already is during the pause. The retry pacing (`retry_at`, `NEXT_DRIVER_RETRY`) is unchanged, and `start()` still re-queues it, so an attempt that succeeds is used from the next ask on. Pipelines that were never refused take the same path as before, and so does the first attempt at any pipeline (nothing knows yet that the driver will refuse it): in the session above the change would leave the first of the seven frames and take away the six repeats. The visual cost is the one main already has between attempts: that pipeline's draws/dispatches are skipped until an attempt succeeds — now also during the attempt itself, instead of the frame standing 1.4–1.7 s for it. For a pipeline the driver never builds (as here) the pass is missing on main too; only the stalls go. ## How it was tested - Tested revision: `f3840d73` + this change (uncommitted at test time; the commit is the same diff, except that `oom_aside`'s doc comment was reworded after the release build; clippy gate 1 was run again on it, clean). - Commands and results (Windows 11 26300, rustc 1.98.1, MSVC 14.44.35207, SDK 10.0.26100.0): - New test `pipeline::make::tests::a_pipeline_the_driver_refused_for_memory_is_not_made_by_the_dispatch_asking`: runs itself in two child processes (the switch is read once): unset → the asking dispatch neither makes nor waits for it and the worker keeps its attempt; `=0` → the dispatch makes it on its own thread, as on main. Passes with the change; **fails with the `oom_aside` branch removed** (`panicked at ... the dispatch made it itself`). - All 15 `pipeline::make::tests` pass. - `cargo test -p darner-gpu --lib`, three runs: the new test passed in all three; each run had 1–2 failures, all in modules this change does not touch (`watch::tests::ask_once_by_res_splits_reservations_without_refusals` twice, `watch::watch_pipe_epoch_tests::ask_once_delta_reask_direct_carves_refreshes_and_updates_page_epochs`, `host::refresh_tests::refresh_front_zero_arc_matches_and_runs_due`, `descriptor::tests::records_copied_as_bytes_are_made_at_the_next_sync`). Each of those four passed alone 3 of 3; the watch ones fail on plain `main` here too (3 and 1 of 12 runs; #150/#224/#261/#262 are about these). - Changes a default: yes, for everyone; it changes something only once the driver has refused a pipeline for memory. - A/B result: one in-game run with the switch flipped every 15 s (`--features ab`, `DARNER_AB=15,DARNER_PIPELINE_OOM_NO_WAIT`), 31 min, 123 phases (62 A off / 61 B on), warm cache copy, Series X profile, 1440, DLSS Quality, FG off, no frame cap, RT off. The refused pipeline was not used in that run (no first bind of `c1eee35dbc50a9ef`, no `E_OUTOFMEMORY`), so it shows only that nothing else changes; in the player's sessions this pipeline came up once in ten. | | A (off, main) | B (on) | |---|---|---| | mean of the phases' mean frame time | 35.00 ms | 34.88 ms (B faster in 56 of 117 pairs) | | p50 / p99 / p99.9 (CSV, all frames of the phases) | 32.4 / 63.6 / 107.0 ms | 31.7 / 62.1 / 101.7 ms | | frames > 100 ms / > 500 ms | 28 / 1 | 28 / 2 | | frames > 1 s while the driver refuses (the session above, main) | 7 (1449–1698 ms) | expected 1 (the first attempt); not yet seen in play | The long frames of the A/B run (517–1223 ms, both sides) are first builds of new pipelines (`pipe_made` 1–3, `pipe_wait_ms` 1.0–2.4 s), not refusals. - Gates run on that revision: `cargo clippy --workspace --all-targets --locked -- -D warnings` clean; `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` clean; `cargo xtask policy`: 555 files ok. No CI. - Gameplay: RTX 5080 Laptop 16 GB, driver 621.47; the session with the problem: Series X profile, 1440, DLSS Quality, FG 2x, RT off; the A/B run as above. - Shader wave sizes tested: not relevant. - Hardware dependence: the change is general (any driver's `E_OUTOFMEMORY`); the refusal itself was seen on NVIDIA 621.47 (and #100's comment reports such refusals on 635.05). - Coverage gaps: the change has not yet met a refusal in play (the unit test covers the path; the fresh-process run shows the driver keeps refusing). With the change a worker still retries the refused compile (~2 s of one core every ~3 s while the title asks for it); stopping after a few refusals while memory is plentiful would be a follow-up, not part of this PR. ## Checklist - [x] I ran this change in the game (the A/B run above; the refusal did not come up in it). - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: #365 (pipelines `warm-bad.txt` lists are refused in play; it lists compiles that crashed or hung a warm child, not a refusal for memory: the warm on this PC refused this pipeline and `warm-bad.txt` stayed empty, so the two cover different pipelines; it touches `Pending::make`, this `ready()`, and `git apply --check` of #365 on top of this branch is clean). #350 (a memory gate before compiles; touches `pipeline/make.rs` in other places), #164 (NVIDIA shader heap profile). Related report: #100, comment 851686 (RTX 4070 Ti SUPER, NVIDIA dev driver 635.05: the driver's compiler "consistently returns E_OUTOFMEMORY" for various compute pipelines), so such refusals are not only this PC's. No issue or PR about frames waiting for the retries (searched open and closed for `E_OUTOFMEMORY` and the key). - Replaces or overlaps: none found. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
DARNER_PIPELINE_OOM_NO_WAIT (on; 0 = as before): once the driver has refused a pipeline with
E_OUTOFMEMORY, its draws and dispatches are dropped at once, also after its pause, and only the
workers try it again. On an RTX 5080 Laptop (driver 621.47) compute c1eee35dbc50a9ef was refused
on every attempt, also alone in a fresh process, and each attempt held a frame for 1.4 to 1.7 s:
seven such frames in 17 s.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor

Testing this now in-game (head 681aa8e, release build with bench-remote).

Setup: RTX 5070 Ti 16 GB, Ryzen 7 7800X3D, 31 GB RAM, 1440p DLAA, DLSS frame generation 2x, hardware RT on. Automated camera flight over the city (same route and save every run, separate home/data/cache folders).

Plan: same build, A/B on the switch: default (on) vs DARNER_PIPELINE_OOM_NO_WAIT=0 (main's behaviour), alternated runs. This PC has never logged the E_OUTOFMEMORY refusal so far, so this run checks mostly that nothing else changes. I'll post fps / p99 / long frames when it's done.

Testing this now in-game (head 681aa8e, release build with bench-remote). Setup: RTX 5070 Ti 16 GB, Ryzen 7 7800X3D, 31 GB RAM, 1440p DLAA, DLSS frame generation 2x, hardware RT on. Automated camera flight over the city (same route and save every run, separate home/data/cache folders). Plan: same build, A/B on the switch: default (on) vs DARNER_PIPELINE_OOM_NO_WAIT=0 (main's behaviour), alternated runs. This PC has never logged the E_OUTOFMEMORY refusal so far, so this run checks mostly that nothing else changes. I'll post fps / p99 / long frames when it's done.
Contributor

Code review only (read the diff at 681aa8e), nothing built or run.

  • Screen passes and scene inputs: big_aside right above deliberately leaves out p.screen and p.scene_input ("a dispatch made only once is lost…, not for the first scene's and the passes over the screen"). oom_aside doesn't, and it covers graphics pipelines too. For a pipeline the driver never builds (your case) nothing changes. But driver_oom is also set when the refusal is real memory pressure, and then a retry can succeed a few seconds later. With this change, a refused pass over the screen shows missing until then, and a one-shot scene-input dispatch is lost, where main waited. Adding && !p.screen && !p.scene_input to oom_aside, as big_aside has, would keep those on the old path.
  • With #350: the draw no longer waits, so waiters stays 0, and #350's gate would treat the worker's retry as unwaited and hold it behind every waited-on compile. If both land, counting an asked-for driver_oom pipeline as waited would keep its retry from going last.
  • Checked and fine: the worker re-queue (start before the branch), the unchanged retry pacing, the first attempt still on the old path, and the two-process test of both switch states.

Reviewed with Claude Code (AI-assisted); findings checked by a human before posting.

Code review only (read the diff at `681aa8e`), nothing built or run. - **Screen passes and scene inputs:** `big_aside` right above deliberately leaves out `p.screen` and `p.scene_input` ("a dispatch made only once is lost…, not for the first scene's and the passes over the screen"). `oom_aside` doesn't, and it covers graphics pipelines too. For a pipeline the driver never builds (your case) nothing changes. But `driver_oom` is also set when the refusal is real memory pressure, and then a retry can succeed a few seconds later. With this change, a refused pass over the screen shows missing until then, and a one-shot scene-input dispatch is lost, where `main` waited. Adding `&& !p.screen && !p.scene_input` to `oom_aside`, as `big_aside` has, would keep those on the old path. - **With #350:** the draw no longer waits, so `waiters` stays 0, and #350's gate would treat the worker's retry as unwaited and hold it behind every waited-on compile. If both land, counting an asked-for `driver_oom` pipeline as waited would keep its retry from going last. - Checked and fine: the worker re-queue (`start` before the branch), the unchanged retry pacing, the first attempt still on the old path, and the two-process test of both switch states. Reviewed with Claude Code (AI-assisted); findings checked by a human before posting.
First-time contributor

a248a03 applies the screen and scene-input exclusions from the review. These passes keep the existing wait path after the retry delay, since they may be submitted only once. Other driver-OOM retries still use the workers.

A Windows fixture comparing the exact old and new predicates restored the three protected-pass cases and preserved all 13 controls. I also extended the existing two-process regression for both switch settings. Scoped GPU Clippy including test targets, asset policy and diff check passed. This check used synthetic OOM state. The retry-priority interaction with #350 remains relevant for ordinary worker-only retries.

If you cherry-pick or rebase this commit, please keep the Git author. If you fold it into another commit, please add this trailer.

Co-authored-by: andrewpozdnakov7-jpg <[email protected]>

[a248a03](https://git.gtahub.st/andrewpozdnakov7-jpg/Darner/commit/a248a03f66c3e76233b65f614f57b681ae9518fa) applies the screen and scene-input exclusions from the review. These passes keep the existing wait path after the retry delay, since they may be submitted only once. Other driver-OOM retries still use the workers. A Windows fixture comparing the exact old and new predicates restored the three protected-pass cases and preserved all 13 controls. I also extended the existing two-process regression for both switch settings. Scoped GPU Clippy including test targets, asset policy and diff check passed. This check used synthetic OOM state. The retry-priority interaction with #350 remains relevant for ordinary worker-only retries. If you cherry-pick or rebase this commit, please keep the Git author. If you fold it into another commit, please add this trailer. `Co-authored-by: andrewpozdnakov7-jpg <296776509+[email protected]>`
Contributor

Test report for 681aa8e (release build with bench-remote, on main f3840d7).

PC: RTX 5070 Ti 16 GB, NVIDIA driver 621.47, Ryzen 7 7800X3D, 31 GB RAM, Windows 11. Series X profile, 1440p DLAA, DLSS frame generation 2x, hardware RT on.

The refusal reproduces on a desktop card. darner preload on a cold cache for this translator (25,789 shaders translated, 7,047 of 7,049 pipelines into the library, 452 s) hit the same pipeline:

INFO darner_gpu::pipeline: shader translated stage="compute" hash=c1eee35dbc50a9ef user_data=3 samplers=5 ms=4
WARN darner_gpu::pipeline::refused: host pipeline failed (logged once per key) key="c1eee35dbc50a9ef" stage="compute" hr=0x8007000e lacks="" reason="compute 0x8007000e" proc_commit_mb=8197 sys_commit_mb=22099 sys_limit_mb=76677 sys_free_mb=54578 vram_used_mb=15 vram_budget_mb=15227 shared_used_mb=92

The driver took about 2.1 s to refuse it (21.36 to 23.50 in the log), with 54 GB of RAM free and 15 MB of VRAM in use. So, as you found, this is not memory pressure: same driver (621.47), a different card (5070 Ti desktop instead of a 5080 Laptop).

In-game A/B (same build, switch only): automated camera flight over the city (cam-city60, same save and route each run, its own home/data/cache folders, warm cache after the preload). 6 runs alternated: on, off, on, off, on, off (DARNER_PIPELINE_OOM_NO_WAIT=0 for off).

median of 3 runs [spread] on (default) off (=0, as main)
fps median 12.6 [0.6] 14.2 [1.5]
fps p10 9.1 [0.5] 9.8 [0.8]
p99 frame 169 ms [21] 185 ms [63]
peak VRAM 15.2 GB 15.3 GB
peak commit 57.6 GB 57.5 GB

The refused pipeline was never asked for in these 6 runs (no c1eee35dbc50a9ef, no E_OUTOFMEMORY in any play log). Because oom_aside() only reads the switch once driver_oom is set, both arms ran the same code here: this is effectively an A/A run, and the gap above is run-to-run noise on this route, not an effect of the change. So this shows no regression from the change, but it does not show the stalls going away in play; I have not seen that pipeline in a play session on this PC.

Not run: the three gates (cargo clippy x2, cargo test).

Test report for 681aa8e (release build with `bench-remote`, on main f3840d7). **PC:** RTX 5070 Ti 16 GB, NVIDIA driver 621.47, Ryzen 7 7800X3D, 31 GB RAM, Windows 11. Series X profile, 1440p DLAA, DLSS frame generation 2x, hardware RT on. **The refusal reproduces on a desktop card.** `darner preload` on a cold cache for this translator (25,789 shaders translated, 7,047 of 7,049 pipelines into the library, 452 s) hit the same pipeline: ``` INFO darner_gpu::pipeline: shader translated stage="compute" hash=c1eee35dbc50a9ef user_data=3 samplers=5 ms=4 WARN darner_gpu::pipeline::refused: host pipeline failed (logged once per key) key="c1eee35dbc50a9ef" stage="compute" hr=0x8007000e lacks="" reason="compute 0x8007000e" proc_commit_mb=8197 sys_commit_mb=22099 sys_limit_mb=76677 sys_free_mb=54578 vram_used_mb=15 vram_budget_mb=15227 shared_used_mb=92 ``` The driver took about 2.1 s to refuse it (21.36 to 23.50 in the log), with 54 GB of RAM free and 15 MB of VRAM in use. So, as you found, this is not memory pressure: same driver (621.47), a different card (5070 Ti desktop instead of a 5080 Laptop). **In-game A/B (same build, switch only):** automated camera flight over the city (`cam-city60`, same save and route each run, its own home/data/cache folders, warm cache after the preload). 6 runs alternated: on, off, on, off, on, off (`DARNER_PIPELINE_OOM_NO_WAIT=0` for off). | median of 3 runs [spread] | on (default) | off (=0, as main) | |---|---|---| | fps median | 12.6 [0.6] | 14.2 [1.5] | | fps p10 | 9.1 [0.5] | 9.8 [0.8] | | p99 frame | 169 ms [21] | 185 ms [63] | | peak VRAM | 15.2 GB | 15.3 GB | | peak commit | 57.6 GB | 57.5 GB | The refused pipeline was never asked for in these 6 runs (no `c1eee35dbc50a9ef`, no `E_OUTOFMEMORY` in any play log). Because `oom_aside()` only reads the switch once `driver_oom` is set, both arms ran the same code here: this is effectively an A/A run, and the gap above is run-to-run noise on this route, not an effect of the change. So this shows no regression from the change, but it does not show the stalls going away in play; I have not seen that pipeline in a play session on this PC. Not run: the three gates (`cargo clippy` x2, `cargo test`).
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'claude/pipeline-oom-no-wait:Andreww2009-claude/pipeline-oom-no-wait'
git switch 'Andreww2009-claude/pipeline-oom-no-wait'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'Andreww2009-claude/pipeline-oom-no-wait'
git switch 'Andreww2009-claude/pipeline-oom-no-wait'
git rebase 'main'
git switch 'main'
git merge --ff-only 'Andreww2009-claude/pipeline-oom-no-wait'
git switch 'Andreww2009-claude/pipeline-oom-no-wait'
git rebase 'main'
git switch 'main'
git merge --no-ff 'Andreww2009-claude/pipeline-oom-no-wait'
git switch 'main'
git merge --squash 'Andreww2009-claude/pipeline-oom-no-wait'
git switch 'main'
git merge --ff-only 'Andreww2009-claude/pipeline-oom-no-wait'
git switch 'main'
git merge 'Andreww2009-claude/pipeline-oom-no-wait'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!367
No description provided.