]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
scripts/build_utils: increase mem per job to 3000 MiB 1831/head
authorKefu Chai <kchai@redhat.com>
Fri, 4 Jun 2021 16:12:58 +0000 (00:12 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 4 Jun 2021 16:13:59 +0000 (00:13 +0800)
see also https://github.com/ceph/ceph/pull/41677

Signed-off-by: Kefu Chai <kchai@redhat.com>
scripts/build_utils.sh

index 6e71b536f3ac7de41318891f0072465966c8517e..09c362b6d9169fd9d7094b0520c60a925a2b2b36 100644 (file)
@@ -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