xref: /linux/kernel/rcu/Kconfig (revision 1b4e9fdf9ed489c779259734e0b47f408c7786f2)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
20af92d46SPaul E. McKenney#
30af92d46SPaul E. McKenney# RCU-related configuration options
40af92d46SPaul E. McKenney#
50af92d46SPaul E. McKenney
60af92d46SPaul E. McKenneymenu "RCU Subsystem"
70af92d46SPaul E. McKenney
80af92d46SPaul E. McKenneyconfig TREE_RCU
90af92d46SPaul E. McKenney	bool
10b3e627d3SLai Jiangshan	default y if SMP
11e67198ccSFrederic Weisbecker	# Dynticks-idle tracking
12e67198ccSFrederic Weisbecker	select CONTEXT_TRACKING_IDLE
130af92d46SPaul E. McKenney	help
140af92d46SPaul E. McKenney	  This option selects the RCU implementation that is
150af92d46SPaul E. McKenney	  designed for very large SMP system with hundreds or
160af92d46SPaul E. McKenney	  thousands of CPUs.  It also scales down nicely to
170af92d46SPaul E. McKenney	  smaller systems.
180af92d46SPaul E. McKenney
190af92d46SPaul E. McKenneyconfig PREEMPT_RCU
200af92d46SPaul E. McKenney	bool
2101b1d88bSThomas Gleixner	default y if PREEMPTION
22b3e627d3SLai Jiangshan	select TREE_RCU
230af92d46SPaul E. McKenney	help
240af92d46SPaul E. McKenney	  This option selects the RCU implementation that is
250af92d46SPaul E. McKenney	  designed for very large SMP systems with hundreds or
260af92d46SPaul E. McKenney	  thousands of CPUs, but for which real-time response
270af92d46SPaul E. McKenney	  is also required.  It also scales down nicely to
280af92d46SPaul E. McKenney	  smaller systems.
290af92d46SPaul E. McKenney
300af92d46SPaul E. McKenney	  Select this option if you are unsure.
310af92d46SPaul E. McKenney
320af92d46SPaul E. McKenneyconfig TINY_RCU
330af92d46SPaul E. McKenney	bool
34c1ec7c15SPaul E. McKenney	default y if !PREEMPT_RCU && !SMP
350af92d46SPaul E. McKenney	help
360af92d46SPaul E. McKenney	  This option selects the RCU implementation that is
370af92d46SPaul E. McKenney	  designed for UP systems from which real-time response
380af92d46SPaul E. McKenney	  is not required.  This option greatly reduces the
390af92d46SPaul E. McKenney	  memory footprint of RCU.
400af92d46SPaul E. McKenney
410af92d46SPaul E. McKenneyconfig RCU_EXPERT
420af92d46SPaul E. McKenney	bool "Make expert-level adjustments to RCU configuration"
430af92d46SPaul E. McKenney	default n
440af92d46SPaul E. McKenney	help
450af92d46SPaul E. McKenney	  This option needs to be enabled if you wish to make
460af92d46SPaul E. McKenney	  expert-level adjustments to RCU configuration.  By default,
470af92d46SPaul E. McKenney	  no such adjustments can be made, which has the often-beneficial
480af92d46SPaul E. McKenney	  side-effect of preventing "make oldconfig" from asking you all
490af92d46SPaul E. McKenney	  sorts of detailed questions about how you would like numerous
500af92d46SPaul E. McKenney	  obscure RCU options to be set up.
510af92d46SPaul E. McKenney
520af92d46SPaul E. McKenney	  Say Y if you need to make expert-level adjustments to RCU.
530af92d46SPaul E. McKenney
540af92d46SPaul E. McKenney	  Say N if you are unsure.
550af92d46SPaul E. McKenney
560af92d46SPaul E. McKenneyconfig TINY_SRCU
570af92d46SPaul E. McKenney	bool
580cd7e350SPaul E. McKenney	default y if TINY_RCU
590af92d46SPaul E. McKenney	help
600af92d46SPaul E. McKenney	  This option selects the single-CPU non-preemptible version of SRCU.
610af92d46SPaul E. McKenney
620af92d46SPaul E. McKenneyconfig TREE_SRCU
630af92d46SPaul E. McKenney	bool
640cd7e350SPaul E. McKenney	default y if !TINY_RCU
650af92d46SPaul E. McKenney	help
660af92d46SPaul E. McKenney	  This option selects the full-fledged version of SRCU.
670af92d46SPaul E. McKenney
682e83b879SPaul E. McKenneyconfig NEED_SRCU_NMI_SAFE
692e83b879SPaul E. McKenney	def_bool HAVE_NMI && !ARCH_HAS_NMI_SAFE_THIS_CPU_OPS && !TINY_SRCU
702e83b879SPaul E. McKenney
715873b8a9SPaul E. McKenneyconfig TASKS_RCU_GENERIC
72d5f177d3SPaul E. McKenney	def_bool TASKS_RCU || TASKS_RUDE_RCU || TASKS_TRACE_RCU
735873b8a9SPaul E. McKenney	help
745873b8a9SPaul E. McKenney	  This option enables generic infrastructure code supporting
755873b8a9SPaul E. McKenney	  task-based RCU implementations.  Not for manual selection.
765873b8a9SPaul E. McKenney
773b6e1dd4SPaul E. McKenneyconfig FORCE_TASKS_RCU
783b6e1dd4SPaul E. McKenney	bool "Force selection of TASKS_RCU"
793b6e1dd4SPaul E. McKenney	depends on RCU_EXPERT
803b6e1dd4SPaul E. McKenney	select TASKS_RCU
813b6e1dd4SPaul E. McKenney	default n
820af92d46SPaul E. McKenney	help
833b6e1dd4SPaul E. McKenney	  This option force-enables a task-based RCU implementation
843b6e1dd4SPaul E. McKenney	  that uses only voluntary context switch (not preemption!),
853b6e1dd4SPaul E. McKenney	  idle, and user-mode execution as quiescent states.  Not for
863b6e1dd4SPaul E. McKenney	  manual selection in most cases.
873b6e1dd4SPaul E. McKenney
88*1b4e9fdfSPaul E. McKenneyconfig NEED_TASKS_RCU
893b6e1dd4SPaul E. McKenney	bool
903b6e1dd4SPaul E. McKenney	default n
91*1b4e9fdfSPaul E. McKenney
92*1b4e9fdfSPaul E. McKenneyconfig TASKS_RCU
93*1b4e9fdfSPaul E. McKenney	bool
94*1b4e9fdfSPaul E. McKenney	default NEED_TASKS_RCU && (PREEMPTION || PREEMPT_AUTO)
953b6e1dd4SPaul E. McKenney	select IRQ_WORK
960af92d46SPaul E. McKenney
974c3f7b0eSPaul E. McKenneyconfig FORCE_TASKS_RUDE_RCU
984c3f7b0eSPaul E. McKenney	bool "Force selection of Tasks Rude RCU"
994c3f7b0eSPaul E. McKenney	depends on RCU_EXPERT
1004c3f7b0eSPaul E. McKenney	select TASKS_RUDE_RCU
1014c3f7b0eSPaul E. McKenney	default n
102c84aad76SPaul E. McKenney	help
1034c3f7b0eSPaul E. McKenney	  This option force-enables a task-based RCU implementation
1044c3f7b0eSPaul E. McKenney	  that uses only context switch (including preemption) and
1054c3f7b0eSPaul E. McKenney	  user-mode execution as quiescent states.  It forces IPIs and
1064c3f7b0eSPaul E. McKenney	  context switches on all online CPUs, including idle ones,
1074c3f7b0eSPaul E. McKenney	  so use with caution.	Not for manual selection in most cases.
1084c3f7b0eSPaul E. McKenney
1094c3f7b0eSPaul E. McKenneyconfig TASKS_RUDE_RCU
1104c3f7b0eSPaul E. McKenney	bool
1114c3f7b0eSPaul E. McKenney	default n
1124c3f7b0eSPaul E. McKenney	select IRQ_WORK
113c84aad76SPaul E. McKenney
11440c1278aSPaul E. McKenneyconfig FORCE_TASKS_TRACE_RCU
11540c1278aSPaul E. McKenney	bool "Force selection of Tasks Trace RCU"
11640c1278aSPaul E. McKenney	depends on RCU_EXPERT
11740c1278aSPaul E. McKenney	select TASKS_TRACE_RCU
11840c1278aSPaul E. McKenney	default n
119d5f177d3SPaul E. McKenney	help
120d5f177d3SPaul E. McKenney	  This option enables a task-based RCU implementation that uses
121d5f177d3SPaul E. McKenney	  explicit rcu_read_lock_trace() read-side markers, and allows
12240c1278aSPaul E. McKenney	  these readers to appear in the idle loop as well as on the
12340c1278aSPaul E. McKenney	  CPU hotplug code paths.  It can force IPIs on online CPUs,
12440c1278aSPaul E. McKenney	  including idle ones, so use with caution.  Not for manual
12540c1278aSPaul E. McKenney	  selection in most cases.
12640c1278aSPaul E. McKenney
12740c1278aSPaul E. McKenneyconfig TASKS_TRACE_RCU
12840c1278aSPaul E. McKenney	bool
12940c1278aSPaul E. McKenney	default n
13040c1278aSPaul E. McKenney	select IRQ_WORK
131d5f177d3SPaul E. McKenney
1320af92d46SPaul E. McKenneyconfig RCU_STALL_COMMON
133b3e627d3SLai Jiangshan	def_bool TREE_RCU
1340af92d46SPaul E. McKenney	help
1350af92d46SPaul E. McKenney	  This option enables RCU CPU stall code that is common between
1360af92d46SPaul E. McKenney	  the TINY and TREE variants of RCU.  The purpose is to allow
1370af92d46SPaul E. McKenney	  the tiny variants to disable RCU CPU stall warnings, while
1380af92d46SPaul E. McKenney	  making these warnings mandatory for the tree variants.
1390af92d46SPaul E. McKenney
1400af92d46SPaul E. McKenneyconfig RCU_NEED_SEGCBLIST
1419b073de1SPaul E. McKenney	def_bool ( TREE_RCU || TREE_SRCU || TASKS_RCU_GENERIC )
1420af92d46SPaul E. McKenney
1430af92d46SPaul E. McKenneyconfig RCU_FANOUT
1440af92d46SPaul E. McKenney	int "Tree-based hierarchical RCU fanout value"
1450af92d46SPaul E. McKenney	range 2 64 if 64BIT
1460af92d46SPaul E. McKenney	range 2 32 if !64BIT
147b3e627d3SLai Jiangshan	depends on TREE_RCU && RCU_EXPERT
1480af92d46SPaul E. McKenney	default 64 if 64BIT
1490af92d46SPaul E. McKenney	default 32 if !64BIT
1500af92d46SPaul E. McKenney	help
1510af92d46SPaul E. McKenney	  This option controls the fanout of hierarchical implementations
1520af92d46SPaul E. McKenney	  of RCU, allowing RCU to work efficiently on machines with
1530af92d46SPaul E. McKenney	  large numbers of CPUs.  This value must be at least the fourth
1540af92d46SPaul E. McKenney	  root of NR_CPUS, which allows NR_CPUS to be insanely large.
1550af92d46SPaul E. McKenney	  The default value of RCU_FANOUT should be used for production
1560af92d46SPaul E. McKenney	  systems, but if you are stress-testing the RCU implementation
1570af92d46SPaul E. McKenney	  itself, small RCU_FANOUT values allow you to test large-system
1580af92d46SPaul E. McKenney	  code paths on small(er) systems.
1590af92d46SPaul E. McKenney
1600af92d46SPaul E. McKenney	  Select a specific number if testing RCU itself.
1610af92d46SPaul E. McKenney	  Take the default if unsure.
1620af92d46SPaul E. McKenney
1630af92d46SPaul E. McKenneyconfig RCU_FANOUT_LEAF
1640af92d46SPaul E. McKenney	int "Tree-based hierarchical RCU leaf-level fanout value"
165dc126918SPaul E. McKenney	range 2 64 if 64BIT && !RCU_STRICT_GRACE_PERIOD
166dc126918SPaul E. McKenney	range 2 32 if !64BIT && !RCU_STRICT_GRACE_PERIOD
167dc126918SPaul E. McKenney	range 2 3 if RCU_STRICT_GRACE_PERIOD
168b3e627d3SLai Jiangshan	depends on TREE_RCU && RCU_EXPERT
169dc126918SPaul E. McKenney	default 16 if !RCU_STRICT_GRACE_PERIOD
170dc126918SPaul E. McKenney	default 2 if RCU_STRICT_GRACE_PERIOD
1710af92d46SPaul E. McKenney	help
1720af92d46SPaul E. McKenney	  This option controls the leaf-level fanout of hierarchical
1730af92d46SPaul E. McKenney	  implementations of RCU, and allows trading off cache misses
1740af92d46SPaul E. McKenney	  against lock contention.  Systems that synchronize their
1750af92d46SPaul E. McKenney	  scheduling-clock interrupts for energy-efficiency reasons will
1760af92d46SPaul E. McKenney	  want the default because the smaller leaf-level fanout keeps
1770af92d46SPaul E. McKenney	  lock contention levels acceptably low.  Very large systems
1780af92d46SPaul E. McKenney	  (hundreds or thousands of CPUs) will instead want to set this
1790af92d46SPaul E. McKenney	  value to the maximum value possible in order to reduce the
1800af92d46SPaul E. McKenney	  number of cache misses incurred during RCU's grace-period
1810af92d46SPaul E. McKenney	  initialization.  These systems tend to run CPU-bound, and thus
1820af92d46SPaul E. McKenney	  are not helped by synchronized interrupts, and thus tend to
1830af92d46SPaul E. McKenney	  skew them, which reduces lock contention enough that large
1840af92d46SPaul E. McKenney	  leaf-level fanouts work well.  That said, setting leaf-level
1850af92d46SPaul E. McKenney	  fanout to a large number will likely cause problematic
1860af92d46SPaul E. McKenney	  lock contention on the leaf-level rcu_node structures unless
1870af92d46SPaul E. McKenney	  you boot with the skew_tick kernel parameter.
1880af92d46SPaul E. McKenney
1890af92d46SPaul E. McKenney	  Select a specific number if testing RCU itself.
1900af92d46SPaul E. McKenney
1910af92d46SPaul E. McKenney	  Select the maximum permissible value for large systems, but
1920af92d46SPaul E. McKenney	  please understand that you may also need to set the skew_tick
1930af92d46SPaul E. McKenney	  kernel boot parameter to avoid contention on the rcu_node
1940af92d46SPaul E. McKenney	  structure's locks.
1950af92d46SPaul E. McKenney
1960af92d46SPaul E. McKenney	  Take the default if unsure.
1970af92d46SPaul E. McKenney
1980af92d46SPaul E. McKenneyconfig RCU_BOOST
1990af92d46SPaul E. McKenney	bool "Enable RCU priority boosting"
2002341bc4aSSebastian Andrzej Siewior	depends on (RT_MUTEXES && PREEMPT_RCU && RCU_EXPERT) || PREEMPT_RT
2012341bc4aSSebastian Andrzej Siewior	default y if PREEMPT_RT
2020af92d46SPaul E. McKenney	help
2030af92d46SPaul E. McKenney	  This option boosts the priority of preempted RCU readers that
2040af92d46SPaul E. McKenney	  block the current preemptible RCU grace period for too long.
2050af92d46SPaul E. McKenney	  This option also prevents heavy loads from blocking RCU
2068c1cf2daSPaul E. McKenney	  callback invocation.
2070af92d46SPaul E. McKenney
2080af92d46SPaul E. McKenney	  Say Y here if you are working with real-time apps or heavy loads
2090af92d46SPaul E. McKenney	  Say N here if you are unsure.
2100af92d46SPaul E. McKenney
2110af92d46SPaul E. McKenneyconfig RCU_BOOST_DELAY
2120af92d46SPaul E. McKenney	int "Milliseconds to delay boosting after RCU grace-period start"
2130af92d46SPaul E. McKenney	range 0 3000
2140af92d46SPaul E. McKenney	depends on RCU_BOOST
2150af92d46SPaul E. McKenney	default 500
2160af92d46SPaul E. McKenney	help
2170af92d46SPaul E. McKenney	  This option specifies the time to wait after the beginning of
2180af92d46SPaul E. McKenney	  a given grace period before priority-boosting preempted RCU
2190af92d46SPaul E. McKenney	  readers blocking that grace period.  Note that any RCU reader
2200af92d46SPaul E. McKenney	  blocking an expedited RCU grace period is boosted immediately.
2210af92d46SPaul E. McKenney
2220af92d46SPaul E. McKenney	  Accept the default if unsure.
2230af92d46SPaul E. McKenney
2249621fbeeSKalesh Singhconfig RCU_EXP_KTHREAD
2259621fbeeSKalesh Singh	bool "Perform RCU expedited work in a real-time kthread"
2269621fbeeSKalesh Singh	depends on RCU_BOOST && RCU_EXPERT
2279621fbeeSKalesh Singh	default !PREEMPT_RT && NR_CPUS <= 32
2289621fbeeSKalesh Singh	help
2299621fbeeSKalesh Singh	  Use this option to further reduce the latencies of expedited
2309621fbeeSKalesh Singh	  grace periods at the expense of being more disruptive.
2319621fbeeSKalesh Singh
2329621fbeeSKalesh Singh	  This option is disabled by default on PREEMPT_RT=y kernels which
2339621fbeeSKalesh Singh	  disable expedited grace periods after boot by unconditionally
2349621fbeeSKalesh Singh	  setting rcupdate.rcu_normal_after_boot=1.
2359621fbeeSKalesh Singh
2369621fbeeSKalesh Singh	  Accept the default if unsure.
2379621fbeeSKalesh Singh
2380af92d46SPaul E. McKenneyconfig RCU_NOCB_CPU
2390af92d46SPaul E. McKenney	bool "Offload RCU callback processing from boot-selected CPUs"
240b3e627d3SLai Jiangshan	depends on TREE_RCU
2410af92d46SPaul E. McKenney	depends on RCU_EXPERT || NO_HZ_FULL
2420af92d46SPaul E. McKenney	default n
2430af92d46SPaul E. McKenney	help
2440af92d46SPaul E. McKenney	  Use this option to reduce OS jitter for aggressive HPC or
2450af92d46SPaul E. McKenney	  real-time workloads.	It can also be used to offload RCU
2460af92d46SPaul E. McKenney	  callback invocation to energy-efficient CPUs in battery-powered
247a3941517SNeeraj Upadhyay	  asymmetric multiprocessors.  The price of this reduced jitter
248a3941517SNeeraj Upadhyay	  is that the overhead of call_rcu() increases and that some
249a3941517SNeeraj Upadhyay	  workloads will incur significant increases in context-switch
250a3941517SNeeraj Upadhyay	  rates.
2510af92d46SPaul E. McKenney
2528c1cf2daSPaul E. McKenney	  This option offloads callback invocation from the set of CPUs
2538c1cf2daSPaul E. McKenney	  specified at boot time by the rcu_nocbs parameter.  For each
2548c1cf2daSPaul E. McKenney	  such CPU, a kthread ("rcuox/N") will be created to invoke
2558c1cf2daSPaul E. McKenney	  callbacks, where the "N" is the CPU being offloaded, and where
256a3941517SNeeraj Upadhyay	  the "x" is "p" for RCU-preempt (PREEMPTION kernels) and "s" for
257a3941517SNeeraj Upadhyay	  RCU-sched (!PREEMPTION kernels).  Nothing prevents this kthread
258a3941517SNeeraj Upadhyay	  from running on the specified CPUs, but (1) the kthreads may be
259a3941517SNeeraj Upadhyay	  preempted between each callback, and (2) affinity or cgroups can
260a3941517SNeeraj Upadhyay	  be used to force the kthreads to run on whatever set of CPUs is
261a3941517SNeeraj Upadhyay	  desired.
2620af92d46SPaul E. McKenney
263a3941517SNeeraj Upadhyay	  Say Y here if you need reduced OS jitter, despite added overhead.
2640af92d46SPaul E. McKenney	  Say N here if you are unsure.
2650af92d46SPaul E. McKenney
266b37a667cSJoel Fernandesconfig RCU_NOCB_CPU_DEFAULT_ALL
267b37a667cSJoel Fernandes	bool "Offload RCU callback processing from all CPUs by default"
268b37a667cSJoel Fernandes	depends on RCU_NOCB_CPU
269b37a667cSJoel Fernandes	default n
270b37a667cSJoel Fernandes	help
271b37a667cSJoel Fernandes	  Use this option to offload callback processing from all CPUs
272b37a667cSJoel Fernandes	  by default, in the absence of the rcu_nocbs or nohz_full boot
273b37a667cSJoel Fernandes	  parameter. This also avoids the need to use any boot parameters
274b37a667cSJoel Fernandes	  to achieve the effect of offloading all CPUs on boot.
275b37a667cSJoel Fernandes
276b37a667cSJoel Fernandes	  Say Y here if you want offload all CPUs by default on boot.
277b37a667cSJoel Fernandes	  Say N here if you are unsure.
278b37a667cSJoel Fernandes
2798f489b4dSUladzislau Rezki (Sony)config RCU_NOCB_CPU_CB_BOOST
2808f489b4dSUladzislau Rezki (Sony)	bool "Offload RCU callback from real-time kthread"
2818f489b4dSUladzislau Rezki (Sony)	depends on RCU_NOCB_CPU && RCU_BOOST
2828f489b4dSUladzislau Rezki (Sony)	default y if PREEMPT_RT
2838f489b4dSUladzislau Rezki (Sony)	help
2848f489b4dSUladzislau Rezki (Sony)	  Use this option to invoke offloaded callbacks as SCHED_FIFO
2858f489b4dSUladzislau Rezki (Sony)	  to avoid starvation by heavy SCHED_OTHER background load.
2868f489b4dSUladzislau Rezki (Sony)	  Of course, running as SCHED_FIFO during callback floods will
2878f489b4dSUladzislau Rezki (Sony)	  cause the rcuo[ps] kthreads to monopolize the CPU for hundreds
2888f489b4dSUladzislau Rezki (Sony)	  of milliseconds or more.  Therefore, when enabling this option,
2898f489b4dSUladzislau Rezki (Sony)	  it is your responsibility to ensure that latency-sensitive
2908f489b4dSUladzislau Rezki (Sony)	  tasks either run with higher priority or run on some other CPU.
2918f489b4dSUladzislau Rezki (Sony)
2928f489b4dSUladzislau Rezki (Sony)	  Say Y here if you want to set RT priority for offloading kthreads.
2938f489b4dSUladzislau Rezki (Sony)	  Say N here if you are building a !PREEMPT_RT kernel and are unsure.
2948f489b4dSUladzislau Rezki (Sony)
2959ae58d7bSPaul E. McKenneyconfig TASKS_TRACE_RCU_READ_MB
2969ae58d7bSPaul E. McKenney	bool "Tasks Trace RCU readers use memory barriers in user and idle"
29740c1278aSPaul E. McKenney	depends on RCU_EXPERT && TASKS_TRACE_RCU
2989ae58d7bSPaul E. McKenney	default PREEMPT_RT || NR_CPUS < 8
2999ae58d7bSPaul E. McKenney	help
3009ae58d7bSPaul E. McKenney	  Use this option to further reduce the number of IPIs sent
3019ae58d7bSPaul E. McKenney	  to CPUs executing in userspace or idle during tasks trace
3029ae58d7bSPaul E. McKenney	  RCU grace periods.  Given that a reasonable setting of
3039ae58d7bSPaul E. McKenney	  the rcupdate.rcu_task_ipi_delay kernel boot parameter
3049ae58d7bSPaul E. McKenney	  eliminates such IPIs for many workloads, proper setting
3059ae58d7bSPaul E. McKenney	  of this Kconfig option is important mostly for aggressive
3069ae58d7bSPaul E. McKenney	  real-time installations and for battery-powered devices,
3079ae58d7bSPaul E. McKenney	  hence the default chosen above.
3089ae58d7bSPaul E. McKenney
3099ae58d7bSPaul E. McKenney	  Say Y here if you hate IPIs.
3109ae58d7bSPaul E. McKenney	  Say N here if you hate read-side memory barriers.
3119ae58d7bSPaul E. McKenney	  Take the default if you are unsure.
3129ae58d7bSPaul E. McKenney
3133cb278e7SJoel Fernandes (Google)config RCU_LAZY
3143cb278e7SJoel Fernandes (Google)	bool "RCU callback lazy invocation functionality"
3153cb278e7SJoel Fernandes (Google)	depends on RCU_NOCB_CPU
3163cb278e7SJoel Fernandes (Google)	default n
3173cb278e7SJoel Fernandes (Google)	help
3183cb278e7SJoel Fernandes (Google)	  To save power, batch RCU callbacks and flush after delay, memory
3193cb278e7SJoel Fernandes (Google)	  pressure, or callback list growing too big.
3203cb278e7SJoel Fernandes (Google)
3217f66f099SQais Yousef	  Requires rcu_nocbs=all to be set.
3227f66f099SQais Yousef
3237f66f099SQais Yousef	  Use rcutree.enable_rcu_lazy=0 to turn it off at boot time.
3247f66f099SQais Yousef
3257f66f099SQais Yousefconfig RCU_LAZY_DEFAULT_OFF
3267f66f099SQais Yousef	bool "Turn RCU lazy invocation off by default"
3277f66f099SQais Yousef	depends on RCU_LAZY
3287f66f099SQais Yousef	default n
3297f66f099SQais Yousef	help
3307f66f099SQais Yousef	  Allows building the kernel with CONFIG_RCU_LAZY=y yet keep it default
3317f66f099SQais Yousef	  off. Boot time param rcutree.enable_rcu_lazy=1 can be used to switch
3327f66f099SQais Yousef	  it back on.
3337f66f099SQais Yousef
334f51164a8SPaul E. McKenneyconfig RCU_DOUBLE_CHECK_CB_TIME
335f51164a8SPaul E. McKenney	bool "RCU callback-batch backup time check"
336f51164a8SPaul E. McKenney	depends on RCU_EXPERT
337f51164a8SPaul E. McKenney	default n
338f51164a8SPaul E. McKenney	help
339f51164a8SPaul E. McKenney	  Use this option to provide more precise enforcement of the
340f51164a8SPaul E. McKenney	  rcutree.rcu_resched_ns module parameter in situations where
341f51164a8SPaul E. McKenney	  a single RCU callback might run for hundreds of microseconds,
342f51164a8SPaul E. McKenney	  thus defeating the 32-callback batching used to amortize the
343f51164a8SPaul E. McKenney	  cost of the fine-grained but expensive local_clock() function.
344f51164a8SPaul E. McKenney
345f51164a8SPaul E. McKenney	  This option rounds rcutree.rcu_resched_ns up to the next
346f51164a8SPaul E. McKenney	  jiffy, and overrides the 32-callback batching if this limit
347f51164a8SPaul E. McKenney	  is exceeded.
348f51164a8SPaul E. McKenney
349f51164a8SPaul E. McKenney	  Say Y here if you need tighter callback-limit enforcement.
350f51164a8SPaul E. McKenney	  Say N here if you are unsure.
351f51164a8SPaul E. McKenney
3520af92d46SPaul E. McKenneyendmenu # "RCU Subsystem"
353