From owner-freebsd-questions Thu Jan 27 13:53: 4 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.fred.net (mail.fred.net [204.215.84.6]) by hub.freebsd.org (Postfix) with ESMTP id A563A1574E for ; Thu, 27 Jan 2000 13:53:01 -0800 (PST) (envelope-from marcg@fred.net) Received: from versa (versa.eng.comsat.com [134.133.169.5]) by mail.fred.net (Postfix) with SMTP id 873039391; Thu, 27 Jan 2000 16:52:25 -0500 (EST) From: Marc Giannoni Reply-To: marcg@fred.net Organization: Archela Technologies To: Ben Smithurst Subject: Re: CMOS clock and NTP Date: Thu, 27 Jan 2000 16:37:38 -0500 X-Mailer: KMail [version 1.0.21] Content-Type: text/plain References: <20000127173700.A4663@strontium.scientia.demon.co.uk> Cc: freebsd-questions@freebsd.org MIME-Version: 1.0 Message-Id: <00012716522404.55277@versa> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks! Good information....... .....some time later..... Well, "machdep.i8254_freq" did not affect the Time of Day clock, however it did affect the interval timer...."setitimer" and "sleep". I could speed these up or slow them down, but the time of day kept speeding ahead! What finally worked was, "machdep.tsc_freq", which I had to change from 400911342 to 99990000 !?! This is what finally slowed the clock down, apparently a slowdown factor of 1/4! I'm not clear on what is happening, there is a BUG somewhere....either in hardware or in (Ghasp!) software. NTP does not really sync either....it just cycles throught the list of (Public) servers I've configured. My guess is "adjtime()" is not really adjusting the time of day clock! Marc On Thu, 27 Jan 2000, you wrote: > Marc Giannoni wrote: > > > I have a Dell Dimension P100 with a fast CMOS clock. > > This clock will gain almost an hour a day, and NTP won't > > sync with any servers. (I have NTP working on another host) > > > > #sysctl kern.clockrate > > #kern.clockrate: { hz = 100, tick = 10000, tickadj = 5, profhz = 1024, stathz > > = 128 } > > > > How can I tweak the tick? sysctl says kern.clockrate is readonly!?! > > look at machdep.i8254_freq instead, I tweaked that on a machine of > mine which was gaining about 1 sec/hour and it's worked fine. (I use > ntpdate, but with errors like that it was always doing 'step' rather > than 'adjust' -- now it can always use 'adjust' as the error is less > than 0.5 sec.) > > -- > Ben Smithurst / ben@scientia.demon.co.uk / PGP: 0x99392F7D -- This communication is exclusively reserved for the intended recipient. All parties not explicitly named as recipients, including Law Enforcement, are hereby denied access to this entire communication. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message