Re: [RFC] timer_interrupt: Avoid device timeouts by freezing time if system froze

From: David Mosberger-Tang <>
Date: 2005-09-20 06:16:21
> That depends on the time source and the tuning factor. I guestimate
> it will take about an hour to compensate for 60 seconds. The compensation
> is not linear but should be almost logarithmic since the interpolator will
> detune further if the time difference is greater.

That seems rather slow to me.  Of course, you don't want to catch up
by more than the smallest timeout that you'd like to avoid triggering.
 By that logic, it should be almost guaranteed to be save to account
for 2 ticks per timer interrupt.  That way, it would only take 30 sec
to correct from a 60 sec stand-still.  My gut feeling is that you
could be much more aggressive (e.g., 8 ticks/interrupt) but it might
be a good idea to experiment with this a bit, to get a feel for how
sensitive things really are.  If you wanted to be super-safe, you
could account an extra tick only every other interrupt (i.e., 1.5
ticks/interrupt on average), since timeouts have a rounding-error of
1/2 tick anyhow.

Mosberger Consulting LLC, voice/fax: 510-744-9372,
35706 Runckel Lane, Fremont, CA 94536
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Tue Sep 20 06:17:00 2005

This archive was generated by hypermail 2.1.8 : 2005-09-20 06:17:08 EST