public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: David Mosberger <davidm@napali.hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [PATCH] fix "timer tick before it's due"
Date: Thu, 13 May 2004 20:33:25 +0000	[thread overview]
Message-ID: <16547.56213.92894.494545@napali.hpl.hp.com> (raw)
In-Reply-To: <200405121721.30863.bjorn.helgaas@hp.com>

>>>>> On Thu, 13 May 2004 13:02:42 -0600, Bjorn Helgaas <bjorn.helgaas@hp.com> said:

  Bjorn> Isn't the real problem the fact that the printk in timer_interrupt()
  Bjorn> takes a large fraction of a tick?  If we just eliminate the printk,
  Bjorn> that problem goes away, and then we'd just have to make sure we
  Bjorn> aren't syncing the ITC too far backwards.

I think it may really be necessary to distinguish between "I'm a new
CPU, tell me what to set the ITC to" and "my CPU's may haved drifted,
let me resync".  The big difference is that in the latter case, you
may have pending timers which you'd have to preserve in some fashion
(the timer tick itself is just a special case, all scheduled timers
would have to be preserved).  The way to do that would be with an
NTP-like protocol, where you move to the target value in a gradual
fashion.  That would be fairly complicated and quite different from
what's there now.

IMHO, it makes sense to limit the syncing code to the former case for
the time being (there hasn't been a real need for the latter).  Now,
the printk() does take a lot of time.  I think it would be a mistake
to remove it entirely, because it does catch important classes of
bugs.  It may make sense to rate-limit it though, so the printk itself
doesn't (persistently) make the situation worse in and of itself.

	--david

  parent reply	other threads:[~2004-05-13 20:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-12 23:21 [PATCH] fix "timer tick before it's due" Bjorn Helgaas
2004-05-12 23:42 ` David Mosberger
2004-05-13 19:02 ` Bjorn Helgaas
2004-05-13 20:33 ` David Mosberger [this message]
2004-05-13 21:25 ` Bjorn Helgaas
2004-05-13 22:36 ` David Mosberger

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=16547.56213.92894.494545@napali.hpl.hp.com \
    --to=davidm@napali.hpl.hp.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox