perf(gpu/mem): add <=18 GiB host RAM tier and sweep PRELUDES/HWRT pools under pressure (#276) #386
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Androtim--MiniVI!386
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-386"
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?
@Androtim on GitHub · 2026-12-03 11:40 UTC · original
Androtim:perf/low-ram-tier-and-pressure-sweeps→main· +133 −31 · 7 files · 2 commits · merged 2026-12-03 12:01 UTCSummary
Adds a dedicated
<= 18 GiB(16 GB) host RAM tier and wires previously unsweptPRELUDESandhwrtspare pools intohost/sweep.rspressure trimming to prevent 16 GB RAM PCs from falling into Windows paging stalls and reclaim idle commit on all systems under pressure.Changes
crates/victory-gpu/src/residency.rs: Addedtiny_host_ram()(<= 18 GiBtotal physical RAM) and earlier pressure hysteresis (<= 4 GiBphysical /<= 6 GiBcommit enter,>= 5.5 GiB/>= 8 GiBclear) for<= 18 GiBhosts; 32 GiB+ hosts keep existing thresholds unchanged.crates/victory-gpu/src/host.rs&host/sweep.rs: Addedpreludes_kept()(64on<= 18 GiBvs256) andtrim_preludes_on_pressure(critical)(keeps16under pressure,0when critical, accurately updatingPRELUDES_ALIVEand dropping off-thread viadrop_aside), wired intosweep_once().crates/victory-gpu/src/list.rs: Addedtiny_ramcap (default_idle_most = 128,pressure_idle_cap = 96 / 64).crates/victory-gpu/src/ahead.rs: Gatedahead_limits()on both VRAM budget ANDtiny_host_ram()so 16 GiB RAM systems paired with 12–16 GiB VRAM cards do not pre-allocate 512 MiB of startup buffers.crates/victory-gpu/src/hwrt.rs&hwrt/budget.rs: AddedLeasePool::drain_all()andhwrt::trim_on_pressure(critical)(drains idleleases,readbacks, and under critical commitas_pool, dropping off-thread viadrop_aside), wired intosweep_once().Verification
cargo test -p victory-gpu --lib residency::tests/ahead_limits/pressure_idle_capcargo clippy -p victory-gpu --all-targets -- -D warnings(clean)check#282)Related: #276
@Androtim on GitHub · 2026-12-03 11:56 UTC · original
3-Gate Verification Summary (head \
dd0fb48)dd0fb48\ resolved all 4 Pass 1 findings (\hwrt::MGR\ lifted to module scope using \OnceLock::get(), non-critical HW-RT trim drains hosteadbacks\ only while \leases/\s_pool\ require \critical, \HostList::give_prelude\ caps to \prelude_pressure_keep\ while pressured, and \ iny\ physical recovery lowered to \4.5 GiB\ with \3.0 GiB\ enter / \6–8 GiB\ commit hysteresis).