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

From: David Mosberger-Tang <>
Date: 2005-09-20 08:12:23
On 9/19/05, Luck, Tony <> wrote:
> I don't think that I've followed all the steps and proposed
> solutions in this thread.  There are (at least) two issues to
> try to solve when the system has been frozen for an extended
> period of time (more than a few ticks):
> 1) The system clock (gettimeofday(2)) needs to catch up the
> missed time.  We can either do this in one mighty bound, or
> we can creep up on it.  Either is plausible (though each may
> have its own issues for applications, neither should be
> catastrophic as applications should already deal with jumping
> and slewing time due to NTP and other agents setting the
> system clock).
> 2) There are some pending timeouts from the interval of real
> time that we skipped.  Dealing with these may be harder, as
> some of them may be related to physical limitations of devices,
> so almost any choice we make about these (call all the pending
> timeouts immediately, call them at some accelerated rate, skip
> them) may cause problems for some device driver.  I think to
> make any progress on a solution here we need to restrict the
> discussion to real device drivers that are currently in the
> tree.  Otherwise we will rathole forever discussing theoretical
> situations.
> Any other issues?

Sounds about right to me.  The point I was making is that issue (2) is
largely due to the "priority-inversion" that you're getting when
letting time catch up in one big jump: even driver actions that
completed successfully will appear to have failed because the timeout
handler is run long before the completion action that would have
disarmed the timer.  Now, there are other failures that you cannot
hide that way (e.g., an input buffer might overrun on a device), but
there is really nothing you can do about that when you halt the system
for such long periods (and I don't think it's a point of contention


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 08:12:59 2005

This archive was generated by hypermail 2.1.8 : 2005-09-20 08:13:05 EST