From owner-freebsd-hackers Wed Sep 11 12:44:08 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA24181 for hackers-outgoing; Wed, 11 Sep 1996 12:44:08 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id MAA24176 for ; Wed, 11 Sep 1996 12:44:03 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.12/8.6.9) id FAA09143; Thu, 12 Sep 1996 05:41:46 +1000 Date: Thu, 12 Sep 1996 05:41:46 +1000 From: Bruce Evans Message-Id: <199609111941.FAA09143@godzilla.zeta.org.au> To: hackers@freebsd.org, hasty@rah.star-gate.com Subject: Re: clock drift and clock.c Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Assuming that xntpd gives over a 24 hour period a clock drift of 122, >what are the mods to clock.c to eliminate the clock drift. In my >case, I think that my clock drift is fix. In -current you can adjust the clock frequency using `sysctl machdep.i8254_freq=whatever'. In all versions you can do the same using `options TIMER_FREQ=whatever' in the kernel config file. However, this is only good for adjusting to the nearest 50 ppm. I will commit some changes to make this work better RSN. I guess it's easier to just use xntpd without any network connections or clocks. Put `122.000 1' or `-122.000 1' in /etc/ntp.drift, start xntpd, then kill xntpd (no point in keeping it running since it won't do anything other than initialization). The `1' in ntp.drift is a flag that tells xntpd to use the kernel PLL. It will start the kernel PLL and won't stop it when it is killed. Bruce