torture: Make the build machine control N in "make -jN"
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 18 Mar 2021 21:00:59 +0000 (14:00 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 10 May 2021 23:05:06 +0000 (16:05 -0700)
commitb09751d752fb0e8dce4062254da9f813dcb00de5
tree88bd489354e912afb9c016e8b755697c5bfff715
parentf254a0b52787d108879cc8761ee4f6ce33698029
torture:  Make the build machine control N in "make -jN"

Given remote rcutorture runs, it is quite possible that the build system
will have fewer CPUs than the system(s) running the actual test scenarios.
In such cases, using the number of CPUs on the test systems can overload
the build system, slowing down the build or, worse, OOMing the build
system.  This commit therefore uses the build system's CPU count to set
N in "make -jN", and by tradition sets "N" to double the CPU count.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/rcutorture/bin/kvm-build.sh