From: Joel Fernandes <joel@joelfernandes.org>
To: Frederic Weisbecker <frederic@kernel.org>
Cc: "Paul E. McKenney" <paulmck@kernel.org>,
Uladzislau Rezki <urezki@gmail.com>,
"Zhuo, Qiuxu" <qiuxu.zhuo@intel.com>,
linux-kernel@vger.kernel.org,
Lai Jiangshan <jiangshanlai@gmail.com>,
linux-doc@vger.kernel.org, rcu@vger.kernel.org
Subject: Re: [PATCH RFC v2] rcu: Add a minimum time for marking boot as completed
Date: Tue, 28 Feb 2023 01:30:25 +0000 [thread overview]
Message-ID: <Y/1ZMXsNZtwYPJNW@google.com> (raw)
In-Reply-To: <Y/0/dnmIk508sidK@lothringen>
On Tue, Feb 28, 2023 at 12:40:38AM +0100, Frederic Weisbecker wrote:
> On Mon, Feb 27, 2023 at 03:05:02PM -0800, Paul E. McKenney wrote:
> > On Mon, Feb 27, 2023 at 02:10:30PM -0500, Joel Fernandes wrote:
> >
> > The combination of sysfs manipulated by userspace and a kernel failsafe
> > makes sense to me. Especially if by default triggering the failsafe
> > splats. That way, bugs where userspace fails to update the sysfs file
> > get caught.
> >
> > The non-default silent-failsafe mode is also useful to allow some power
> > savings in advance of userspace getting the sysfs updating in place.
> > And of course the default splatting setup can be used in internal testing
> > with the release software being more tolerant of userspace foibles.
>
> I'm wondering, this is all about CONFIG_RCU_LAZY, right? Or does also expedited
> GP turned off a bit early or late on boot matter for anybody in practice?
Yes, if you provide 'rcu_normal_after_boot', then after the boot ends, it
switches expedited GPs to normal ones.
It is the same issue for expedited, the kernel's version of what is 'boot' is
much shorter than what is actually boot.
This is also the case with suspend/resume's rcu_pm_notify(). See the comment:
/*
* On non-huge systems, use expedited RCU grace periods to make suspend
* and hibernation run faster.
*/
There also we turn on/off both lazy and expedited. I don't see why we
shouldn't do it for boot.
> So shouldn't we disable lazy callbacks by default when CONFIG_RCU_LAZY=y and then
> turn it on with "sysctl kernel.rcu.lazy=1" only whenever userspace feels ready
> about it? We can still keep the current call to rcu_end_inkernel_boot().
Hmm IMHO that would add more knobs for not much reason honestly. We already
have CONFIG_RCU_LAZY default disabled, I really don't want to add more
dependency (like user enables the config and does not see laziness).
Thanks!
- Joel
next prev parent reply other threads:[~2023-02-28 1:30 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-25 3:34 [PATCH RFC v2] rcu: Add a minimum time for marking boot as completed Joel Fernandes (Google)
2023-02-25 3:36 ` Randy Dunlap
2023-02-26 19:45 ` Frederic Weisbecker
2023-02-26 23:07 ` Joel Fernandes
2023-02-27 7:53 ` Zhuo, Qiuxu
2023-02-27 13:22 ` Joel Fernandes
2023-02-27 14:55 ` Paul E. McKenney
2023-02-27 15:16 ` Joel Fernandes
2023-02-27 18:06 ` Uladzislau Rezki
2023-02-27 18:15 ` Joel Fernandes
2023-02-27 18:20 ` Uladzislau Rezki
2023-02-27 18:27 ` Joel Fernandes
2023-02-27 18:57 ` Uladzislau Rezki
2023-02-27 19:10 ` Joel Fernandes
2023-02-27 23:05 ` Paul E. McKenney
2023-02-27 23:24 ` Joel Fernandes
2023-02-27 23:40 ` Frederic Weisbecker
2023-02-28 1:30 ` Joel Fernandes [this message]
2023-02-28 11:04 ` Frederic Weisbecker
2023-02-28 20:09 ` Joel Fernandes
2023-03-01 17:11 ` Frederic Weisbecker
2023-03-01 21:31 ` Joel Fernandes
2023-03-02 0:49 ` Paul E. McKenney
2023-03-02 1:08 ` Joel Fernandes
2023-03-02 1:19 ` Paul E. McKenney
2023-02-28 11:42 ` Uladzislau Rezki
2023-02-28 6:40 ` Zhuo, Qiuxu
2023-02-28 14:27 ` Joel Fernandes
2023-03-01 1:34 ` Zhuo, Qiuxu
2023-03-01 15:57 ` Joel Fernandes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y/1ZMXsNZtwYPJNW@google.com \
--to=joel@joelfernandes.org \
--cc=frederic@kernel.org \
--cc=jiangshanlai@gmail.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paulmck@kernel.org \
--cc=qiuxu.zhuo@intel.com \
--cc=rcu@vger.kernel.org \
--cc=urezki@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).