* RCU Kconfig help text
@ 2009-09-05 13:27 Valdis.Kletnieks
2009-09-05 20:01 ` Paul E. McKenney
0 siblings, 1 reply; 5+ messages in thread
From: Valdis.Kletnieks @ 2009-09-05 13:27 UTC (permalink / raw)
To: Paul E. McKenney, Andrew Morton; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1227 bytes --]
init/Kconfig says:
"choice
prompt "RCU Implementation"
default TREE_RCU
config TREE_RCU
bool "Tree-based hierarchical RCU"
help
This option selects the RCU implementation that is
designed for very large SMP system with hundreds or
thousands of CPUs. It also scales down nicely to
smaller systems.
config TREE_PREEMPT_RCU
bool "Preemptable tree-based hierarchical RCU"
depends on PREEMPT
help
This option selects the RCU implementation that is
designed for very large SMP systems with hundreds or
thousands of CPUs, but for which real-time response
is also required.
endchoice"
This leaves somebody who has a laptop wondering which choice is best for
a system with only one or two cores that has CONFIG_PREEMPT defined. One
choice says it scales down nicely, the other explicitly has a 'depends on
PREEMPT' attached to it...
(Yes, I realize in practice, the RCU sections on a laptop are probably usually
so short they don't matter in practice. I finally concluded TREE_PREEMPT was
apparently a rename of CONFIG_PREEMPT_RCU and went with that since that was
working for me before...)
[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: RCU Kconfig help text
2009-09-05 13:27 RCU Kconfig help text Valdis.Kletnieks
@ 2009-09-05 20:01 ` Paul E. McKenney
2009-09-06 6:24 ` Pavel Machek
0 siblings, 1 reply; 5+ messages in thread
From: Paul E. McKenney @ 2009-09-05 20:01 UTC (permalink / raw)
To: Valdis.Kletnieks; +Cc: Andrew Morton, linux-kernel
On Sat, Sep 05, 2009 at 09:27:10AM -0400, Valdis.Kletnieks@vt.edu wrote:
> init/Kconfig says:
>
> "choice
> prompt "RCU Implementation"
> default TREE_RCU
>
> config TREE_RCU
> bool "Tree-based hierarchical RCU"
> help
> This option selects the RCU implementation that is
> designed for very large SMP system with hundreds or
> thousands of CPUs. It also scales down nicely to
> smaller systems.
>
> config TREE_PREEMPT_RCU
> bool "Preemptable tree-based hierarchical RCU"
> depends on PREEMPT
> help
> This option selects the RCU implementation that is
> designed for very large SMP systems with hundreds or
> thousands of CPUs, but for which real-time response
> is also required.
>
> endchoice"
>
> This leaves somebody who has a laptop wondering which choice is best for
> a system with only one or two cores that has CONFIG_PREEMPT defined. One
> choice says it scales down nicely, the other explicitly has a 'depends on
> PREEMPT' attached to it...
>
> (Yes, I realize in practice, the RCU sections on a laptop are probably usually
> so short they don't matter in practice. I finally concluded TREE_PREEMPT was
> apparently a rename of CONFIG_PREEMPT_RCU and went with that since that was
> working for me before...)
Good point -- I will add the "It also scales down nicely to smaller
systems" to TREE_PREEMPT_RCU.
For -really- small systems, TINY_RCU will hopefully be there at some
point, but it can only handle single-CPU systems.
Thanx, Paul
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RCU Kconfig help text
2009-09-05 20:01 ` Paul E. McKenney
@ 2009-09-06 6:24 ` Pavel Machek
2009-09-06 6:39 ` Paul E. McKenney
0 siblings, 1 reply; 5+ messages in thread
From: Pavel Machek @ 2009-09-06 6:24 UTC (permalink / raw)
To: Paul E. McKenney; +Cc: Valdis.Kletnieks, Andrew Morton, linux-kernel
On Sat 2009-09-05 13:01:46, Paul E. McKenney wrote:
> On Sat, Sep 05, 2009 at 09:27:10AM -0400, Valdis.Kletnieks@vt.edu wrote:
> > init/Kconfig says:
> >
> > "choice
> > prompt "RCU Implementation"
> > default TREE_RCU
> >
> > config TREE_RCU
> > bool "Tree-based hierarchical RCU"
> > help
> > This option selects the RCU implementation that is
> > designed for very large SMP system with hundreds or
> > thousands of CPUs. It also scales down nicely to
> > smaller systems.
> >
> > config TREE_PREEMPT_RCU
> > bool "Preemptable tree-based hierarchical RCU"
> > depends on PREEMPT
> > help
> > This option selects the RCU implementation that is
> > designed for very large SMP systems with hundreds or
> > thousands of CPUs, but for which real-time response
> > is also required.
> >
> > endchoice"
> >
> > This leaves somebody who has a laptop wondering which choice is best for
> > a system with only one or two cores that has CONFIG_PREEMPT defined. One
> > choice says it scales down nicely, the other explicitly has a 'depends on
> > PREEMPT' attached to it...
> >
> > (Yes, I realize in practice, the RCU sections on a laptop are probably usually
> > so short they don't matter in practice. I finally concluded TREE_PREEMPT was
> > apparently a rename of CONFIG_PREEMPT_RCU and went with that since that was
> > working for me before...)
>
> Good point -- I will add the "It also scales down nicely to smaller
> systems" to TREE_PREEMPT_RCU.
>
> For -really- small systems, TINY_RCU will hopefully be there at some
> point, but it can only handle single-CPU systems.
If so, call it 'UP_RCU' or 'UNIPROCESSOR_RCU'?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RCU Kconfig help text
2009-09-06 6:24 ` Pavel Machek
@ 2009-09-06 6:39 ` Paul E. McKenney
2009-09-06 20:07 ` Pavel Machek
0 siblings, 1 reply; 5+ messages in thread
From: Paul E. McKenney @ 2009-09-06 6:39 UTC (permalink / raw)
To: Pavel Machek; +Cc: Valdis.Kletnieks, Andrew Morton, linux-kernel
On Sun, Sep 06, 2009 at 08:24:41AM +0200, Pavel Machek wrote:
> On Sat 2009-09-05 13:01:46, Paul E. McKenney wrote:
> > On Sat, Sep 05, 2009 at 09:27:10AM -0400, Valdis.Kletnieks@vt.edu wrote:
> > > init/Kconfig says:
> > >
> > > "choice
> > > prompt "RCU Implementation"
> > > default TREE_RCU
> > >
> > > config TREE_RCU
> > > bool "Tree-based hierarchical RCU"
> > > help
> > > This option selects the RCU implementation that is
> > > designed for very large SMP system with hundreds or
> > > thousands of CPUs. It also scales down nicely to
> > > smaller systems.
> > >
> > > config TREE_PREEMPT_RCU
> > > bool "Preemptable tree-based hierarchical RCU"
> > > depends on PREEMPT
> > > help
> > > This option selects the RCU implementation that is
> > > designed for very large SMP systems with hundreds or
> > > thousands of CPUs, but for which real-time response
> > > is also required.
> > >
> > > endchoice"
> > >
> > > This leaves somebody who has a laptop wondering which choice is best for
> > > a system with only one or two cores that has CONFIG_PREEMPT defined. One
> > > choice says it scales down nicely, the other explicitly has a 'depends on
> > > PREEMPT' attached to it...
> > >
> > > (Yes, I realize in practice, the RCU sections on a laptop are probably usually
> > > so short they don't matter in practice. I finally concluded TREE_PREEMPT was
> > > apparently a rename of CONFIG_PREEMPT_RCU and went with that since that was
> > > working for me before...)
> >
> > Good point -- I will add the "It also scales down nicely to smaller
> > systems" to TREE_PREEMPT_RCU.
> >
> > For -really- small systems, TINY_RCU will hopefully be there at some
> > point, but it can only handle single-CPU systems.
>
> If so, call it 'UP_RCU' or 'UNIPROCESSOR_RCU'?
"UP_RCU". Cute!!! ;-)
My hope is to drive the RCU selection directly from CONFIG_SMP and
CONFIG_PREEMPT, so that the choice of RCU would be implicit (aside from
things like tracing and fanout).
Seem reasonable, or would you expect anyone to want to hand-select
the RCU implementation?
Thanx, Paul
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RCU Kconfig help text
2009-09-06 6:39 ` Paul E. McKenney
@ 2009-09-06 20:07 ` Pavel Machek
0 siblings, 0 replies; 5+ messages in thread
From: Pavel Machek @ 2009-09-06 20:07 UTC (permalink / raw)
To: Paul E. McKenney; +Cc: Valdis.Kletnieks, Andrew Morton, linux-kernel
> > > > This leaves somebody who has a laptop wondering which choice is best for
> > > > a system with only one or two cores that has CONFIG_PREEMPT defined. One
> > > > choice says it scales down nicely, the other explicitly has a 'depends on
> > > > PREEMPT' attached to it...
> > > >
> > > > (Yes, I realize in practice, the RCU sections on a laptop are probably usually
> > > > so short they don't matter in practice. I finally concluded TREE_PREEMPT was
> > > > apparently a rename of CONFIG_PREEMPT_RCU and went with that since that was
> > > > working for me before...)
> > >
> > > Good point -- I will add the "It also scales down nicely to smaller
> > > systems" to TREE_PREEMPT_RCU.
> > >
> > > For -really- small systems, TINY_RCU will hopefully be there at some
> > > point, but it can only handle single-CPU systems.
> >
> > If so, call it 'UP_RCU' or 'UNIPROCESSOR_RCU'?
>
> "UP_RCU". Cute!!! ;-)
>
> My hope is to drive the RCU selection directly from CONFIG_SMP and
> CONFIG_PREEMPT, so that the choice of RCU would be implicit (aside from
> things like tracing and fanout).
>
> Seem reasonable, or would you expect anyone to want to hand-select
> the RCU implementation?
Seems reasonable.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-09-06 20:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-05 13:27 RCU Kconfig help text Valdis.Kletnieks
2009-09-05 20:01 ` Paul E. McKenney
2009-09-06 6:24 ` Pavel Machek
2009-09-06 6:39 ` Paul E. McKenney
2009-09-06 20:07 ` Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox