Lazy commit for XMemVirtualAlloc and <=16 GiB host RAM tuning #3738
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3738"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by rdj415 on 2026-11-30T05:45:19Z.
What it changes
Reduces host RAM pressure and private commit usage on
<= 16 GiBRAM systems by ~6.4–7.0 GB without affecting default residency behavior on higher-RAM machines.XMemVirtualAlloc(crates/victory-hle/src/modules/xmem.rs,crates/victory-gpu/src/watch.rs,crates/victory-gpu/src/lib.rs)<= 16 GiB) (crates/victory-gpu/src/residency.rs)tight_host_ram()(s.ullTotalPhys <= 16 * GIB) to gate<= 16 GiBhost memory tuning.tight_host_ram()(crates/victory-gpu/src/host.rs,crates/victory-gpu/src/shadow.rs,crates/victory-gpu/src/resource.rs)ram_idle_msat4_000ms and defaultsallocator_trimto5s, while preservingbury_lag = 16onlimited_host_ram().1024 KiB(1 MiB) shadow window grid andtails()by default, and setsexact_pool_limitto16 << 20(16 MiB).slot_evict_settings()highthreshold toroom.saturating_sub(4).clamp(50, 78).How it was tested
v2026.11.29.05base):24,057 MB17,033–17,623 MB36,480 MB29,742–30,041 MB5,054 MBhost copies of title memory,6,207 MBshared,0 MBslot evicted (without 1 MiB shadow window grid/tails()and loweredslot_evict).lazy_commit, 1 MiB shadow window grid/tails(), and loweredslot_evict.cargo testresults:cargo test -p victory-hle --lib -- --test-threads=1: 424 passed, 0 failed, 5 ignored.cargo test -p victory-gpu --lib -- --test-threads=1: 921 passed, 1 failed, 60 ignored (pre-existing failure:shader_cache::tests::every_switch_of_the_translator_is_in_the_key/VICTORY_SCALAR_SPLITS).Checked for overlap
• #3503
• #3723
• #3584
• #3126, #2133, #2390
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:49:18Z.
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed