gpu: fix STAGING pool cap leak and tighten idle snapshot/send pool caps on <=20GB RAM hosts
CI / check (push) Canceled after 0s

This commit is contained in:
theme613 committed 2026-11-28 20:28:10 +08:00
1 parent e4dbd89cd3
commit 604908e486
4 files changed
+17 -4

No files matched your search

+3 -1
View File
@@ -122,7 +122,9 @@ static SPARE: Mutex<Vec<Memory>> = Mutex::new(Vec::new());
/// On hosts with <= 32 GiB RAM, cap the idle upload pool at 256 MiB (instead
/// of 768 MiB) so streaming bursts have more commit headroom.
fn kept() -> u64 {
if on_card() || crate::residency::limited_host_ram() {
if crate::residency::tight_host_ram() {
128 << 20
} else if on_card() || crate::residency::limited_host_ram() {
256 << 20
} else {
768 << 20