Repository navigation
[pr-fix] Hold room below 2^37 for the title's big reservation, so it starts with DLSS (#15) - #44
Open
AstralDrift wants to merge 3 commits into
Open
AstralDrift wants to merge 3 commits into
AstralDrift wants to merge 3 commits into
Conversation
… (issue Kemerd#15) Since 3109d38 the title's 64-bit memory is capped at 2^37, the reach of the directory of memory by address. With DLSS loaded about 64 GB of that window is held by blocks whose owner is not known, the title's 6.2 GB reservation has no gap, and the title stops itself. - VICTORY_TITLE_ROOM_MB (6400, 0 for none): in runs that ask for DLSS, a placeholder is held before Streamline loads and cut to the title's reservation when it comes. It is given back for a request the window refuses, and where Streamline does not load. - VICTORY_TITLE_WIDE_FALLBACK (on, 0 for off): a reservation that still has no gap is placed over the full range its flags allow, as before 3109d38. - A big reservation the window has no gap for is not asked of the host: on Windows build 26300 that search can spin in the kernel without end, in a process that cannot be killed. - The window is walked around slInit, the making of the device and the hand-over to Streamline, and what appeared is logged. Known risk: memory the fallback places above 2^37 has no entry in the directory. Shaders that read it by address read zeros, so draws can be missing or wrong (#218). The room pushes other allocations elsewhere; what that does in a run of the title is not known. Both are on by default as the issue asked, where the tree's rule for switches is off. Verified: each path in a process of its own with the window filled, outside the tree. Not run in the title. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ssue Kemerd#15) An entry for the address of the stop, what the two switches do, the risk of memory above 2^37, and the log lines to look for. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Corrects the notes of the two commits before, which were written before any run: on an RTX 4090 with 32 GB on Windows 11 build 26300 the title's big reservation landed in the room, with DLSS, Ray Reconstruction and frame generation loaded, and the fallback above 2^37 was not used. One run of 4.5 minutes; the fallback has not run in the title. The log of that run also says when the 36 GB block comes: across slSetD3DDevice, not across the making of the device. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
For #15 (not "Fixes": confirmed on one PC, not yet by others who reported it).
What it changes
Since 3109d38 the title's 64-bit memory is capped at 2^37, the reach of the directory of memory by address. With DLSS loaded, two blocks of 36 GB and 28 GB sit in that window, the title's 6.2 GB reservation has no gap, and the title stops itself at
+0x1e6c284. Test 12 looked up to 2^40 and booted.VICTORY_TITLE_ROOM_MB(6400,0for none) reserves a placeholder at the top of the window before Streamline loads. It is cut to the title's reservation when that comes, never released first, so nothing can take it in between. It is given back when a request the window refuses needs it, or Streamline does not load. Address space only, no memory committed.VICTORY_TITLE_WIDE_FALLBACK(0for off) retries a reservation that still has no gap over the full range its flags allow, with one WARN.VirtualAlloc2showed such a search spinning in the kernel, for some shapes of the window, in a process that then cannot be killed. Smaller, committed and internal requests can still make that search, as before.slInit, the making of the device,slSetD3DDeviceand the feature load.Known risks
VICTORY_TITLE_ROOM_MB=0turns it off.How it was tested
asked_mb=6236 largest_free_gap_mb=3610, stopped about 2 s in.0x1defe00000, below 2^37. The largest gap at that point was 24,318 MB. About 4.5 minutes of running, ended by hand; no error, crash entry or lost device in the log. The fallback was not used.slSetD3DDevice, not across the making of the device. The log cannot say which library takes it. The 28 GB block did not appear in the window in that run.cargo testpassed for the crates it touches: no, not all of it.victory-hlelib: 468 passed, 1 failed (a_read_by_range_waits_only_for_a_remapping_that_meets_it, which fails on a clean checkout ofmainhere too).victory-gpu: only the 9uploadtests were run.main;--all-featuresfinishes without errors. Neither was run to a pass with-D warnings:mainalready fails that here.cargo xtask policypasses.Not tested: the fallback in a run of the title, other cards, other resolutions, long sessions, the full workspace test suite on this branch (on
mainit stalled here).Checked for overlap
apps/victory/src/run.rs,crates/victory-gpu/src/host.rs) and perf(gpu): lock-free spin fast-path in AskedFirst::wait + largest-first texture refresh #41 (crates/victory-gpu/src/host.rs) touch two of the same files for other work. It merges cleanly withmainanddev.🤖 Generated with Claude Code