public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Is it ok for deferrable timer wakeup the idle cpu?
@ 2014-01-22 11:32 Lei Wen
  2014-01-22 14:07 ` Thomas Gleixner
  0 siblings, 1 reply; 16+ messages in thread
From: Lei Wen @ 2014-01-22 11:32 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: linux-kernel, Viresh Kumar

Hi Thomas,

Recently I want to do the experiment for cpu isolation over 3.10 kernel.
But I find the isolated one is periodically waken up by IPI interrupt.

By checking the trace, I find those IPI is generated by add_timer_on,
which would calls wake_up_nohz_cpu, and wake up the already idle cpu.

With further checking, I find this timer is added by on_demand governor of
cpufreq. It would periodically check each cores' state.
The problem I see here is cpufreq_governor using INIT_DEFERRABLE_WORK
as the tool, while timer is made as deferrable anyway.
And what is more that cpufreq checking is very frequent. In my case, the
isolated cpu is wakenup by IPI every 5ms.

So why kernel need to wake the remote processor when mount the deferrable
timer? As per my understanding, we'd better keep cpu as idle when use
the deferrable timer.

Thanks,
Lei

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

end of thread, other threads:[~2014-02-26 20:08 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-22 11:32 Is it ok for deferrable timer wakeup the idle cpu? Lei Wen
2014-01-22 14:07 ` Thomas Gleixner
2014-01-23  5:41   ` Lei Wen
2014-01-23  5:52     ` Viresh Kumar
2014-01-23 13:35       ` Frederic Weisbecker
2014-01-23 14:20         ` Viresh Kumar
2014-01-28 13:50           ` Frederic Weisbecker
2014-02-03  6:51             ` Viresh Kumar
2014-02-10 15:35               ` Frederic Weisbecker
2014-01-29  5:27       ` Preeti Murthy
2014-01-31 16:30         ` Frederic Weisbecker
2014-02-02 16:00           ` Preeti U Murthy
2014-02-03  8:19         ` Viresh Kumar
2014-02-12 15:06       ` Frederic Weisbecker
2014-02-13  5:20         ` Viresh Kumar
2014-02-26 20:07       ` [tip:timers/core] timer: Spare IPI when deferrable timer is queued on idle remote targets tip-bot for Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox