srcu: Automatically determine size-transition strategy at boot
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 31 Jan 2022 19:21:30 +0000 (11:21 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 3 May 2022 17:19:39 +0000 (10:19 -0700)
commita57ffb3c6b67e59e8632f731414b792eacc6cca0
tree34d09d000fabf5eacfed74c7e5cd23a5959ddb70
parent9f2e91d94c91558e3764fe4e01c5e6281a90f239
srcu: Automatically determine size-transition strategy at boot

This commit adds a srcutree.convert_to_big option of zero that causes
SRCU to decide at boot whether to wait for contention (small systems) or
immediately expand to large (large systems).  A new srcutree.big_cpu_lim
(defaulting to 128) defines how many CPUs constitute a large system.

Co-developed-by: Neeraj Upadhyay <quic_neeraju@quicinc.com>
Signed-off-by: Neeraj Upadhyay <quic_neeraju@quicinc.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Documentation/admin-guide/kernel-parameters.txt
kernel/rcu/srcutree.c