From 649ec63a4f2f8bfda02fe24aef89c157ab774b4a Mon Sep 17 00:00:00 2001 From: David Yat Sin Date: Mon, 16 Jun 2025 16:18:55 +0000 Subject: [PATCH] rocrtst: Reduce host memory limit to 90% Further reduce upper bound for rocrtstFunc.Memory_Max_Mem as previous limit of 95% can still trigger OOM killer. --- rocrtst/suites/functional/memory_basic.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rocrtst/suites/functional/memory_basic.cc b/rocrtst/suites/functional/memory_basic.cc index 7f6f784919..dbb12bb5d1 100644 --- a/rocrtst/suites/functional/memory_basic.cc +++ b/rocrtst/suites/functional/memory_basic.cc @@ -237,10 +237,10 @@ void MemoryTest::MaxSingleAllocationTest(hsa_agent_t ag, std::min(pool_sz, info.totalram / gran_sz) : pool_sz; - // Reduce upper_bound by 5% for system-RAM. Otherwise Linux OOM-Killer app can be triggered, + // Reduce upper_bound by 10% for system-RAM. Otherwise Linux OOM-Killer app can be triggered, // if system has allocated all available physical memory and swap space, and so killing this // process. - uint64_t upper_bound = (ag_type == HSA_DEVICE_TYPE_CPU) ? (pool_sz * 0.95) : pool_sz; + uint64_t upper_bound = (ag_type == HSA_DEVICE_TYPE_CPU) ? (pool_sz * 0.90) : pool_sz; uint64_t lower_bound = 0; auto max_alloc_size = upper_bound;