]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph.spec.in: reserve 2500MB per build job
authorDan van der Ster <daniel.vanderster@cern.ch>
Wed, 4 Sep 2019 08:34:42 +0000 (10:34 +0200)
committerDan van der Ster <daniel.vanderster@cern.ch>
Fri, 6 Sep 2019 06:52:21 +0000 (08:52 +0200)
On our 14GB build machines, 8 parallel jobs results in the compiler
going OOM. Reserving 2500MB per job allows it to succeed with 5 jobs.

Fixes: https://tracker.ceph.com/issues/41659
Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
ceph.spec.in

index 810560a7b6247c92786827d1f5a02c44f4ab4cbb..633f99d5df85edf43c79fadddc6a53680f02f4b6 100644 (file)
@@ -1176,7 +1176,7 @@ free -h
 echo "System limits:"
 ulimit -a
 if test -n "$CEPH_SMP_NCPUS" -a "$CEPH_SMP_NCPUS" -gt 1 ; then
-    mem_per_process=1800
+    mem_per_process=2500
     max_mem=$(LANG=C free -m | sed -n "s|^Mem: *\([0-9]*\).*$|\1|p")
     max_jobs="$(($max_mem / $mem_per_process))"
     test "$CEPH_SMP_NCPUS" -gt "$max_jobs" && CEPH_SMP_NCPUS="$max_jobs" && echo "Warning: Reducing build parallelism to -j$max_jobs because of memory limits"