]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rcutorture: Reduce TREE01 CPU overcommit
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 8 May 2025 23:42:29 +0000 (16:42 -0700)
committerJoel Fernandes <joelagnelf@nvidia.com>
Fri, 16 May 2025 15:14:00 +0000 (11:14 -0400)
commit4b5eb4b6b22486dff5dcc9bb9985c4ed769593f5
tree76c5b5ea8cd5d1aecdf60a3940ef93b5bb52eb21
parentd72e6c0bce15468445b1668869287011d2bab882
rcutorture: Reduce TREE01 CPU overcommit

The TREE01.boot nr_cpus kernel boot parameter has been set to 43 for
more than seven years, but it can cause RCU CPU stall warnings on arm64,
most of the time involving the stop-machine subsystem.  This should
not be too surprising, given that this causes 43 vCPUs to spin with
interrupts disabled when there are only eight physical CPUs.

The point of this CPU overcommit is to test the ability of expedited RCU
grace period initialization to handle races with incoming CPUs that have
never previously been online.  But limiting to 17 CPUs instead of 43
allows time for this code to be exercised, and eliminates (or at least
greatly reduces) the incidence of RCU CPU stall warnings on arm64.

So this commit therefore sets nr_cpus=17 in TREE01.boot.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
tools/testing/selftests/rcutorture/configs/rcu/TREE01.boot