linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PREEMPT_RT with Full Tickless
@ 2015-12-11 11:29 GeHao Kang
  2015-12-11 14:36 ` Mike Galbraith
  0 siblings, 1 reply; 5+ messages in thread
From: GeHao Kang @ 2015-12-11 11:29 UTC (permalink / raw)
  To: tglx, peterz, jason.low2; +Cc: linux-rt-users, Mike Galbraith

Hi Thomas, Peter, and Jason,

When I enable CONFIG_PREEMPT_RT_FULL and CONFIG_NO_HZ_FULL
in Linux Kernel v4.1.12-rt12, I find the tick on the nohz_full cpu never stops.

Whenever the nohz_full cpu wants to stop its tick, it would use
get_next_timer_interrupt() to get the time of next timer and check
whether this time  is more than one jiffy after current time.
However, get_next_timer_interrupt() always returns now+1 in PREEMPT_RT
and this cpu has no chance of stopping its tick.  Please reference
kernel/time/timer.c: get_next_timer_interrupt().

#ifdef CONFIG_PREEMPT_RT_FULL
        /*
         * On PREEMPT_RT we cannot sleep here. As a result we can't take
         * the base lock to check when the next timer is pending and so
         * we assume the next jiffy.
         */
        return now + 1;
#endif

Does this mean it is a restriction on the current development of PREEMPT_RT?

Thanks,
- Kang

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

end of thread, other threads:[~2015-12-13  4:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-11 11:29 PREEMPT_RT with Full Tickless GeHao Kang
2015-12-11 14:36 ` Mike Galbraith
2015-12-11 17:50   ` Sebastian Andrzej Siewior
2015-12-12 20:11     ` Gary Robertson
2015-12-13  4:19       ` Mike Galbraith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).