torture: Scale scftorture memory based on number of CPUs
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 16 May 2023 13:18:32 +0000 (06:18 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 14 Jul 2023 22:02:57 +0000 (15:02 -0700)
commit822e42509997cfc8582ab1108eef1a280524b26a
treea5a37ababe6006f8bdc2f89897964ba120c6bcde
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
torture: Scale scftorture memory based on number of CPUs

As the number of CPUs increases, the number of outstanding no-wait
smp_call_function() handlers also increases, so that the default of
2G of memory is not always sufficient on 80-CPU systems.  This commit
therefore scales the amount of memory specified to qemu based on the
number of CPUs specified to the scftorture test instance.

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