Commit 264da483 authored by Paul E. McKenney's avatar Paul E. McKenney

torture: Make torture.sh refscale runs use verbose_batched module parameter

On large systems, the refscale printk() rate can overrun the file system's
ability to accept console log messages.  This commit therefore uses the
new verbose_batched module parameter to rate-limit some of the higher-rate
printk() calls.
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 7a99487c
...@@ -24,6 +24,11 @@ if test "$HALF_ALLOTED_CPUS" -lt 1 ...@@ -24,6 +24,11 @@ if test "$HALF_ALLOTED_CPUS" -lt 1
then then
HALF_ALLOTED_CPUS=1 HALF_ALLOTED_CPUS=1
fi fi
VERBOSE_BATCH_CPUS=$((TORTURE_ALLOTED_CPUS/16))
if test "$VERBOSE_BATCH_CPUS" -lt 2
then
VERBOSE_BATCH_CPUS=0
fi
# Default duration and apportionment. # Default duration and apportionment.
duration_base=10 duration_base=10
...@@ -309,7 +314,7 @@ fi ...@@ -309,7 +314,7 @@ fi
for prim in $primlist for prim in $primlist
do do
torture_bootargs="refscale.scale_type="$prim" refscale.nreaders=$HALF_ALLOTED_CPUS refscale.loops=10000 refscale.holdoff=20 torture.disable_onoff_at_boot" torture_bootargs="refscale.scale_type="$prim" refscale.nreaders=$HALF_ALLOTED_CPUS refscale.loops=10000 refscale.holdoff=20 torture.disable_onoff_at_boot"
torture_set "refscale-$prim" tools/testing/selftests/rcutorture/bin/kvm.sh --torture refscale --allcpus --duration 5 --kconfig "CONFIG_NR_CPUS=$HALF_ALLOTED_CPUS" --trust-make torture_set "refscale-$prim" tools/testing/selftests/rcutorture/bin/kvm.sh --torture refscale --allcpus --duration 5 --kconfig "CONFIG_NR_CPUS=$HALF_ALLOTED_CPUS" --bootargs "verbose_batched=$VERBOSE_BATCH_CPUS" --trust-make
done done
if test "$do_rcuscale" = yes if test "$do_rcuscale" = yes
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment