perf(gpu/mem): add <=18 GiB host RAM tier and sweep PRELUDES/HWRT pools under pressure (#276) #386
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-03T11:40:47Z.
Summary
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
Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-03T11:56:15Z.
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).