Re: [Xen-devel] [PATCH 3/3] xen: RCU: make the period of the idle timer adaptive.

2017-09-26 Thread Dario Faggioli
On Tue, 2017-09-26 at 09:24 -0600, Jan Beulich wrote: > > > > On 15.09.17 at 20:01, wrote: > > @@ -495,8 +507,18 @@ void rcu_idle_timer_stop() > >   > >  static void rcu_idle_timer_handler(void* data) > >  { > > -/* Nothing, really... Just count the number of times

Re: [Xen-devel] [PATCH 3/3] xen: RCU: make the period of the idle timer adaptive.

2017-09-26 Thread Jan Beulich
>>> On 15.09.17 at 20:01, wrote: > @@ -495,8 +507,18 @@ void rcu_idle_timer_stop() > > static void rcu_idle_timer_handler(void* data) > { > -/* Nothing, really... Just count the number of times we fire */ > perfc_incr(rcu_idle_timer); > + > +if (

[Xen-devel] [PATCH 3/3] xen: RCU: make the period of the idle timer adaptive.

2017-09-15 Thread Dario Faggioli
Basically, if the RCU idle timer, when (if!) it fires, finds that the grace period isn't over, we increase the timer's period (i.e., it will fire later, next time). If, OTOH, it finds the grace period is already finished, we decrease the timer's period (i.e., it will fire a bit earlier next time).