xmem: opt-in lazy/file-backed physical pages for commit-limit pressure #356
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!356
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-356"
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?
@Adika713 on GitHub · 2026-11-26 18:20 UTC · original
Adika713:fix/lazy-physical-pages→main· +267 −32 · 1 files · 1 commits · draft## What / why
Opt-in host-memory mitigation for the measured Windows commit-limit failure when the title allocates large physical-page pools (~6.1 GiB). On 32 GB hosts with a small pagefile, the pre-fix run hit
Windows commit limit reached while committing 6538919936 bytes of physical pagesand exited at 12s.This adds two default-off env flags:
VICTORY_LAZY_PHYSICAL=1: commit only a small prefix of reserved physical-page views, register the view range, and commit faulting 64 KiB pages on demand via a vectored exception handler. If VEH cannot be installed or prefix commit fails, it falls back to the existing commit-refused path.VICTORY_FILE_PHYSICAL=1: back physical-page sections with a temporary file (VICTORY_CACHE_DIRor current dir) instead of pagefile-backed section commit; file is removed on section drop. Falls back to pagefile-backed section on failure.What is in it
crates/victory-hle/src/modules/xmem.rs: adds opt-in section creation/commit behavior, lazy range tracking, VEH demand-commit, lazy range cleanup on unmap, and game-free testlazy_range_tracking_splits_on_remove.Tested
cargo build --locked -p victory -p victory-hle(F: temp/targetF:\VIctory-Belobug-AMD\_agent_tmp\target-avatarmanz) => Finished dev profile.cargo test --locked -p victory-hle --lib lazy_range_tracking_splits_on_remove -- --test-threads=1=>ok. 1 passed; 0 failed.cargo test --locked -p victory-hle --lib pages_say_where_they_are_mapped -- --test-threads=1=>ok. 1 passed; 0 failed.test-story-series-x-20261126-191228(series-x, 1280x720, BudgetMb 64, TextureMax 128, lazy/file physical on, 240s max):elapsed_s=80 stop=exited exit_code=,frame_interval_count=0 max_frame_logged=1024 frame_presented_log_count=11 world_entry_candidate=False reason=insufficient_present_samples,shot_30s.png avg=129.5 min=0 max=249(non-black; not proof of world entry). The earlier 12sos error 1455physical-page commit-limit failure did not reproduce. New failure mode: many dstorageos error 1450read failures followed byunhandled exception 0xc00000fdstack overflow atvictory.exe+0x11a5a77. Logs:F:\VIctory-Belobug-AMD\_agent_reports\logs\test-story-series-x-20261126-191228.*.Not tested
cargo test -p victory-hle --lib modules::xmem -- --test-threads=1previously hitStackOverflowExceptionin the target dir during investigation; individual xmem tests above passed. Needs follow-up before marking ready.AI use
OpenCode / Big Pickle (gpt-5 reasoning style not used; model as reported by harness). AI-assisted code/test/log analysis; all commands/results above were actually run.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.