]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Tue, 6 Apr 2021 23:07:14 +0000 (16:07 -0700)
commit952a744b31bcec6321608c772a49a1853cb7717f
tree7208b5d2f5e60bd508ed89b462be386dc1a7d59f
parent5c59c8aa338f4b7db7c6320b7ac9f218f8301272
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