gpu: fix STAGING pool cap leak and tighten idle snapshot/send pool caps on <=20GB RAM hosts
CI / check (push) Canceled after 0s
CI / check (push) Canceled after 0s
This commit is contained in:
1 parent
e4dbd89cd3
commit
604908e486
4 files changed
+17
-4
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user