From mboxrd@z Thu Jan 1 00:00:00 1970 From: john stultz Subject: Re: System time drifts when processor idle. Date: Thu, 09 Sep 2010 10:42:05 -0700 Message-ID: <1284054125.2762.47.camel@localhost.localdomain> References: <1282932708.1946.8.camel@work-vm> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from e31.co.us.ibm.com ([32.97.110.149]:58993 "EHLO e31.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752101Ab0IIRmN (ORCPT ); Thu, 9 Sep 2010 13:42:13 -0400 In-Reply-To: Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: jean-philippe francois Cc: Lin Ming , venki@google.com, "H. Peter Anvin" , linux-acpi@vger.kernel.org, LKML , jslaby@suse.cz On Fri, 2010-09-03 at 14:23 +0200, jean-philippe francois wrote: > 2010/8/27 john stultz : > > 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? > > > > Hi, > > The same bug happens with clock=acpi_pm. > My apologies for a previous mail where I said it was not hapenning with acpi_pm. > > With both clock, the timekeeping gap augments by amount of 5 minutes. Huh. So this still seems strange, but assuming we're still using the hpet for irqs, its possible the event somehow gets pushed back 5 minutes and we miss an timekeeping interval accumulation (with acpi_pm, the counter wraps ever 5 seconds or so, so we could miss many accumulation intervals and still be 5 minutes off if the tick timer was late). Again, seeing if the issue goes away with nohz=off would be helpful. thanks -john