[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTi=2aqSrczTLerfvkkF_yZkyYZ29Bb=exrq8EecX@mail.gmail.com>
Date: Sat, 28 Aug 2010 08:19:19 -0700
From: Venkatesh Pallipadi <venki@...gle.com>
To: jean-philippe francois <jp.francois@...ove.com>
Cc: john stultz <johnstul@...ibm.com>, Lin Ming <lin@...g.vg>,
"H. Peter Anvin" <hpa@...or.com>, linux-acpi@...r.kernel.org,
LKML <linux-kernel@...r.kernel.org>, jslaby@...e.cz
Subject: Re: System time drifts when processor idle.
On Sat, Aug 28, 2010 at 5:45 AM, jean-philippe francois
<jp.francois@...ove.com> wrote:
> 2010/8/28 john stultz <johnstul@...ibm.com>:
>
>>> > 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?
>>> >
>
> Yes, the problem usually show up quite quickly, and I think I have let
> my script run
> for a long enough time to say it does not occur with clock=acpi_pm
>
>>> > 2) Does booting with "nohz=off" cause the issue to disappear?
>>> >
> Not tested yet.
>
>>
>> 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 ?
>>
> That is interesting !
> I think I have always seen 5 minutes or multiples of this delay. I
> will try to leave it running for a longer
> period of time and come back to you with more results. If you look at
> the first message of this thread
> (on linux-acpi) the delay is first 5, then 10 minutes.
>
OK. So, the problem seems to be limited to HPET and 5 min multiples.
> john stultz <johnstul@...ibm.com>:
> 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?
John: I don't think it is that we are going tickless beyond HPET wrap
length. HPET max delta should be preventing that.
We probably need to read out HPET hardware counter to see whether
things are OK there. Even if we miss the interrupt, time update should
notice that. One potential problem may be that HPET hardware can only
do 32 bit mode, but advertising 64 bit mode and we are getting
confused when we update time?
jean-philippe: What does hpet section of "cat /proc/timer_list" look
like? Also, can you boot with "hpet=verbose" option and send the
dmesg.
Thanks,
Venki
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists