From: john stultz <johnstul@us.ibm.com>
To: Venkatesh Pallipadi <venki@google.com>
Cc: jean-philippe francois <jp.francois@cynove.com>,
Lin Ming <lin@ming.vg>, "H. Peter Anvin" <hpa@zytor.com>,
linux-acpi@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
jslaby@suse.cz
Subject: Re: System time drifts when processor idle.
Date: Fri, 27 Aug 2010 18:09:01 -0700 [thread overview]
Message-ID: <1282957741.1946.27.camel@work-vm> (raw)
In-Reply-To: <AANLkTi=8MXx9L0+V-JqXoO5PCWq5EPRW9fqpr913OTyC@mail.gmail.com>
On Fri, 2010-08-27 at 17:10 -0700, Venkatesh Pallipadi wrote:
> On Fri, Aug 27, 2010 at 11:11 AM, john stultz <johnstul@us.ibm.com> wrote:
> > On Fri, 2010-08-27 at 16:12 +0200, jean-philippe francois wrote:
> >> My Timekeeping bug is still present, here is an updated script and log.
> >> I am willing to make test, but I don't know what kind of debugging
> >> info is needed.
> >>
> >> cat /sys/devices/system/clocksource/clocksource0/available_clocksource
> >> hpet acpi_pm
> >> cat /sys/devices/system/clocksource/clocksource0/current_clocksource
> >> hpet
> >
> > Huh. hpet was not what I would have expected.
> >
> >
> > So first, two experiments:
> >
> > 1) Does booting with "clock=acpi_pm" cause the issue to disappear?
> >
> > 2) Does booting with "nohz=off" cause the issue to disappear?
> >
> >
> > Venkatesh: You have any experience with HPETs that halt in idle?
> >
>
> No. Haven't seen anything like this before with HPET.
>
> The jump was
>
> system | hardware(RTC)
> 15:48:43 | ven. 27 août 2010 15:48:44 CEST -0.985908 secondes
> 15:49:04 | ven. 27 août 2010 15:54:04 CEST -0.032800 secondes
>
> We lost ~300 seconds and from dmesg
> hpet0: 3 comparators, 64-bit 14.318180 MHz counter
>
> Which is close to 2^32 HPET ticks. So, looks like we have some 32 bit
> wraparound somewhere..
Huh. So you're thinking the timer tick scheduler is pushing way past the
HPET wrap length, and then we're missing an accumulation point and
things wrap under us?
We have some code to try to limit the nohz length to avoid hardware
wrapping, but honestly I'd be surprised if the system is actually that
idle for that long (no timers firing for 5 minutes? that'd be really
impressive!).
jean-philippe: Is the drift always in 5 minute increments? Can you leave
it idle for 3 minutes and see a similar 3 minute delay, or is it always
in units of 5 ?
thanks
-john
next prev parent reply other threads:[~2010-08-28 1:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AANLkTi=ivkOHRYwLy5FDg3RnK18+opjGd9XsxC7yZqi7@mail.gmail.com>
2010-08-21 3:58 ` System time drifts when processor idle Lin Ming
2010-08-23 8:46 ` jean-philippe francois
2010-08-23 22:17 ` john stultz
2010-08-24 7:08 ` jean-philippe francois
2010-08-27 14:12 ` jean-philippe francois
2010-08-27 18:11 ` john stultz
2010-08-28 0:10 ` Venkatesh Pallipadi
2010-08-28 1:09 ` john stultz [this message]
2010-08-28 12:45 ` jean-philippe francois
2010-08-28 15:19 ` Venkatesh Pallipadi
2010-09-02 11:45 ` jean-philippe francois
2010-08-30 8:03 ` jean-philippe francois
2010-09-03 12:23 ` jean-philippe francois
2010-09-09 17:42 ` john stultz
2010-09-13 13:04 ` jean-philippe francois
2010-12-06 12:55 ` jean-philippe francois
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=1282957741.1946.27.camel@work-vm \
--to=johnstul@us.ibm.com \
--cc=hpa@zytor.com \
--cc=jp.francois@cynove.com \
--cc=jslaby@suse.cz \
--cc=lin@ming.vg \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=venki@google.com \
/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