mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: linux-kernel@vger.kernel.org, vegard.nossum@gmail.com,
	stable@kernel.org, akpm@linux-foundation.org, npiggin@suse.de,
	penberg@cs.helsinki.fi
Subject: Re: [PATCH] v4 Teach RCU that idle task is not quiscent state at boot
Date: Thu, 26 Feb 2009 04:09:33 +0100	[thread overview]
Message-ID: <20090226030933.GD7526@elte.hu> (raw)
In-Reply-To: <20090225170825.GC6797@linux.vnet.ibm.com>


* Paul E. McKenney <paulmck@linux.vnet.ibm.com> wrote:

> OK, alternatives...
> 
> o	Reverse the roles of the idle and init threads during startup,
> 	so that there is initially no idle thread.
> 
> 	However, there appears to be a fair amount of code that assumes
> 	that there is always an idle thread.
> 
> o	As above, but create both the init and idle threads early so
> 	that there always is an idle thread that happens not to be
> 	running during boot.
> 
> 	This would work, but seems to me to be uglier than the flag.
> 
> o	Stop using idle_cpu() in rcu_check_callbacks(), instead keeping
> 	a per-CPU "cpu_is_idle" variable that is set upon entry to the
> 	various idle() loops and cleared upon exit.  It would be OK to
> 	take interrupts while "cpu_is_idle" is set.
> 
> 	The disadvantage here is that there are quite a few idle loops,
> 	and it would be necessary to change them all.  Missing one or
> 	two could result in indefinite grace periods on the affected
> 	systems.
> 
> o	Drop idle as a quiescent state, as is already the case for
> 	rcupreempt.
> 
> 	This would result in indefinite grace-period delays for
> 	rcuclassic, but would actually work for rcutree.  Except that
> 	it would cause rcutree to IPI each and every idle CPU for
> 	every grace period if !CONFIG_NO_HZ.  I expect that this
> 	overhead would far exceed that of the extra flag check in
> 	rcu_check_callbacks().
> 
> So I still like the flag check.  Any alternatives that I am missing?

Indeed none of the alternatives looks particularly appealing, so 
i concur. Thanks Paul for analyzing it so thoroughly!

	Ingo

  reply	other threads:[~2009-02-26  3:09 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-23 16:16 [PATCH] " Paul E. McKenney
2009-02-23 17:13 ` Ingo Molnar
2009-02-23 20:43 ` [PATCH] v2 " Paul E. McKenney
2009-02-24  4:02   ` Nick Piggin
2009-02-24  5:08     ` Paul E. McKenney
2009-02-24 14:50       ` Paul E. McKenney
2009-02-25  0:29   ` [PATCH] v3 " Paul E. McKenney
2009-02-25  4:12     ` Nick Piggin
2009-02-25  4:43       ` Paul E. McKenney
2009-02-25 14:19     ` [PATCH] v4 " Paul E. McKenney
2009-02-25 16:00       ` Ingo Molnar
2009-02-25 16:26         ` Nick Piggin
2009-02-25 17:12           ` Paul E. McKenney
2009-02-25 17:18             ` Nick Piggin
2009-02-25 17:36               ` Paul E. McKenney
2009-02-25 17:08         ` Paul E. McKenney
2009-02-26  3:09           ` Ingo Molnar [this message]
2009-02-25 18:38       ` Vegard Nossum
2009-02-25 19:01         ` Paul E. McKenney
2009-02-26  2:03       ` [PATCH] v5 " Paul E. McKenney
2009-02-26  3:08         ` Ingo Molnar

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=20090226030933.GD7526@elte.hu \
    --to=mingo@elte.hu \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=npiggin@suse.de \
    --cc=paulmck@linux.vnet.ibm.com \
    --cc=penberg@cs.helsinki.fi \
    --cc=stable@kernel.org \
    --cc=vegard.nossum@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

Powered by JetHome