All of lore.kernel.org
 help / color / mirror / Atom feed
* The tick when exit idle for nohz_full cpu
@ 2015-09-03  1:46 Jiang, Yunhong
  2015-09-11 20:14 ` [HACK] nohz: improve nohz idle hadling in nohz full cores (was Re: The tick when exit idle for nohz_full cpu) Luiz Capitulino
  0 siblings, 1 reply; 2+ messages in thread
From: Jiang, Yunhong @ 2015-09-03  1:46 UTC (permalink / raw)
  To: Frederic Weisbecker; +Cc: LKML

Hi, Frederic
	I noticed currently the tick_nohz_idle_exit() will always restart the sched_tick, even when it's on the nohz_full cpu. I'm not sure if we can keep the sched_tick stopped if it's on a nohz_full_cpu. The sched tick will be enabled on tick_nohz_task_switch() if needed. Is it ok to keep the sched tick off in the scheduling process?

	Something like followed patch (just to show the idea).

Thanks
--jyh

diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
index 3319e16..7519a0f 100644
--- a/kernel/time/tick-sched.c
+++ b/kernel/time/tick-sched.c
@@ -909,8 +909,9 @@ void tick_nohz_idle_exit(void)
                tick_nohz_stop_idle(ts, now);

        if (ts->tick_stopped) {
-               tick_nohz_restart_sched_tick(ts, now);
                tick_nohz_account_idle_ticks(ts);
+               if (!tick_nohz_full_cpu(smp_processor_id()))
+                       tick_nohz_restart_sched_tick(ts, now);
        }
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-09-11 20:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-03  1:46 The tick when exit idle for nohz_full cpu Jiang, Yunhong
2015-09-11 20:14 ` [HACK] nohz: improve nohz idle hadling in nohz full cores (was Re: The tick when exit idle for nohz_full cpu) Luiz Capitulino

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.