The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] rcutorture: Run TREE03 priority-boost and forward-progress tests separately
@ 2026-12-02 17:04 Joel Fernandes
  0 siblings, 0 replies; only message in thread
From: Joel Fernandes @ 2026-12-02 17:04 UTC (permalink / raw)
  To: linux-kernel, Paul E. McKenney, Josh Triplett, Steven Rostedt,
	Mathieu Desnoyers, Lai Jiangshan, Shuah Khan
  Cc: Joel Fernandes, rcu, linux-kselftest

The priority-boost test holds a reader in an RCU read-side critical section for
up to test_boost_reader_ms of CPU time, which can hold a grace period open for
seconds. This interferes with RCU's forward progress testing causing OOM
errors.

This commit therefore runs TREE03 with only priority-boost testing by setting
rcutorture.fwd_progress=0, and add TREE11, a copy of TREE03 with only
forward-progress testing, by setting rcutorture.test_boost=0.  Add TREE11 to
CFLIST so that both are run by default.  This costs one additional scenario
however it prevents modifying new and existing tests which lowers risk of test
regression.

Signed-off-by: Joel Fernandes <jfern@kernel.org>
---
 .../selftests/rcutorture/configs/rcu/CFLIST    |  1 +
 .../rcutorture/configs/rcu/TREE03.boot         |  1 +
 .../selftests/rcutorture/configs/rcu/TREE11    | 18 ++++++++++++++++++
 .../rcutorture/configs/rcu/TREE11.boot         |  9 +++++++++
 4 files changed, 29 insertions(+)
 create mode 100644 tools/testing/selftests/rcutorture/configs/rcu/TREE11
 create mode 100644 tools/testing/selftests/rcutorture/configs/rcu/TREE11.boot

diff --git a/tools/testing/selftests/rcutorture/configs/rcu/CFLIST b/tools/testing/selftests/rcutorture/configs/rcu/CFLIST
index 98b6175e5aa0..44a3d6e24d8e 100644
--- a/tools/testing/selftests/rcutorture/configs/rcu/CFLIST
+++ b/tools/testing/selftests/rcutorture/configs/rcu/CFLIST
@@ -1,6 +1,7 @@
 TREE01
 TREE02
 TREE03
+TREE11
 TREE04
 TREE05
 TREE07
diff --git a/tools/testing/selftests/rcutorture/configs/rcu/TREE03.boot b/tools/testing/selftests/rcutorture/configs/rcu/TREE03.boot
index 90318591dae2..0c2c8beba4cd 100644
--- a/tools/testing/selftests/rcutorture/configs/rcu/TREE03.boot
+++ b/tools/testing/selftests/rcutorture/configs/rcu/TREE03.boot
@@ -6,3 +6,4 @@ rcutree.kthread_prio=2
 threadirqs
 rcutree.use_softirq=0
 rcutorture.preempt_duration=10
+rcutorture.fwd_progress=0
diff --git a/tools/testing/selftests/rcutorture/configs/rcu/TREE11 b/tools/testing/selftests/rcutorture/configs/rcu/TREE11
new file mode 100644
index 000000000000..2dc31b16e506
--- /dev/null
+++ b/tools/testing/selftests/rcutorture/configs/rcu/TREE11
@@ -0,0 +1,18 @@
+CONFIG_SMP=y
+CONFIG_NR_CPUS=16
+CONFIG_PREEMPT_NONE=n
+CONFIG_PREEMPT_VOLUNTARY=n
+CONFIG_PREEMPT=y
+#CHECK#CONFIG_PREEMPT_RCU=y
+CONFIG_HZ_PERIODIC=y
+CONFIG_NO_HZ_IDLE=n
+CONFIG_NO_HZ_FULL=n
+CONFIG_RCU_TRACE=y
+CONFIG_HOTPLUG_CPU=y
+CONFIG_RCU_FANOUT=2
+CONFIG_RCU_FANOUT_LEAF=2
+CONFIG_RCU_NOCB_CPU=n
+CONFIG_DEBUG_LOCK_ALLOC=n
+CONFIG_RCU_BOOST=y
+CONFIG_DEBUG_OBJECTS_RCU_HEAD=n
+CONFIG_RCU_EXPERT=y
diff --git a/tools/testing/selftests/rcutorture/configs/rcu/TREE11.boot b/tools/testing/selftests/rcutorture/configs/rcu/TREE11.boot
new file mode 100644
index 000000000000..fcb164650a22
--- /dev/null
+++ b/tools/testing/selftests/rcutorture/configs/rcu/TREE11.boot
@@ -0,0 +1,9 @@
+rcutorture.onoff_interval=200 rcutorture.onoff_holdoff=30
+rcutree.gp_preinit_delay=12
+rcutree.gp_init_delay=3
+rcutree.gp_cleanup_delay=3
+rcutree.kthread_prio=2
+threadirqs
+rcutree.use_softirq=0
+rcutorture.preempt_duration=10
+rcutorture.test_boost=0
-- 
2.54.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-02 17:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02 17:04 [PATCH] rcutorture: Run TREE03 priority-boost and forward-progress tests separately Joel Fernandes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox