RCU: make the period of the idle timer adaptive
authorDario Faggioli <dario.faggioli@citrix.com>
Mon, 9 Oct 2017 11:24:01 +0000 (13:24 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 9 Oct 2017 11:24:01 +0000 (13:24 +0200)
commit4cb6b5799ff7569af406faec3b1225e554c6f47c
tree624f3daf0480d59f9365ab0f748e1b4fd530d7ad
parent2ae2b1d09acb5795715fa6ab233cdc2be435ba80
RCU: make the period of the idle timer adaptive

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).

The goal is to let the period timer sefl-adjust to a
number of 'misses', of the order of 1%.

Suggested-by: George Dunlap <george.dunlap@citrix.com>
Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/rcupdate.c