Memory: windows of title memory in place over the page pool, soft writes (12-13 GB at copies' speed under Proton) #51
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/readmet3xt-lab--foxhound!51
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/51/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@kc01-8 on GitHub · 2026-11-29 17:11 UTC · original
kc01-8:kc/memory-in-place→main· +1235 −48 · 10 files · 16 commits · closed without mergingWhat this does
Windows of title memory in place over the page pool, through views of our own, instead of copies; and the rest of what makes that fast. Everything is off unless asked for: nothing changes for anyone who does not set these.
VICTORY_INPLACE=1+VICTORY_INPLACE_VIEWS=1inplace::OwnViews), not copies the card pinsVICTORY_INPLACE_VIEWS_CHURN=4VICTORY_SOFT_VIEWS=1SoftViews::write), instead of making the view realAlso in these commits, active only with the switches above:
Measured
RTX 3080 Ti 12 GB, Ryzen 7 5800X3D, 32 GB, Linux 7.3 with Proton Experimental and vkd3d-proton, Series X profile, 1440p. Each run is in docs/kc-linux-status.md of kc01-8/VIctoryNVIDIALINUX (branch
kc/foxhound).VICTORY_SOFT_VIEWS=1+ soft writesSo copies' frame rate at about 3 GB less memory. The wineserver part (every map/unmap walks the process's ~90,000 views under Wine) is Proton's; the memory part should hold on Windows too, but I have not measured it on Windows.
Merge notes
Picked onto v0.8.1 (
6c67166d). One place met newer code: v0.8's packedHeapRangesindraw.rs; the walk for slots that showed a let-go window reads itsdenseentries. The timeline span our tree has inmerge_page_under_writesis left out (foxhound has v0.8'sPageMergethere).Tests
Under Proton's Wine, diagnostics build: victory-gpu stops after about 455 passed and victory-hle has 164 passed / 3 failed, the same with and without these commits (v0.8.1 alone does the same under Wine: placeholders, ws2_32, NTFS links, and one xmem test).
victory.exebuilds with no warnings from these commits.Where this comes from
kc01-8/VIctoryNVIDIALINUX, branch
kc/foxhound: foxhound's tree (v0.8.1 ported today, commit 08b28212 onkc/foxhound-v081) run on Linux under Proton on an RTX 3080 Ti, with every run's numbers indocs/kc-linux-status.mdand the plan in its README. The same commits went to trustno1-coder/VIctory-NVIDIA as #2776. Also from there: the frame recorder and replay working under vkd3d-proton, a hang watcher that dumps every thread's place without the loader lock, and a fix for a double unlock in vkd3d-proton's memory budget lock.🤖 Generated with Claude Code
@kc01-8 on GitHub · 2026-11-30 01:46 UTC · original
Pushed
bb556c716, a fix that came out of the review of the same change on trustno1-coder/VIctory-NVIDIA#2776. The write watch's refusal cache counted every range inside a refused one as refused. Whenask_runsplit a merged range the kernel had refused, because it crossed into memory that isn't write-watched, the pieces were never asked: write-watched ones went to the guards, or were marked unwatched for good and copied whole on every refresh. Now only the very range refused counts. The new testa_piece_of_a_refused_run_is_still_askedpasses here under Proton.Full work, run logs and status: https://github.com/kc01-8/VIctoryNVIDIALINUX (branch
kc/foxhound).🤖 Generated with Claude Code
@readmet3xt-lab on GitHub · 2026-11-30 02:01 UTC · original
Not taken: everything here sits behind switches aimed at Proton. On Windows
VICTORY_INPLACE=1gave no gain in our measurements, and about 1,200 lines of off-by-default code inwatch,shadowandinplacewould have to be kept working with every change there. If it shows a gain on Windows (frame times from two runs, on and off), please reopen with those numbers. Thanks.Pull request closed