Lists: idle host lists go while an aperture segment of the card's memory is near full (VICTORY_LIST_TIGHT, off by default) #626
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!626
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-626"
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?
@Esteban-V on GitHub · 2026-11-27 14:49 UTC · original
Esteban-V:perf/list-aperture-trim→a-publier· +139 −0 · 3 files · 1 commits · openFollow-up to the RDNA 2 diagnosis in #372's comments. On an RX 6700 XT / 6950 XT the device is removed when a 2 GB aperture segment runs full (
ReserveResource->0xC0000001at the world load), and idle host lists' allocators are most of what fills it: a command allocator keeps its memory overReset(kyokyotosh/VIctory-6700XTFINDINGS-6700XT.md; #329: 1.16 MiB per allocator + list pair, 1.0 MiB of it shared). DXGI'sQueryVideoMemoryInfobudgets leave that segment out, so nothing in the tree sees it today.VICTORY_LIST_TIGHT=N(percent, clamped to 50-95, unset by default). The once-a-secondsweepreads the adapter's aperture segments withD3DKMTQueryStatistics(Host::fullest_aperture,host.rs), the same counters Task Manager shows.list::trim_when_tight). At most once every 10 s, and the dropped lists are freed on a short-livedvictory-list-trimthread, not the submitting one.windowsgains theWdk_Graphics_Direct3Dfeature;Cargo.lockis unchanged.Why it should not churn like #335 (2.9 thousand lists made in a run became 116-142 thousand there):
recycle,fresh_list, the 512 idle cap and list reuse are untouched, there is no retirement by reset count, and the trim only runs while the segment is tight, keeps 64 and is spaced 10 s apart. Idle lists have run and been reset, sokeep_freed, the bury lag andHostHeap::keptare not involved.Left out on purpose: the 6700XT tree also settles (no send-ahead) while tight and trims its own prelude pool. Here a prelude lives in its
HostList, so dropping the list frees both allocators; the settle can follow if a run shows the trim alone does not keep the device.Touches
IDLEinlist.rslike #372; whichever lands second needs a trivial rebase (.0/.1to thePoolfields).Testing
windows-latest): Clippy, default tests and diagnostics tests pass (run).tight_has_hysteresis_and_trims_are_spacedpasses on Windows (default and diagnostics test runs).x86_64-pc-windows-msvcon a macOS host (cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-msvc -- -D warnings, default and--all-features).Worth an A/B on RDNA 2 (
a-publiervs this withVICTORY_LIST_TIGHT=80, same save): device removals, segment MB over time from the new lines, host lists made per run (should stay near the base's ~2.9 thousand), andlanded lists reset and given backonvictory-submit. On RDNA 3/4 and NVIDIA the aperture limit is usually large enough that it never trips.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.