From b47256b7269da5d9a76ce15aa8f322d79c1f5510 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 5 Jun 2021 00:12:58 +0800 Subject: [PATCH] scripts/build_utils: increase mem per job to 3000 MiB see also https://github.com/ceph/ceph/pull/41677 Signed-off-by: Kefu Chai --- scripts/build_utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5