Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 May 2007 12:51:55 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        tevans.uk@googlemail.com
Cc:        freebsd-stable@FreeBSD.ORG, martin.dieringer@gmx.de
Subject:   Re: clock problem
Message-ID:  <20070511.125155.1021575722.imp@bsdimp.com>
In-Reply-To: <1178900585.1231.63.camel@zoot.mintel.co.uk>
References:  <20070511110759.L700@thinkpad.dieringer.dyndns.org> <20070511.085325.-1889956816.imp@bsdimp.com> <1178900585.1231.63.camel@zoot.mintel.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <1178900585.1231.63.camel@zoot.mintel.co.uk>
            Tom Evans <tevans.uk@googlemail.com> writes:
: On Fri, 2007-05-11 at 08:53 -0600, M. Warner Losh wrote:
: > In message: <20070511110759.L700@thinkpad.dieringer.dyndns.org>
: >             Martin Dieringer <martin.dieringer@gmx.de> writes:
: > : This is NOT a hardware problem. 1. I have this on 2 machines, 2. the
: > : problem is solved by switching to ACPI instead of APM
: > 
: > It is a hardware problem.  APM + powerd changes the frequency of the
: > TSC.  If the TSC is used as the time source, then you'll get bad
: > timekeeping.  ACPI uses its own frequency source that is much more
: > stable and independent of the TSC, so switching to it fixes the
: > problem because you are switching the hardware from using a really bad
: > frequency source with ugly steps to using a good frequency source w/o
: > steps.
: > 
: > Warner
: 
: Surely that would imply that it is a software misconfiguration issue. If
: the TSC is unreliable under fairly standard duties, and there exists an
: alternate source that is reliable, surely that indicates the
: manufacturer has identified a problem, and solved it with alternate
: hardware.
: 
: The failure then to use the correct hardware is a software
: misconfiguration.

TSC is very accurate if you don't have the clock frequency slammed
around, which is why its quality is listed as 800 and the i8254 is
listed as 0.  If you do anything that slams the TSC frequency, then
you need to reconfigure the timecounter used.

It is hard for the timekeeping part of the software to know if you are
on a sane system (TSC-wise) or an insane one.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070511.125155.1021575722.imp>