Skip to content

Commit 676c3dc

Browse files
committed
rcu: Apply Dave Jones's NOCB Kconfig help feedback
The Kconfig help text for the RCU_NOCB_CPU_NONE, RCU_NOCB_CPU_ZERO, and RCU_NOCB_CPU_ALL Kconfig options was unclear, so this commit adds a bit more detail. Reported-by: Dave Jones <davej@redhat.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
1 parent 4982969 commit 676c3dc

1 file changed

Lines changed: 25 additions & 9 deletions

File tree

‎init/Kconfig‎

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -682,35 +682,51 @@ choice
682682
prompt "Build-forced no-CBs CPUs"
683683
default RCU_NOCB_CPU_NONE
684684
help
685-
This option allows no-CBs CPUs to be specified at build time.
686-
Additional no-CBs CPUs may be specified by the rcu_nocbs=
687-
boot parameter.
685+
This option allows no-CBs CPUs (whose RCU callbacks are invoked
686+
from kthreads rather than from softirq context) to be specified
687+
at build time. Additional no-CBs CPUs may be specified by
688+
the rcu_nocbs= boot parameter.
688689

689690
config RCU_NOCB_CPU_NONE
690691
bool "No build_forced no-CBs CPUs"
691692
depends on RCU_NOCB_CPU && !NO_HZ_FULL
692693
help
693694
This option does not force any of the CPUs to be no-CBs CPUs.
694695
Only CPUs designated by the rcu_nocbs= boot parameter will be
695-
no-CBs CPUs.
696+
no-CBs CPUs, whose RCU callbacks will be invoked by per-CPU
697+
kthreads whose names begin with "rcuo". All other CPUs will
698+
invoke their own RCU callbacks in softirq context.
699+
700+
Select this option if you want to choose no-CBs CPUs at
701+
boot time, for example, to allow testing of different no-CBs
702+
configurations without having to rebuild the kernel each time.
696703

697704
config RCU_NOCB_CPU_ZERO
698705
bool "CPU 0 is a build_forced no-CBs CPU"
699706
depends on RCU_NOCB_CPU && !NO_HZ_FULL
700707
help
701-
This option forces CPU 0 to be a no-CBs CPU. Additional CPUs
702-
may be designated as no-CBs CPUs using the rcu_nocbs= boot
703-
parameter will be no-CBs CPUs.
708+
This option forces CPU 0 to be a no-CBs CPU, so that its RCU
709+
callbacks are invoked by a per-CPU kthread whose name begins
710+
with "rcuo". Additional CPUs may be designated as no-CBs
711+
CPUs using the rcu_nocbs= boot parameter will be no-CBs CPUs.
712+
All other CPUs will invoke their own RCU callbacks in softirq
713+
context.
704714

705715
Select this if CPU 0 needs to be a no-CBs CPU for real-time
706-
or energy-efficiency reasons.
716+
or energy-efficiency reasons, but the real reason it exists
717+
is to ensure that randconfig testing covers mixed systems.
707718

708719
config RCU_NOCB_CPU_ALL
709720
bool "All CPUs are build_forced no-CBs CPUs"
710721
depends on RCU_NOCB_CPU
711722
help
712723
This option forces all CPUs to be no-CBs CPUs. The rcu_nocbs=
713-
boot parameter will be ignored.
724+
boot parameter will be ignored. All CPUs' RCU callbacks will
725+
be executed in the context of per-CPU rcuo kthreads created for
726+
this purpose. Assuming that the kthreads whose names start with
727+
"rcuo" are bound to "housekeeping" CPUs, this reduces OS jitter
728+
on the remaining CPUs, but might decrease memory locality during
729+
RCU-callback invocation, thus potentially degrading throughput.
714730

715731
Select this if all CPUs need to be no-CBs CPUs for real-time
716732
or energy-efficiency reasons.

0 commit comments

Comments
 (0)