OSDN Git Service

torture: Allot 1G of memory for scftorture runs
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 21 Jul 2021 23:28:43 +0000 (16:28 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 16 Sep 2021 17:32:35 +0000 (10:32 -0700)
By default, torture.sh allots 512M of memory for each guest OS.  However,
when running scftorture with KASAN, 1G is needed.  This commit therefore
causes torture.sh to provide the required 1G.

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

index 8e88234..eae88aa 100755 (executable)
@@ -351,7 +351,7 @@ fi
 if test "$do_scftorture" = "yes"
 then
        torture_bootargs="scftorture.nthreads=$HALF_ALLOTED_CPUS torture.disable_onoff_at_boot"
-       torture_set "scftorture" tools/testing/selftests/rcutorture/bin/kvm.sh --torture scf --allcpus --duration "$duration_scftorture" --configs "$configs_scftorture" --kconfig "CONFIG_NR_CPUS=$HALF_ALLOTED_CPUS" --trust-make
+       torture_set "scftorture" tools/testing/selftests/rcutorture/bin/kvm.sh --torture scf --allcpus --duration "$duration_scftorture" --configs "$configs_scftorture" --kconfig "CONFIG_NR_CPUS=$HALF_ALLOTED_CPUS" --memory 1G --trust-make
 fi
 
 if test "$do_refscale" = yes