Skip to content

Commit fe09d2e

Browse files
paulmckrcuurezki
authored andcommitted
scftorture: Increase memory provided to guest OS
The tradition, extending back almost a full year, has been 2GB plus an additional number of GBs equal to the number of CPUs divided by sixteen. This tradition has served scftorture well, even the CONFIG_PREEMPT=y version running KASAN within guest OSes having 40 CPUs. However, this test recently started OOMing on larger systems, and this commit therefore gives this test an additional GB of memory. It is quite possible that further testing on larger systems will show a need to decrease the divisor from 16 to (say) 8, but that is a change to make once it has been demonstrated to be required. Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
1 parent 39cd87c commit fe09d2e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/testing/selftests/rcutorture/bin/torture.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ fi
425425
if test "$do_scftorture" = "yes"
426426
then
427427
# Scale memory based on the number of CPUs.
428-
scfmem=$((2+HALF_ALLOTED_CPUS/16))
428+
scfmem=$((3+HALF_ALLOTED_CPUS/16))
429429
torture_bootargs="scftorture.nthreads=$HALF_ALLOTED_CPUS torture.disable_onoff_at_boot csdlock_debug=1"
430430
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 ${scfmem}G --trust-make
431431
fi

0 commit comments

Comments
 (0)