Repository navigation
Port upstream fixes for commit, pipeline workers and compile waits - #5
Merged
Merged
Conversation
Ported from trustno1-coder/VIctory-NVIDIA open PRs: - trustno1-coder#2392 (Caillou): the memory guard counts how far the pagefile may still grow, as residency does (residency::available_commit). - trustno1-coder#2508 (wrq2007): default pipeline workers are capped at 4 on hosts with 16 GiB or less and 8 on hosts with 32 GiB or less. - trustno1-coder#2743 (Gabriele Cabrini): a compile the guard put off is not counted as a refused pipeline, nor retried past the guard; the F2 explainer says so. - trustno1-coder#2580 (Kajcsi): full-screen passes and dispatches wait at most VICTORY_PIPELINE_COMPILE_GRACE_MS (50) once a build reaches the driver's compiler, and compute pipelines are made on a thread of their own. Overlap with the memory-pause fixes: the wait loop keeps one retry_waits() exit (now in trustno1-coder#2580's wait_loop), and refused::failed returns early for the guard's deferral and turns the driver's own E_OUTOFMEMORY into a pause. trustno1-coder#2743's test now expects that pause and checks that other driver errors are still recorded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XYG3qUwPk3QMYYEpg56RS6
…memory-ports-88xwlx
…memory-ports-88xwlx
seninhas
changed the base branch from
claude/memory-pause-fixes-88xwlx
to
main
November 29, 2026 17:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01XYG3qUwPk3QMYYEpg56RS6
This PR is stacked on #4 and targets its branch. Once #4 merges, GitHub retargets it to
main.Ported from open trustno1-coder/VIctory-NVIDIA PRs
memguard::figures_nowreadullAvailPageFile, which is only the current commit limit. It now usesresidency::available_commit, which also counts how far the pagefile can still grow, so both checks measure commit the same way. Upstream saw 1,325 to 1,354 deferred compiles per run on a 32 GB / RTX 5080 machine for this reason.VICTORY_COMMIT_GROWTH=0keeps the old reading.refused::failedandrefused::retryreturn early whilememguard::deferred()is set, so the retry can't build a pipeline past the guard. The F2 explainer now counts deferred compiles separately.VICTORY_PIPELINE_COMPILE_GRACE_MS, which defaults to 50. Compute pipelines are built on a thread of their own, not the title's.Overlap with #4
retry_waits()exit, inside Stop long freezes on pipeline compiles trustno1-coder/VIctory-NVIDIA#2580'swait_loop, with Treat out-of-memory pipeline compiles as pauses, not refusals #4's comment.refused::failed: it now handles two cases. It returns early for the guard's own deferral (Memory guard: a compile put off is no refused pipeline, and the explainer says so trustno1-coder/VIctory-NVIDIA#2743). It turns the driver's ownE_OUTOFMEMORYinto a pause (Treat out-of-memory pipeline compiles as pauses, not refusals #4). Because that pause sets the thread's flag,retrydoesn't build the pipeline straight from the driver either.E_OUTOFMEMORYto be recorded as refused. It now expects a pause, and checks that a different driver error (E_INVALIDARG) is still recorded.memguard.rs: it keeps both Treat out-of-memory pipeline compiles as pauses, not refusals #4'sdriver_out_of_memoryand Memory guard: a compile put off is no refused pipeline, and the explainer says so trustno1-coder/VIctory-NVIDIA#2743'sput_off.Checks
--all-targets -D warnings, with and without--all-features, against x86_64-pc-windows-msvc, and both are clean.Generated by Claude Code