From: Kefu Chai Date: Thu, 3 Jun 2021 12:48:53 +0000 (+0800) Subject: cmake: increase the MAX_{LINK,COMPILE}_MEM X-Git-Tag: v17.1.0~1767^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F41677%2Fhead;p=ceph.git cmake: increase the MAX_{LINK,COMPILE}_MEM based on recent observation, quite a few C++ source file take around more than 3.0GiB to compile. for instance, test_mock_HttpClient.cc could take up to 6270MiB memory to compile. so increase MAX_{LINK,COMPILE}_MEM accordingly. Signed-off-by: Kefu Chai --- diff --git a/cmake/modules/LimitJobs.cmake b/cmake/modules/LimitJobs.cmake index 7d411026f36..591a9321b66 100644 --- a/cmake/modules/LimitJobs.cmake +++ b/cmake/modules/LimitJobs.cmake @@ -1,5 +1,5 @@ -set(MAX_COMPILE_MEM 2500 CACHE INTERNAL "maximum memory used by each compiling job (in MiB)") -set(MAX_LINK_MEM 3300 CACHE INTERNAL "maximum memory used by each linking job (in MiB)") +set(MAX_COMPILE_MEM 3500 CACHE INTERNAL "maximum memory used by each compiling job (in MiB)") +set(MAX_LINK_MEM 4500 CACHE INTERNAL "maximum memory used by each linking job (in MiB)") cmake_host_system_information(RESULT _num_cores QUERY NUMBER_OF_LOGICAL_CORES) cmake_host_system_information(RESULT _total_mem QUERY TOTAL_PHYSICAL_MEMORY)