From: Sage Weil Date: Fri, 4 Sep 2015 12:59:12 +0000 (-0400) Subject: build-ceph-cmake: use all processors X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d8b16b6eb8c9fafba7a574d26eb970f6a6d64211;p=autobuild-ceph.git build-ceph-cmake: use all processors Signed-off-by: Sage Weil --- diff --git a/build-ceph-cmake.sh b/build-ceph-cmake.sh index 5b61b2c..9797154 100755 --- a/build-ceph-cmake.sh +++ b/build-ceph-cmake.sh @@ -26,22 +26,7 @@ mkdir build cd build cmake .. -# -# Return MIN(4, MAX(1, (number of processors / 2))) -# Do not try to use more than 4 because it will stress -# IO too much -# -function get_processors() { - if test $(nproc) -ge 16 ; then - echo 4 - elif test $(nproc) -ge 2 ; then - expr $(nproc) / 2 - else - echo 1 - fi -} - -make -j$(get_processors) "$@" || exit 4 +make -j$(nproc) "$@" || exit 4 # run "make check", but give it a time limit in case a test gets stuck #trap "pkill -9 ceph-osd || true ; pkill -9 ceph-mon || true" EXIT