victory-gpu: Lazy host list reset allocator retirement and bounded/t… #335
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/Belobug--VIctory-Belobug-AMD!335
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-335"
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?
@g-a-l-a-x-i-a on GitHub · 2026-11-26 20:36 UTC · original
g-a-l-a-x-i-a:fix/memory-usage→a-publier· +135 −42 · 7 files · 1 commits · closed without merging…rimmed pools
@MamaLeVrai on GitHub · 2026-11-26 22:31 UTC · original
Tested on an RX 6950 XT 16 GB (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release, at
2559ee6:cargo test --release -p victory-gpu --lib387 passed, 1 failed, 34 ignored. The one failure,descriptor::host::tests::views_are_made_beside_the_heap_and_copied_in, fails the same way oncd8dfc0on this card (#288 fixes it). Not run in the game. Since #306 reports device losses on RDNA 2 tied to the list pool, this change may matter there, but I have no game run of it.AI-assisted (Claude Code); no game data.
@gw1337x on GitHub · 2026-11-26 23:09 UTC · original · edited 2026-11-27 04:32 UTC
Tested in the title on an RX 7800 XT 16 GB (RDNA 3, driver 32.0.32015.7029), Ryzen 7 9800X3D, 32 GB RAM, 48 GB page file, Windows 11 26200 (Memory Integrity off). Diagnostics build (
--profile diag --features diagnostics) of2559ee6against its basecd8dfc0, same boot.Settings:
scripts/play.ps1settings atcd8dfc0plusVICTORY_PORT_CONSTANTS/DESCRIPTORS/CBV/GUARD/JOURNAL=1, Series X profile, ray tracing off. Method: 270 s hands-off from a Chapter I boat save with scripted presses; fps from the 5 s host lines with 1000+ draws (45-265 s), "steady" is 205 s on;VICTORY_TIMELINEwindows of 30 frames at 200 s and 240 s.cd8dfc02559ee6run 12559ee6run 2Timeline, per frame (200 s and 240 s windows):
cd8dfc02559ee6landed lists reset and given backonvictory-submithelper: landed lists reset and given backThe 40-49 ms a frame added is card idle time between submissions; in the same windows the submit thread spends 31-44 ms a frame in
landed lists reset and given back(1.5 ms on the base). Host lists made rise from about 2.9 thousand to 116-142 thousand in a run.VICTORY_RESIDENCYwas not set, solimited_host_ram()was false here (idle list cap 256; the pool limit unchanged). Peak commit is 1.4-2.5 GB lower. The baseline's own commit varies by about 1.5 GB between runs, so that drop is at the edge of what this test can show.Caveats: one baseline run in this boot, two runs of the PR; picture not compared.
@adrianmjim on GitHub · 2026-11-27 06:27 UTC · original
Tested on an RX 7900 XT 20 GB (RDNA 3), driver 32.0.32029.2010, Windows 11 26300, Rust 1.98.1.
2559ee6merged ontoa-publier4eb6cfd(merges cleanly) vs plain4eb6cfd. victory-gpu lib tests,--test-threads=1, in a diag build (--profile diag --features diagnostics) and a dev (debug) build.Pass / fail / ignored, base vs PR:
diag, hardware: 444 / 1 / 34 vs 445 / 1 / 34
diag,
VICTORY_D3D12_WARP=1: 444 / 1 / 34 vs 445 / 1 / 34dev, hardware: 396 / 0 / 34 vs 397 / 0 / 34
diag,
VICTORY_THIN=1, hardware,list:: queue:: thin:: texture:: pool:: send::: 29 / 0 / 3 vs 30 / 0 / 3diag,
VICTORY_LIST_POOL=1 VICTORY_THIN=1, WARP,list:: queue:: thin::: 15 / 0 / 0 in bothIn the first four sets the only difference is the new
pool::tests::staging_pool_reuses_piece_after_staging_rest(ok). The last set has no difference.The one diag failure is the same on both sides and comes from my setup, not the PR. It is
timeline::report::tests::real_waits_are_recorded_with_who_ended_them, which needs symbols, and the test exe was copied away from its .pdb.No test in the suite covers
should_retire, the IDLE/BACKS/card-step caps or the trims. So this only shows that nothing else broke.About the in-game run above:
limited_host_ram()is only true withVICTORY_RESIDENCY=1. It ison() && (... || total RAM <= 32 GiB)(residency.rs:116-121), andon()readsVICTORY_RESIDENCY, which is off by default.scripts/play.ps1does not set it, and it clears inheritedVICTORY_*values that are not passed with-More. So with the settings listed there, the 128 idle / pool 4 / 192 MiB / 128 MiB limits most likely were not in force. These were:BACKScapped at 64 (play.ps1setsVICTORY_THIN=1)reset()insteadSo the host-list churn (2.9k to 116-142k made) comes from the parts of the PR that apply on every machine, not from the 32 GB path. The
sweep()trims (trim_idle(32),trim_backs(16), ...) run only whileresidency::pressured()is set. That is never set withoutVICTORY_RESIDENCY=1, becauserefresh()returns early (residency.rs:133-136). So the trims did not run in that run either.Not tested: in-game,
VICTORY_RESIDENCY=1.Pull request closed