Re: [RFC] Imprecise timers.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Venki Pallipadi
Date: Tuesday, August 12, 2008 - 11:11 am

On Tue, Aug 12, 2008 at 05:00:31AM -0700, Pavel Machek wrote:

I would say this will be the wrong usage of deadline, atleast with the
two timer and no round off implementation.

For this example, it will probably be better to use round_jiffies to round the
timer to second level and make it go in sync with all other round timers on
this CPU, rather than setting two timers with hard timer not in sync with
other timers on the CPU.

- if there are other timers (rounded or otherwise) on this CPU that goes off
between 5-10 seconds, we are paying penalty for setting up and removing one
extra timer with no obvious benefit.
- if there are no other timers on this CPU, that goes off between 5-10 seconds,
timer after 10 seconds will not be in sync with other potential round timers
on this CPU that may go off between 10-11 seconds, causing one extra wakeup
and again the overhead of setting up and removing one extra timer.

Instead a rounded timer after 5 seconds still ensures atleast 1s idle time on
the CPU without the overhead.

There can be many users who really don't care about the deadline or can happliy
use rounded timers or deferrable timers. Say garbage collectors, cache_reap
and friends, ondemand governor, vga cursor blinking comes to my mind.

Thanks,
Venki


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] Imprecise timers., David Woodhouse, (Mon Jul 21, 8:02 pm)
[RFC] schedule_timeout_range(), David Woodhouse, (Mon Jul 21, 8:05 pm)
Re: [RFC] schedule_timeout_range(), Nick Piggin, (Mon Jul 21, 8:56 pm)
Re: [RFC] schedule_timeout_range(), David Woodhouse, (Mon Jul 21, 9:12 pm)
Re: [RFC] schedule_timeout_range(), Arjan van de Ven, (Mon Jul 21, 9:26 pm)
Re: [RFC] schedule_timeout_range(), Arjan van de Ven, (Mon Jul 21, 9:33 pm)
Re: [RFC] schedule_timeout_range(), Nick Piggin, (Mon Jul 21, 9:33 pm)
Re: [RFC] schedule_timeout_range(), David Woodhouse, (Mon Jul 21, 9:34 pm)
Re: [RFC] schedule_timeout_range(), David Woodhouse, (Mon Jul 21, 9:45 pm)
Re: [RFC] schedule_timeout_range(), Nick Piggin, (Mon Jul 21, 9:50 pm)
Re: [RFC] schedule_timeout_range(), David Woodhouse, (Mon Jul 21, 9:58 pm)
Re: [RFC] schedule_timeout_range(), Jan Engelhardt, (Mon Jul 21, 10:35 pm)
Re: [RFC] Imprecise timers., Rene Herman, (Tue Jul 22, 12:19 am)
Re: [RFC] Imprecise timers., Arjan van de Ven, (Tue Jul 22, 5:54 am)
Re: [RFC] Imprecise timers., Rene Herman, (Tue Jul 22, 7:04 am)
RE: [RFC] Imprecise timers., Pallipadi, Venkatesh, (Mon Jul 28, 5:36 pm)
Re: [RFC] Imprecise timers., Pavel Machek, (Sat Aug 9, 5:54 am)
Re: [RFC] Imprecise timers., Venki Pallipadi, (Mon Aug 11, 10:35 am)
Re: [RFC] Imprecise timers., Pavel Machek, (Tue Aug 12, 5:00 am)
Re: [RFC] Imprecise timers., Venki Pallipadi, (Tue Aug 12, 11:11 am)
Re: [RFC] Imprecise timers., Alan Cox, (Tue Aug 12, 2:55 pm)
Re: [RFC] Imprecise timers., Pavel Machek, (Tue Aug 12, 2:58 pm)