From ec73e239c9ac29cc46d2d6b126687711948f1eef Mon Sep 17 00:00:00 2001 From: Lizonghang <870644199@qq.com> Date: Mon, 3 Feb 2025 18:10:05 +0400 Subject: [PATCH] use 80% available mem as a conservative estimate --- common/profiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/profiler.cpp b/common/profiler.cpp index 1379a53e..5e498508 100644 --- a/common/profiler.cpp +++ b/common/profiler.cpp @@ -485,7 +485,7 @@ static uint64_t device_host_physical_memory(bool available) { std::string key; uint64_t kb; iss >> key >> kb; - memory = kb * 1024; + memory = kb * 1024 * 0.8; break; } }