ignore the first 5 evals due to preheat
This commit is contained in:
+6
-4
@@ -525,12 +525,14 @@ static uint64_t device_host_physical_memory(bool available) {
|
||||
// because GPU is more likely to use the inactive memory
|
||||
memory += vm_stats.active_count * 0.2 * page_size;
|
||||
} else {
|
||||
// assume 50% of active pages can be compressed on macOS x86_64 (an empirical value)
|
||||
memory += vm_stats.active_count * 0.6 * page_size;
|
||||
// assume 50% of active pages can be compressed on macOS NUMA (an empirical value)
|
||||
memory += vm_stats.active_count * 0.5 * page_size;
|
||||
}
|
||||
|
||||
|
||||
if (!is_uma_arch()) memory += vm_stats.speculative_count * page_size;
|
||||
if (!is_uma_arch()) {
|
||||
memory += vm_stats.speculative_count * page_size;
|
||||
memory += vm_stats.compressor_page_count * page_size;
|
||||
}
|
||||
} else {
|
||||
LOG_INF("host_statistics64 failed\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user