From 80dd47bb5564f1cfc843c8d753096a0a3acfbe2d Mon Sep 17 00:00:00 2001 From: Jarret Shook Date: Wed, 13 Sep 2017 01:43:06 -0700 Subject: Change how numProc is derived on Linux (#13909) Before the decision for numProcs to run in parallel for runtests.sh was based on _NPROCESSORS_ONLN which harware which attempts to save power (eg arm(64)) this number may be < numProcs. --- tests/runtest.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/runtest.sh') diff --git a/tests/runtest.sh b/tests/runtest.sh index fdc067eb2d..e238723743 100755 --- a/tests/runtest.sh +++ b/tests/runtest.sh @@ -733,8 +733,10 @@ function run_test { # Variables for running tests in the background if [ `uname` = "NetBSD" ]; then NumProc=$(getconf NPROCESSORS_ONLN) -else +elif [ `uname` = "Darwin" ]; then NumProc=$(getconf _NPROCESSORS_ONLN) +else + NumProc=$(nproc --all) fi ((maxProcesses = $NumProc * 3 / 2)) # long tests delay process creation, use a few more processors -- cgit v1.2.3