Paul,
I really appreaciate your reply -- thanks! I've done some more testing in
the meantime:
On Sun, Apr 04, 2010 at 01:47:25PM -0700, Paul E. McKenney wrote:
Will the remaining callbacks be executed immediately afterwards (due to a
need_resched() etc.), or only after the next tick?
Applied the patch by Lai Jiangshan, and tested 5 and 8:
5: Wakeups-from-idle: 33.4 (hrtimer_sched_timer: 78 %)
34% of calls to tick_nohz_stop_sched_tick fail due to
rcu_needs_cpu()
8: Wakeups-from-idle: 36.5 (hrtimer_sched_timer: 83 %)
37% of calls to tick_nohz_stop_sched_tick fail due to
rcu_needs_cpu()
tick_nohz_stop_sched_tick() doesn't fail in this case because of
rcu_needs_cpu(). However, the improvements are hardly recognizable:
TINY_RCU: Wakeups-from-idle: 33.9 (hrtimer_sched_timer: 53 %)
... just for testing how NOHZ works on UP systems ;)
Best,
Dominik
--