RCU Debugging
CONFIG_PROVE_RCU
CONFIG_PROVE_RCU_LIST RCU list lockdep debugging
Enable RCU lockdep checking for list usages. By default it is turned off since there are several list RCU users that still need to be converted to pass a lockdep expression. To prevent false-positive splats, we keep it default disabled but once all users are converted, we can remove this config option.
- Depends on
PROVE_RCU && RCU_EXPERT
CONFIG_TORTURE_TEST
- Off
- Module
- Built in
CONFIG_RCU_SCALE_TEST performance tests for RCU
- Off
- Module
- Built in
This option provides a kernel module that runs performance tests on the RCU infrastructure. The kernel module may be built after the fact on the running kernel to be tested, if desired.
Say Y here if you want RCU performance tests to be built into the kernel. Say M if you want the RCU performance tests to build as a module. Say N if you are unsure.
- Depends on
DEBUG_KERNEL - Selects
TORTURE_TEST if DEBUG_KERNEL
CONFIG_RCU_TORTURE_TEST torture tests for RCU
- Off
- Module
- Built in
This option provides a kernel module that runs torture tests on the RCU infrastructure. The kernel module may be built after the fact on the running kernel to be tested, if desired.
Say Y here if you want RCU torture tests to be built into the kernel. Say M if you want the RCU torture tests to build as a module. Say N if you are unsure.
- Depends on
DEBUG_KERNEL - Selects
TORTURE_TEST if DEBUG_KERNEL
If RCU_TORTURE_TEST
CONFIG_RCU_TORTURE_TEST_CHK_RDR_STATE Check rcutorture reader state
This option causes rcutorture to check the desired rcutorture reader state for each segment against the actual context. Note that PREEMPT_COUNT must be enabled if the preempt-disabled and bh-disabled checks are to take effect, and that PREEMPT_RCU must be enabled for the RCU-nesting checks to take effect. These checks add overhead, and this Kconfig options is therefore disabled by default.
Say Y here if you want rcutorture reader contexts checked. Say N if you are unsure.
CONFIG_RCU_TORTURE_TEST_LOG_CPU Log CPU for rcutorture failures
This option causes rcutorture to decorate each entry of its log of failure/close-call rcutorture reader segments with the number of the CPU that the reader was running on at the time. This information can be useful, but it does incur additional overhead, overhead that can make both failures and close calls less probable.
Say Y here if you want CPU IDs logged. Say N if you are unsure.
CONFIG_RCU_TORTURE_TEST_LOG_GP Log grace-period numbers for rcutorture failures
This option causes rcutorture to decorate each entry of its log of failure/close-call rcutorture reader segments with the corresponding grace-period sequence numbers. This information can be useful, but it does incur additional overhead, overhead that can make both failures and close calls less probable.
Say Y here if you want grace-period sequence numbers logged. Say N if you are unsure.
CONFIG_RCU_REF_SCALE_TEST Scalability tests for read-side synchronization (RCU and others)
- Off
- Module
- Built in
This option provides a kernel module that runs performance tests useful comparing RCU with various read-side synchronization mechanisms. The kernel module may be built after the fact on the running kernel to be tested, if desired.
Say Y here if you want these performance tests built into the kernel. Say M if you want to build it as a module instead. Say N if you are unsure.
- Depends on
DEBUG_KERNEL - Selects
TORTURE_TEST if DEBUG_KERNEL
CONFIG_RCU_CPU_STALL_TIMEOUT RCU CPU stall timeout in seconds
If a given RCU grace period extends more than the specified number of seconds, a CPU stall warning is printed. If the RCU grace period persists, additional CPU stall warnings are printed at more widely spaced intervals.
- Depends on
RCU_STALL_COMMON - Range
[3 300] if RCU_STALL_COMMON
CONFIG_RCU_EXP_CPU_STALL_TIMEOUT Expedited RCU CPU stall timeout in milliseconds
If a given expedited RCU grace period extends more than the specified number of milliseconds, a CPU stall warning is printed. If the RCU grace period persists, additional CPU stall warnings are printed at more widely spaced intervals. A value of zero says to use the RCU_CPU_STALL_TIMEOUT value converted from seconds to milliseconds.
- Depends on
RCU_STALL_COMMON - Range
[0 300000] if RCU_STALL_COMMON
CONFIG_RCU_CPU_STALL_CPUTIME Provide additional RCU stall debug information
Collect statistics during the sampling period, such as the number of (hard interrupts, soft interrupts, task switches) and the cputime of (hard interrupts, soft interrupts, kernel tasks) are added to the RCU stall report. For multiple continuous RCU stalls, all sampling periods begin at half of the first RCU stall timeout. The boot option rcupdate.rcu_cpu_stall_cputime has the same function as this one, but will override this if it exists.
- Depends on
RCU_STALL_COMMON
CONFIG_RCU_CPU_STALL_NOTIFIER Provide RCU CPU-stall notifiers
WARNING: You almost certainly do not want this!!!
Enable RCU CPU-stall notifiers, which are invoked just before printing the RCU CPU stall warning. As such, bugs in notifier callbacks can prevent stall warnings from being printed. And the whole reason that a stall warning is being printed is that something is hung up somewhere. Therefore, the notifier callbacks must be written extremely carefully, preferably containing only lockless code. After all, it is quite possible that the whole reason that the RCU CPU stall is happening in the first place is that someone forgot to release whatever lock that you are thinking of acquiring. In which case, having your notifier callback acquire that lock will hang, preventing the RCU CPU stall warning from appearing.
Say Y here if you want RCU CPU stall notifiers (you don't want them) Say N if you are unsure.
- Depends on
RCU_STALL_COMMON && DEBUG_KERNEL && RCU_EXPERT
CONFIG_RCU_TRACE Enable tracing for RCU
This option enables additional tracepoints for ftrace-style event tracing.
Say Y here if you want to enable RCU tracing Say N if you are unsure.
- Depends on
DEBUG_KERNEL - Selects
TRACE_CLOCK if DEBUG_KERNEL
CONFIG_RCU_EQS_DEBUG Provide debugging asserts for adding NO_HZ support to an arch
This option provides consistency checks in RCU's handling of NO_HZ. These checks have proven quite helpful in detecting bugs in arch-specific NO_HZ code.
Say N here if you need ultimate kernel/user switch latencies Say Y if you are unsure
- Depends on
DEBUG_KERNEL
CONFIG_RCU_STRICT_GRACE_PERIOD Provide debug RCU implementation with short grace periods
Select this option to build an RCU variant that is strict about grace periods, making them as short as it can. This limits scalability, destroys real-time response, degrades battery lifetime and kills performance. Don't try this on large machines, as in systems with more than about 10 or 20 CPUs. But in conjunction with tools like KASAN, it can be helpful when looking for certain types of RCU usage bugs, for example, too-short RCU read-side critical sections.
- Depends on
DEBUG_KERNEL && RCU_EXPERT && <=4 && !TINY_RCU - Selects
PREEMPT_COUNT if DEBUG_KERNEL && RCU_EXPERT && <=4 && !TINY_RCU && !PREEMPT
CONFIG_RCU_DYNTICKS_TORTURE Minimize RCU dynticks counter size
This option sets the width of the dynticks counter to its minimum usable value. This minimum width greatly increases the probability of flushing out bugs involving counter wrap, but it also increases the probability of extending grace period durations. This Kconfig option should therefore be avoided in production due to the consequent increased probability of OOMs.
This has no value for production and is only for testing.
- Depends on
RCU_EXPERT && !COMPILE_TEST
CONFIG_TRIVIAL_PREEMPT_RCU Textbook trivial preemptible RCU in rcutorture
This option enables a textbook preemptible RCU that is implemented in rcutorture. Its sole purpose is to validate code used in books, papers, and presentations.
This has no value for production and is only for testing.
- Depends on
RCU_EXPERT && RCU_TORTURE_TEST
- arch/alpha/Kconfig:484
- arch/arc/Kconfig:175
- arch/arm/Kconfig:1063
- arch/arm64/Kconfig:1702
- arch/csky/Kconfig:318
- arch/hexagon/Kconfig:109
- arch/loongarch/Kconfig:542
- arch/m68k/Kconfig.cpu:552
- arch/microblaze/Kconfig:123
- arch/mips/Kconfig:2756
- arch/nios2/Kconfig:72
- arch/openrisc/Kconfig:185
- arch/parisc/Kconfig:367
- arch/powerpc/platforms/Kconfig.cputype:570
- arch/riscv/Kconfig:450
- arch/s390/Kconfig:533
- arch/sh/Kconfig:582
- arch/sparc/Kconfig:180
- arch/um/Kconfig:132
- arch/x86/Kconfig:1037
- arch/xtensa/Kconfig:253