From owner-freebsd-current Thu Oct 19 06:22:27 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id GAA20499 for current-outgoing; Thu, 19 Oct 1995 06:22:27 -0700 Received: from zibbi.mikom.csir.co.za (zibbi.mikom.csir.co.za [146.64.24.58]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id GAA20436 for ; Thu, 19 Oct 1995 06:20:34 -0700 Received: (from jhay@localhost) by zibbi.mikom.csir.co.za (8.6.11/8.6.9) id PAA27646; Thu, 19 Oct 1995 15:19:06 +0200 From: John Hay Message-Id: <199510191319.PAA27646@zibbi.mikom.csir.co.za> Subject: Re: clock running faster? To: bde@zeta.org.au (Bruce Evans) Date: Thu, 19 Oct 1995 15:19:05 +0200 (SAT) Cc: freebsd-current@FreeBSD.ORG (FreeBSD-current) In-Reply-To: <199510191251.WAA16201@godzilla.zeta.org.au> from "Bruce Evans" at Oct 19, 95 10:51:40 pm X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1436 Sender: owner-current@FreeBSD.ORG Precedence: bulk > > >Yesterday I rebooted my current machine (90M Pentium) with a new kernel. The > >previous kernel was build on the 13th. Now suddenly the clock gains almost > >30 second in an hour. Previously the clock was very stable. I have even > >rebooted and it still does it. > > >Has anybody seen something like this? I see there were changes made to > >i386/isa/clock.c and kern/kern_clock.c. > > The changes have the effect of making the Pentium clock the reference. > Apparently your 8254 clock's frequency is closer to its nominal value > (1193182 Hz) than your Pentium clock's frequency is to its measured > value (pentium_mhz = N MHz where N is as reported at boot time). The > measurement and use of N depends on N being an integer for accuracy. > Apparently the measured value is too small by a factor of 90/90.75. > Those measurements made on kernel startup does not seem stable. Here is a grep in my /var/log/messages file. Oct 18 18:39:57 angel /kernel: CPU: 86-MHz Pentium 735\90 or 815\100 (Pentium-class CPU) Oct 18 18:42:11 angel /kernel: CPU: 87-MHz Pentium 735\90 or 815\100 (Pentium-class CPU) Oct 19 11:53:40 angel /kernel: CPU: 83-MHz Pentium 735\90 or 815\100 (Pentium-class CPU) Oct 19 11:57:18 angel /kernel: CPU: 85-MHz Pentium 735\90 or 815\100 (Pentium-class CPU) Oct 19 11:59:33 angel /kernel: CPU: 89-MHz Pentium 735\90 or 815\100 (Pentium-class CPU) John -- John Hay -- John.Hay@csir.co.za