]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: increase the MAX_{LINK,COMPILE}_MEM 41677/head
authorKefu Chai <kchai@redhat.com>
Thu, 3 Jun 2021 12:48:53 +0000 (20:48 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 3 Jun 2021 13:03:03 +0000 (21:03 +0800)
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 <kchai@redhat.com>
cmake/modules/LimitJobs.cmake

index 7d411026f366f00cc393ca11187d5977af0e6249..591a9321b668de8c712c71e32b24b4bc2c265013 100644 (file)
@@ -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)