Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 May 2008 08:23:32 -0400
From:      "Jeffrey Brower" <Jeff@PointHere.net>
To:        "'Bruce Evans'" <brde@optusnet.com.au>
Cc:        freebsd-i386@freebsd.org
Subject:   RE: i386/104867: Clock running at 2x speed of wall clock
Message-ID:  <08da01c8b298$aa973af0$1602a8c0@warpcore>
In-Reply-To: <20080510204712.V2970@besplex.bde.org>
References:  <200805100030.m4A0U4g2010514@freefall.freebsd.org> <20080510204712.V2970@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Wow!  I wish I could have found you back in 2006!  This sounds like the
perfect solution as my clock was in solid error and the problem was never
transient.

I still have that board so I might pull it down just to prove this, but I
think you have a solution for my problem here.  I hope it helps someone
correct their computer clock.  Thanks for replying!

--  Jeff
 

-----Original Message-----
From: Bruce Evans [mailto:brde@optusnet.com.au] 
Sent: Saturday, May 10, 2008 6:58 AM
To: Jeffrey Brower
Cc: freebsd-i386@freebsd.org
Subject: Re: i386/104867: Clock running at 2x speed of wall clock

On Sat, 10 May 2008, Jeffrey Brower wrote:

> I verified that the timecounter was indeed i8254 after I recompiled 
> with that option and it still ran double time.

With the i8254 and precisely double time, just type in the correct
(doubled) freqency to "sysctl machdep.i8254_freq=..."  With the APCI-fast
timecounter, first fix the bug that the corresponding sysctl is read-only.

> Everything I tried failed - even NTP gave up because it was constantly 
> slewing.  No one could solve it and I never got an answer so I ended 
> up

NTP can't reasonably handle a 2x error in the clock frequency.  Nor can
fixing a 2x error work if the error is transient.

Bruce




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?08da01c8b298$aa973af0$1602a8c0>