ignore the first 5 evals due to preheat

This commit is contained in:
Lizonghang
2025-01-31 08:53:51 +04:00
parent fdecd4b54c
commit dd632ee6df
2 changed files with 9 additions and 7 deletions
+6 -4
View File
@@ -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");
}