From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org,
niv@us.ibm.com, dvhltc@us.ibm.com
Subject: Re: [PATCH fyi] RCU: the bloatwatch edition
Date: Wed, 14 Jan 2009 08:00:48 -0800 [thread overview]
Message-ID: <20090114160048.GA6734@linux.vnet.ibm.com> (raw)
In-Reply-To: <20090114104055.GD2913@elte.hu>
On Wed, Jan 14, 2009 at 11:40:55AM +0100, Ingo Molnar wrote:
>
> * Paul E. McKenney <paulmck@linux.vnet.ibm.com> wrote:
>
> > Just FYI, not for inclusion.
> >
> > This patch is a version of RCU designed for !CONFIG_SMP provided as a
> > proof of concept of a small-footprint RCU implementation. In
> > particular, the implementation of synchronize_rcu() is extremely
> > lightweight and high performance. It passes moderate rcutorture testing
> > in each of the four relevant configurations (combinations of NO_HZ and
> > PREEMPT) on x86.
> >
> > Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
>
> maybe it could be included - dependent on PREEMPT, just like we have SLOB?
I suppose that the fact that it already depends on !SMP should keep
it hidden from most people, and it does work just fine for !PREEMPT.
My concern is rather that if no one is using it, the code will bitrot
rather quickly. None of us needs a broken RCU implementation in mainline,
least of all me. ;-)
> it would also be rather educative IMO: if someone wants to understand the
> core concepts of RCU, start with kernel/rcutiny.c. We are getting
> complaints from academic institutions that the Linux kernel is getting too
> complex to teach in courses - and that's a pity.
Yeah, I have had to refer a number of institutions to various LWN
articles. I think that it is safe to say that LWN is not on every
university's normal reading list. ;-) One (surprisingly prominent)
institution that -does- read LWN unfortunately chose "The design
of preemptible read-copy-update" to introduce themselves to RCU
(http://lwn.net/Articles/253651/), and, needless to say, found it
tough going. I offered my sympathies and pointed them at the "What is
RCU?" LWN series.
So it might well be good to have simplified implementations for academic
study and perhaps also for deep embedded use. Sort of like the approach
for designing video games -- easy first level, second level is a bit
harder, and so on.
Thanx, Paul
next prev parent reply other threads:[~2009-01-14 16:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-13 22:17 [PATCH fyi] RCU: the bloatwatch edition Paul E. McKenney
2009-01-14 10:40 ` Ingo Molnar
2009-01-14 16:00 ` Paul E. McKenney [this message]
2009-01-14 19:10 ` Ingo Molnar
2009-01-14 20:20 ` Paul E. McKenney
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=20090114160048.GA6734@linux.vnet.ibm.com \
--to=paulmck@linux.vnet.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=dvhltc@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=niv@us.ibm.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