]> git.apps.os.sepia.ceph.com Git - autobuild-ceph.git/commitdiff
build-ceph-cmake: use all processors
authorSage Weil <sage@redhat.com>
Fri, 4 Sep 2015 12:59:12 +0000 (08:59 -0400)
committerSage Weil <sage@redhat.com>
Fri, 4 Sep 2015 13:03:10 +0000 (09:03 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
build-ceph-cmake.sh

index 5b61b2c22c4ed13e6791d3da4547a096dd30b908..97971546e03e8d15f04c2f196bbabdd6c359a661 100755 (executable)
@@ -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