From: john stultz <johnstul@us.ibm.com>
To: Bjorn Helgaas <bhelgaas@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
linux-serial@vger.kernel.org, Alan Cox <alan@linux.intel.com>
Subject: Re: /proc/stat btime accuracy problem
Date: Wed, 01 Jun 2011 17:49:05 -0700 [thread overview]
Message-ID: <1306975745.11492.30.camel@work-vm> (raw)
In-Reply-To: <BANLkTimuPrqN1euyOqAGm2m4Ea1PdbrzDQ@mail.gmail.com>
On Wed, 2011-06-01 at 18:31 -0600, Bjorn Helgaas wrote:
> On Wed, Jun 1, 2011 at 5:58 PM, john stultz <johnstul@us.ibm.com> wrote:
> > My first instinct is "don't do that!" to whatever driver is disabling
> > irqs for so long. Do you know what's actually causing these long irq off
> > periods?
> >
> > I assume you're noticing this offset by seeing that CLOCK_REALTIME is
> > off from the RTC right after boot? How severe is this? The RTC read is
> > only second granular, so there's a fair amount of error (~1 second)
> > possible right at boot, so this then must be many seconds worth of lost
> > ticks to be noticeable, right?
>
> I'm using 2.6.34, so not really new. I think the major offender is
> kernel serial printk, which is done in polled mode. A *lot* of it,
> e.g., 30+ seconds' worth.
CC'ing the linux-serial list and Alan for their thoughts: Does the
serial port is disabling irqs for 30+ seconds during boot seem at all
sane?
I would think it would periodically enable irqs in the polling loop to
let things be processed, but maybe not?
> I wonder if there's some reasonably clean
> way to resync with the RTC, say at the time we register a clocksource
> better than jiffies, or in clocksource_done_booting(), or something.
I definitely think we need to address the long irq disable periods
instead of trying to hack around the issue in the timekeeping code.
thanks
-john
next prev parent reply other threads:[~2011-06-02 0:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-01 20:50 /proc/stat btime accuracy problem Bjorn Helgaas
2011-06-01 22:35 ` john stultz
2011-06-01 23:35 ` Bjorn Helgaas
2011-06-01 23:58 ` john stultz
2011-06-02 0:31 ` Bjorn Helgaas
2011-06-02 0:49 ` john stultz [this message]
2011-06-02 6:34 ` Bjorn Helgaas
2011-06-07 5:20 ` Bjorn Helgaas
2011-06-07 17:50 ` john stultz
2011-06-08 1:03 ` john stultz
2011-06-08 4:16 ` Bjorn Helgaas
2011-06-08 4:16 ` Bjorn Helgaas
2011-06-02 10:00 ` Alan Cox
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=1306975745.11492.30.camel@work-vm \
--to=johnstul@us.ibm.com \
--cc=alan@linux.intel.com \
--cc=bhelgaas@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=tglx@linutronix.de \
/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.