From: Kefu Chai Date: Fri, 4 Jun 2021 16:12:58 +0000 (+0800) Subject: scripts/build_utils: increase mem per job to 3000 MiB X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b47256b7269da5d9a76ce15aa8f322d79c1f5510;p=ceph-build.git scripts/build_utils: increase mem per job to 3000 MiB see also https://github.com/ceph/ceph/pull/41677 Signed-off-by: Kefu Chai --- diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index 6e71b536..09c362b6 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -1326,7 +1326,7 @@ get_nr_build_jobs() { local nproc=$(nproc) local max_build_jobs=$(vmstat --stats --unit m | \ grep 'total memory' | \ - awk '{print int($1/2200)}') + awk '{print int($1/3000)}') if [[ $max_build_jobs -eq 0 ]]; then # probably the system is under high load, use a safe number max_build_jobs=16