mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
build: cmake: increase per link job mem to 4GiB
lld is multi-threaded in some phases, based on observation, it could spawn up to 16 threads for each link job. and each job could take up to more than 3 GiB memory in total. without the change, we can run into OOM with a machine without abundant memory, so increase the per-link-job mem accordingly. Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
set(LINK_MEM_PER_JOB 1024 CACHE INTERNAL "Maximum memory used by each link job in (in MiB)")
|
||||
set(LINK_MEM_PER_JOB 4096 CACHE INTERNAL "Maximum memory used by each link job in (in MiB)")
|
||||
|
||||
cmake_host_system_information(
|
||||
RESULT _total_mem
|
||||
|
||||
Reference in New Issue
Block a user