Skip to content

Treat out-of-memory pipeline compiles as pauses, not refusals - #4

Merged
seninhas merged 6 commits into
mainfrom
claude/memory-pause-fixes-88xwlx
Nov 29, 2026
Merged

seninhas merged 6 commits into
mainfrom
claude/memory-pause-fixes-88xwlx

Conversation

@seninhas

Copy link
Copy Markdown
Owner

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01XYG3qUwPk3QMYYEpg56RS6

What this changes

  • The driver's E_OUTOFMEMORY is now a pause. refused::failed hands it to the new memguard::driver_out_of_memory, which sets the thread's deferred flag. The pipeline is made again later instead of being refused for the rest of the run.
  • The wait loop ends on paused pipelines. make.rs now leaves the wait once retry_waits() is true, so a pass over the screen no longer waits its full 10 s for a build that nothing will start.
  • Retries back off. Each pipeline's pauses double from 1 s up to 16 s (retry_after_ms), so the workers and the queue aren't kept busy with compiles that can't start.

Evidence (17:02 run on the owner's PC: RTX 5070 Ti, 9800X3D, 32 GB)

  • 580 pipelines were refused for good with 0x8007000e (371 mesh, 128 graphics, 81 compute).
  • More than 16,384 compiles were deferred.
  • Private bytes reached 30.2 GB, with 0.1 GB of commit free.
  • Frames took 5 to 10 s, and the run ended in an AppHang.

Tests

  • Two new tests: a_pipeline_the_driver_found_no_memory_for_is_made_later and pauses_for_memory_double_up_to_their_ceiling.
  • On Windows, the pipeline tests passed 72/72 in 4 of 5 runs. The fifth run hit a parallel flake that was already there before this change (a_pipeline_made_ready_is_the_one_the_title_gets). The memguard tests passed 6/6.
  • I cross-checked clippy for victory-gpu with --all-targets -D warnings against x86_64-pc-windows-msvc, and it is clean.

Overlap with upstream PRs

Upstream trustno1-coder/VIctory-NVIDIA PRs trustno1-coder#2743, trustno1-coder#2578 (its second part) and trustno1-coder#2580 (its "a wait ends when its build is put off" part) cover some of the same ground. They will be ported on top of this PR, with the overlap resolved there.


Generated by Claude Code

Five tests panicked on a machine with no SM 6.6 hardware device and no
WARP one that takes WaveSize(32) (GitHub's runners) instead of saying
so and leaving, as dispatched_words and the other GPU tests do:
run_group64_on_hosts returns nothing then, NV05D1 leaves when there is
no readback, and the cross-wave flat-store test runs on the devices it
has. On a PC with the devices they run and check as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XYG3qUwPk3QMYYEpg56RS6
…e decoder does

f9de61c made Tables::builtin read all 32 index slots in order, the widths
word first, as BCPack.dll does; the test oracle merged later (b075af8)
kept the old layout (skip the word, 31 slots), so the three oracle_parity
tests failed on main against a decoder that is right.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XYG3qUwPk3QMYYEpg56RS6
- The driver's own E_OUTOFMEMORY is now put off like the memory guard's
  refusal and made again later, instead of refused for the whole run.
- The pipeline wait loop ends once its pipeline is paused for memory, so
  a pass over the screen no longer waits its full 10 s.
- Pauses double from 1 s up to 16 s per pipeline.

Adds two tests in pipeline::make.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XYG3qUwPk3QMYYEpg56RS6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XYG3qUwPk3QMYYEpg56RS6

Copy link
Copy Markdown
Owner Author

CI on 6081700 failed in 3 victory-formats bcpack oracle tests. That failure was on main before this PR, which doesn't touch victory-formats.

The fix is in #3, which also skips the shader GPU tests when no GPU is present. #3 isn't merged yet, so I merged its branch into this one (e75bf45) so CI can reach this PR's own pipeline and memguard tests. Locally, victory-formats passes 83/83 with the fix. Once #3 merges, that merge commit adds nothing to this PR's diff. I also merged it through to #5.


Generated by Claude Code

The test-only list of ~300 image offsets in heap_sites/frame_users.rs
read as one 2,022-digit run of 0x literals, which the asset-policy test
takes for embedded data. Same values, in decimal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XYG3qUwPk3QMYYEpg56RS6
@seninhas
seninhas merged commit ee69d1d into main Nov 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants