From: David Mosberger-Tang <David.Mosberger@acm.org>
To: linux-ia64@vger.kernel.org
Subject: Re: [RFC] timer_interrupt: Avoid device timeouts by freezing time if system froze
Date: Fri, 09 Sep 2005 23:18:03 +0000 [thread overview]
Message-ID: <ed5aea43050909161822104760@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.62.0509091501240.12956@schroedinger.engr.sgi.com>
I see your point about non-interrupt sources but the idea can be
generalized: rather than letting time catch up in a single huge jump,
do it gradually. Say for every timer tick, you advance by one extra
tick. I _think_ that could work well in practice.
--david
On 9/9/05, Christoph Lameter <clameter@engr.sgi.com> wrote:
> On Fri, 9 Sep 2005, David Mosberger-Tang wrote:
>
> > I also would be nervous about the proposed patch.
>
> Yes, I am also a bit concerned but there seems to be no other
> good solution.
>
> > I'm wondering: could the problem be avoided perhaps by running all
> > other pending (lower-priority) interrupts first when you detect a
> > large jump in elapsed time? In other words, when you detect a jump
> > from time T1 to T2 with (T2-T1) greater than some threshold, you make
> > sure you run all pending interrupts while still at time T1 and only
> > after that is done you let time catch up to T2.
>
> I think we are not talking about hardware interupts. Those can happen
> anytime and given the system was frozen for an extended time period
> likely have already completed before the timer interrupt happens for
> the first time after the system begins to unfreeze.
>
> I think the main issue are drivers events. These are dependent on jiffies
> (which may be checked by drivers in a varity of ways) or are timer events
> (which also may expect jiffies to have a certain value).
>
--
Mosberger Consulting LLC, voice/fax: 510-744-9372,
http://www.mosberger-consulting.com/
35706 Runckel Lane, Fremont, CA 94536
next prev parent reply other threads:[~2005-09-09 23:18 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-09 22:02 [RFC] timer_interrupt: Avoid device timeouts by freezing time if Christoph Lameter
2005-09-09 22:10 ` [RFC] timer_interrupt: Avoid device timeouts by freezing time if system froze Magenheimer, Dan (HP Labs Fort Collins)
2005-09-09 22:33 ` David Mosberger-Tang
2005-09-09 22:36 ` Luck, Tony
2005-09-09 23:13 ` [RFC] timer_interrupt: Avoid device timeouts by freezing time Christoph Lameter
2005-09-09 23:18 ` David Mosberger-Tang [this message]
2005-09-09 23:19 ` [RFC] timer_interrupt: Avoid device timeouts by freezing time if system froze Magenheimer, Dan (HP Labs Fort Collins)
2005-09-11 17:04 ` Magenheimer, Dan (HP Labs Fort Collins)
2005-09-12 16:27 ` Tian, Kevin
2005-09-12 16:42 ` Tian, Kevin
2005-09-19 18:04 ` [RFC] timer_interrupt: Avoid device timeouts by freezing time Christoph Lameter
2005-09-19 18:10 ` [RFC] timer_interrupt: Avoid device timeouts by freezing time if system froze David Mosberger-Tang
2005-09-19 18:23 ` [RFC] timer_interrupt: Avoid device timeouts by freezing time Christoph Lameter
2005-09-19 19:06 ` [RFC] timer_interrupt: Avoid device timeouts by freezing time if system froze Luck, Tony
2005-09-19 19:21 ` [RFC] timer_interrupt: Avoid device timeouts by freezing time Christoph Lameter
2005-09-19 20:16 ` [RFC] timer_interrupt: Avoid device timeouts by freezing time if system froze David Mosberger-Tang
2005-09-19 21:26 ` [RFC] timer_interrupt: Avoid device timeouts by freezing time Christoph Lameter
2005-09-19 21:32 ` [RFC] timer_interrupt: Avoid device timeouts by freezing time if system froze David Mosberger-Tang
2005-09-19 21:38 ` [RFC] timer_interrupt: Avoid device timeouts by freezing time Christoph Lameter
2005-09-19 22:03 ` [RFC] timer_interrupt: Avoid device timeouts by freezing time if system froze Luck, Tony
2005-09-19 22:12 ` David Mosberger-Tang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ed5aea43050909161822104760@mail.gmail.com \
--to=david.mosberger@acm.org \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.