Re: [PATCH tip/core/rcu 07/23] rcu: Provide OOM handler to motivate lazy RCU callbacks

2012-09-06 Thread Paul E. McKenney
On Thu, Sep 06, 2012 at 07:46:16PM +0200, Peter Zijlstra wrote: > On Thu, 2012-09-06 at 10:41 -0700, Paul E. McKenney wrote: > > On Thu, Sep 06, 2012 at 09:52:53AM -0400, Steven Rostedt wrote: > > > On Thu, 2012-09-06 at 15:46 +0200, Peter Zijlstra wrote: > > > > On Thu, 2012-08-30 at 11:18 -0700,

Re: [PATCH tip/core/rcu 07/23] rcu: Provide OOM handler to motivate lazy RCU callbacks

2012-09-06 Thread Peter Zijlstra
On Thu, 2012-09-06 at 10:41 -0700, Paul E. McKenney wrote: > On Thu, Sep 06, 2012 at 09:52:53AM -0400, Steven Rostedt wrote: > > On Thu, 2012-09-06 at 15:46 +0200, Peter Zijlstra wrote: > > > On Thu, 2012-08-30 at 11:18 -0700, Paul E. McKenney wrote: > > > > + get_online_cpus(); > > > > +

Re: [PATCH tip/core/rcu 07/23] rcu: Provide OOM handler to motivate lazy RCU callbacks

2012-09-06 Thread Paul E. McKenney
On Thu, Sep 06, 2012 at 09:52:53AM -0400, Steven Rostedt wrote: > On Thu, 2012-09-06 at 15:46 +0200, Peter Zijlstra wrote: > > On Thu, 2012-08-30 at 11:18 -0700, Paul E. McKenney wrote: > > > + get_online_cpus(); > > > + for_each_online_cpu(cpu) > > > + for_each_rcu_flavor

Re: [PATCH tip/core/rcu 07/23] rcu: Provide OOM handler to motivate lazy RCU callbacks

2012-09-06 Thread Steven Rostedt
On Thu, 2012-09-06 at 15:46 +0200, Peter Zijlstra wrote: > On Thu, 2012-08-30 at 11:18 -0700, Paul E. McKenney wrote: > > + get_online_cpus(); > > + for_each_online_cpu(cpu) > > + for_each_rcu_flavor(rsp) > > + smp_call_function_single(cpu, rcu_oom_no

Re: [PATCH tip/core/rcu 07/23] rcu: Provide OOM handler to motivate lazy RCU callbacks

2012-09-06 Thread Peter Zijlstra
On Thu, 2012-08-30 at 11:18 -0700, Paul E. McKenney wrote: > + get_online_cpus(); > + for_each_online_cpu(cpu) > + for_each_rcu_flavor(rsp) > + smp_call_function_single(cpu, rcu_oom_notify_cpu, > +rsp, 1

Re: [PATCH tip/core/rcu 07/23] rcu: Provide OOM handler to motivate lazy RCU callbacks

2012-09-05 Thread Paul E. McKenney
On Mon, Sep 03, 2012 at 05:08:24PM +0800, Lai Jiangshan wrote: > On 08/31/2012 02:18 AM, Paul E. McKenney wrote: > > From: "Paul E. McKenney" > > > > In kernels built with CONFIG_RCU_FAST_NO_HZ=y, CPUs can accumulate a > > large number of lazy callbacks, which as the name implies will be slow > >

Re: [PATCH tip/core/rcu 07/23] rcu: Provide OOM handler to motivate lazy RCU callbacks

2012-09-03 Thread Lai Jiangshan
On 08/31/2012 02:18 AM, Paul E. McKenney wrote: > From: "Paul E. McKenney" > > In kernels built with CONFIG_RCU_FAST_NO_HZ=y, CPUs can accumulate a > large number of lazy callbacks, which as the name implies will be slow > to be invoked. This can be a problem on small-memory systems, where the >

Re: [PATCH tip/core/rcu 07/23] rcu: Provide OOM handler to motivate lazy RCU callbacks

2012-09-01 Thread Josh Triplett
On Thu, Aug 30, 2012 at 11:18:22AM -0700, Paul E. McKenney wrote: > From: "Paul E. McKenney" > > In kernels built with CONFIG_RCU_FAST_NO_HZ=y, CPUs can accumulate a > large number of lazy callbacks, which as the name implies will be slow > to be invoked. This can be a problem on small-memory sy

[PATCH tip/core/rcu 07/23] rcu: Provide OOM handler to motivate lazy RCU callbacks

2012-08-30 Thread Paul E. McKenney
From: "Paul E. McKenney" In kernels built with CONFIG_RCU_FAST_NO_HZ=y, CPUs can accumulate a large number of lazy callbacks, which as the name implies will be slow to be invoked. This can be a problem on small-memory systems, where the default 6-second sleep for CPUs having only lazy RCU callba