Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-09-08 Thread Frederic Weisbecker
On Sun, Sep 08, 2013 at 12:32:50PM +0200, Yann E. MORIN wrote: > Paul, All, > > On 2013-09-07 11:57 -0700, Paul E. McKenney spake thusly: > > On Sat, Sep 07, 2013 at 11:13:48AM +0200, Yann E. MORIN wrote: > [--SNIP--] > > > I'll see if I can come up with a meaningfull construct that fixes your >

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-09-08 Thread Yann E. MORIN
Paul, All, On 2013-09-07 11:57 -0700, Paul E. McKenney spake thusly: > On Sat, Sep 07, 2013 at 11:13:48AM +0200, Yann E. MORIN wrote: [--SNIP--] > > I'll see if I can come up with a meaningfull construct that fixes your > > use-case. Don't hold your breath, though! ;-) > > If not, we need to add

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-09-08 Thread Yann E. MORIN
Paul, All, On 2013-09-07 11:57 -0700, Paul E. McKenney spake thusly: On Sat, Sep 07, 2013 at 11:13:48AM +0200, Yann E. MORIN wrote: [--SNIP--] I'll see if I can come up with a meaningfull construct that fixes your use-case. Don't hold your breath, though! ;-) If not, we need to add

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-09-08 Thread Frederic Weisbecker
On Sun, Sep 08, 2013 at 12:32:50PM +0200, Yann E. MORIN wrote: Paul, All, On 2013-09-07 11:57 -0700, Paul E. McKenney spake thusly: On Sat, Sep 07, 2013 at 11:13:48AM +0200, Yann E. MORIN wrote: [--SNIP--] I'll see if I can come up with a meaningfull construct that fixes your

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-09-07 Thread Paul E. McKenney
On Sat, Sep 07, 2013 at 01:22:57PM +0200, Geert Uytterhoeven wrote: > On Fri, Sep 6, 2013 at 8:50 PM, Geert Uytterhoeven > wrote: > > On Fri, Sep 6, 2013 at 7:30 PM, Paul E. McKenney > > wrote: > >>> Furthermore, it seems only hexagon, metag, mips, and x86 set NR_CPUS to 1 > >>> if !SMP. On

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-09-07 Thread Paul E. McKenney
On Sat, Sep 07, 2013 at 11:13:48AM +0200, Yann E. MORIN wrote: > Paul, All, > > On 2013-09-06 10:30 -0700, Paul E. McKenney spake thusly: > [--SNIP--] > > I also tried using Kconfig "if": > > > > if SMP > > config NR_CPUS_REALLY > > int "Fixed version of NR_CPUS" > > default NR_CPUS > >

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-09-07 Thread Geert Uytterhoeven
On Fri, Sep 6, 2013 at 8:50 PM, Geert Uytterhoeven wrote: > On Fri, Sep 6, 2013 at 7:30 PM, Paul E. McKenney > wrote: >>> Furthermore, it seems only hexagon, metag, mips, and x86 set NR_CPUS to 1 >>> if !SMP. On other architectures, NR_CPUS is not defined and presumed to be >>> 0. >> >> Would

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-09-07 Thread Yann E. MORIN
Paul, All, On 2013-09-06 10:30 -0700, Paul E. McKenney spake thusly: [--SNIP--] > I also tried using Kconfig "if": > > if SMP > config NR_CPUS_REALLY > int "Fixed version of NR_CPUS" > default NR_CPUS > endif > if !SMP > config NR_CPUS_REALLY > int "Fixed version of NR_CPUS" >

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-09-07 Thread Yann E. MORIN
Paul, All, On 2013-09-06 10:30 -0700, Paul E. McKenney spake thusly: [--SNIP--] I also tried using Kconfig if: if SMP config NR_CPUS_REALLY int Fixed version of NR_CPUS default NR_CPUS endif if !SMP config NR_CPUS_REALLY int Fixed version of NR_CPUS default 1

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-09-07 Thread Geert Uytterhoeven
On Fri, Sep 6, 2013 at 8:50 PM, Geert Uytterhoeven ge...@linux-m68k.org wrote: On Fri, Sep 6, 2013 at 7:30 PM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: Furthermore, it seems only hexagon, metag, mips, and x86 set NR_CPUS to 1 if !SMP. On other architectures, NR_CPUS is not defined

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-09-07 Thread Paul E. McKenney
On Sat, Sep 07, 2013 at 11:13:48AM +0200, Yann E. MORIN wrote: Paul, All, On 2013-09-06 10:30 -0700, Paul E. McKenney spake thusly: [--SNIP--] I also tried using Kconfig if: if SMP config NR_CPUS_REALLY int Fixed version of NR_CPUS default NR_CPUS endif if !SMP

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-09-07 Thread Paul E. McKenney
On Sat, Sep 07, 2013 at 01:22:57PM +0200, Geert Uytterhoeven wrote: On Fri, Sep 6, 2013 at 8:50 PM, Geert Uytterhoeven ge...@linux-m68k.org wrote: On Fri, Sep 6, 2013 at 7:30 PM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: Furthermore, it seems only hexagon, metag, mips, and x86

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-09-06 Thread Paul E. McKenney
On Fri, Sep 06, 2013 at 08:50:41PM +0200, Geert Uytterhoeven wrote: > On Fri, Sep 6, 2013 at 7:30 PM, Paul E. McKenney > wrote: > >> Furthermore, it seems only hexagon, metag, mips, and x86 set NR_CPUS to 1 > >> if !SMP. On other architectures, NR_CPUS is not defined and presumed to be > >> 0. >

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-09-06 Thread Geert Uytterhoeven
On Fri, Sep 6, 2013 at 7:30 PM, Paul E. McKenney wrote: >> Furthermore, it seems only hexagon, metag, mips, and x86 set NR_CPUS to 1 >> if !SMP. On other architectures, NR_CPUS is not defined and presumed to be 0. > > Would it make sense to require that NR_CPUS=1 for !SMP? Yes, this looks

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-09-06 Thread Paul E. McKenney
On Fri, Sep 06, 2013 at 10:08:22AM +0200, Geert Uytterhoeven wrote: > On Tue, Aug 20, 2013 at 4:47 AM, Paul E. McKenney > wrote: > > --- a/kernel/time/Kconfig > > +++ b/kernel/time/Kconfig > > @@ -157,6 +157,33 @@ config NO_HZ_FULL_SYSIDLE > > > > Say N if you are unsure. > > > > +config

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-09-06 Thread Geert Uytterhoeven
On Tue, Aug 20, 2013 at 4:47 AM, Paul E. McKenney wrote: > --- a/kernel/time/Kconfig > +++ b/kernel/time/Kconfig > @@ -157,6 +157,33 @@ config NO_HZ_FULL_SYSIDLE > > Say N if you are unsure. > > +config NO_HZ_FULL_SYSIDLE_SMALL > + int "Number of CPUs above which large-system

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-09-06 Thread Geert Uytterhoeven
On Tue, Aug 20, 2013 at 4:47 AM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: --- a/kernel/time/Kconfig +++ b/kernel/time/Kconfig @@ -157,6 +157,33 @@ config NO_HZ_FULL_SYSIDLE Say N if you are unsure. +config NO_HZ_FULL_SYSIDLE_SMALL + int Number of CPUs above which

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-09-06 Thread Paul E. McKenney
On Fri, Sep 06, 2013 at 10:08:22AM +0200, Geert Uytterhoeven wrote: On Tue, Aug 20, 2013 at 4:47 AM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: --- a/kernel/time/Kconfig +++ b/kernel/time/Kconfig @@ -157,6 +157,33 @@ config NO_HZ_FULL_SYSIDLE Say N if you are unsure.

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-09-06 Thread Geert Uytterhoeven
On Fri, Sep 6, 2013 at 7:30 PM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: Furthermore, it seems only hexagon, metag, mips, and x86 set NR_CPUS to 1 if !SMP. On other architectures, NR_CPUS is not defined and presumed to be 0. Would it make sense to require that NR_CPUS=1 for !SMP?

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-09-06 Thread Paul E. McKenney
On Fri, Sep 06, 2013 at 08:50:41PM +0200, Geert Uytterhoeven wrote: On Fri, Sep 6, 2013 at 7:30 PM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: Furthermore, it seems only hexagon, metag, mips, and x86 set NR_CPUS to 1 if !SMP. On other architectures, NR_CPUS is not defined and

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-08-31 Thread Paul E. McKenney
On Tue, Aug 27, 2013 at 11:41:44AM +0800, Lai Jiangshan wrote: > On 08/27/2013 12:24 AM, Paul E. McKenney wrote: > > On Mon, Aug 26, 2013 at 01:45:32PM +0800, Lai Jiangshan wrote: > >> On 08/20/2013 10:47 AM, Paul E. McKenney wrote: > >>> From: "Paul E. McKenney" > >>> > >>> This commit adds the

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-08-31 Thread Paul E. McKenney
On Tue, Aug 27, 2013 at 11:41:44AM +0800, Lai Jiangshan wrote: On 08/27/2013 12:24 AM, Paul E. McKenney wrote: On Mon, Aug 26, 2013 at 01:45:32PM +0800, Lai Jiangshan wrote: On 08/20/2013 10:47 AM, Paul E. McKenney wrote: From: Paul E. McKenney paul...@linux.vnet.ibm.com This commit

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-08-26 Thread Lai Jiangshan
On 08/27/2013 12:24 AM, Paul E. McKenney wrote: > On Mon, Aug 26, 2013 at 01:45:32PM +0800, Lai Jiangshan wrote: >> On 08/20/2013 10:47 AM, Paul E. McKenney wrote: >>> From: "Paul E. McKenney" >>> >>> This commit adds the state machine that takes the per-CPU idle data >>> as input and produces a

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-08-26 Thread Paul E. McKenney
On Mon, Aug 26, 2013 at 01:45:32PM +0800, Lai Jiangshan wrote: > On 08/20/2013 10:47 AM, Paul E. McKenney wrote: > > From: "Paul E. McKenney" > > > > This commit adds the state machine that takes the per-CPU idle data > > as input and produces a full-system-idle indication as output. This > >

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-08-26 Thread Paul E. McKenney
On Mon, Aug 26, 2013 at 01:45:32PM +0800, Lai Jiangshan wrote: On 08/20/2013 10:47 AM, Paul E. McKenney wrote: From: Paul E. McKenney paul...@linux.vnet.ibm.com This commit adds the state machine that takes the per-CPU idle data as input and produces a full-system-idle indication as

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-08-26 Thread Lai Jiangshan
On 08/27/2013 12:24 AM, Paul E. McKenney wrote: On Mon, Aug 26, 2013 at 01:45:32PM +0800, Lai Jiangshan wrote: On 08/20/2013 10:47 AM, Paul E. McKenney wrote: From: Paul E. McKenney paul...@linux.vnet.ibm.com This commit adds the state machine that takes the per-CPU idle data as input and

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-08-25 Thread Lai Jiangshan
On 08/20/2013 10:47 AM, Paul E. McKenney wrote: > From: "Paul E. McKenney" > > This commit adds the state machine that takes the per-CPU idle data > as input and produces a full-system-idle indication as output. This > state machine is driven out of RCU's quiescent-state-forcing > mechanism,

Re: [PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-08-25 Thread Lai Jiangshan
On 08/20/2013 10:47 AM, Paul E. McKenney wrote: From: Paul E. McKenney paul...@linux.vnet.ibm.com This commit adds the state machine that takes the per-CPU idle data as input and produces a full-system-idle indication as output. This state machine is driven out of RCU's

[PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-08-19 Thread Paul E. McKenney
From: "Paul E. McKenney" This commit adds the state machine that takes the per-CPU idle data as input and produces a full-system-idle indication as output. This state machine is driven out of RCU's quiescent-state-forcing mechanism, which invokes rcu_sysidle_check_cpu() to collect per-CPU idle

[PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-08-19 Thread Paul E. McKenney
From: Paul E. McKenney paul...@linux.vnet.ibm.com This commit adds the state machine that takes the per-CPU idle data as input and produces a full-system-idle indication as output. This state machine is driven out of RCU's quiescent-state-forcing mechanism, which invokes rcu_sysidle_check_cpu()

[PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-08-17 Thread Paul E. McKenney
From: "Paul E. McKenney" This commit adds the state machine that takes the per-CPU idle data as input and produces a full-system-idle indication as output. This state machine is driven out of RCU's quiescent-state-forcing mechanism, which invokes rcu_sysidle_check_cpu() to collect per-CPU idle

[PATCH tip/core/rcu 8/9] nohz_full: Add full-system-idle state machine

2013-08-17 Thread Paul E. McKenney
From: Paul E. McKenney paul...@linux.vnet.ibm.com This commit adds the state machine that takes the per-CPU idle data as input and produces a full-system-idle indication as output. This state machine is driven out of RCU's quiescent-state-forcing mechanism, which invokes rcu_sysidle_check_cpu()