Re: [PATCH] rcu: Provide a boot time parameter to enable lazy RCU

From: Qais Yousef
Date: Thu Nov 23 2023 - 08:23:07 EST


On 11/23/23 07:28, Andrea Righi wrote:
> On Tue, Nov 21, 2023 at 08:53:04PM +0000, Qais Yousef wrote:
> > To allow more flexible opt-in arrangements while still provide a single
> > kernel for distros, provide a boot time parameter to enable lazy RCU.
> >
> > Specify:
> >
> > rcutree.enable_rcu_lazy
> >
> > Which also requires
> >
> > rcu_nocbs=all
> >
> > at boot time to enable lazy RCU assuming CONFIG_RCU_LAZY=y. The
> > parameter will be ignored if CONFIG_RCU_LAZY is not set.
> >
> > With this change now lazy RCU is disabled by default if the boot
> > parameter is not set even when CONFIG_RCU_LAZY is enabled.
>
> I'm wondering if we should make this enabled by default if
> CONFIG_RCU_LAZY=y, so we don't break the previous behavior, and those
> who want it disabled (despite having CONFIG_RCU_LAZY=y in their .config)
> can add rcutree.enable_rcu_lazy=0 to the boot options.
>
> Thanks for working on this!

Sure, thanks for having a look!

Cheers

--
Qais Yousef