From owner-freebsd-questions@FreeBSD.ORG Mon Mar 8 14:19:19 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06AAB16A4CE for ; Mon, 8 Mar 2004 14:19:19 -0800 (PST) Received: from smtp.nildram.co.uk (smtp.nildram.co.uk [195.112.4.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FB8743D41 for ; Mon, 8 Mar 2004 14:19:18 -0800 (PST) (envelope-from mark@ukug.uk.freebsd.org) Received: from ukug.uk.freebsd.org (parish.gotadsl.co.uk [62.3.235.43]) by smtp.nildram.co.uk (Postfix) with ESMTP id BA03E274746 for ; Mon, 8 Mar 2004 22:19:11 +0000 (GMT) Message-ID: <404CF162.4030202@ukug.uk.freebsd.org> Date: Mon, 08 Mar 2004 22:19:14 +0000 From: Mark Ovens User-Agent: Mozilla Thunderbird 7.0 (X11/20040307) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <46848.206.169.45.183.1078783678.squirrel@mail.filmkern.com> In-Reply-To: <46848.206.169.45.183.1078783678.squirrel@mail.filmkern.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Wierd time changes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Mar 2004 22:19:19 -0000 Denis R. wrote: > Hi Mark and list members, > > I am experiencing the same problem on my dual PII-450 SP700 Compaq Pro > workstation. After poking around on Google, it is pointing to the FreeBSD > and a i8254 programmable interupt timer. In my case the time is lagging > behind 10 times! What does your: > #time sleep 10 > show? redshift# time sleep 10 0.000u 0.001s 0:10.00 0.0% 0+0k 0+0io 0pf+0w redshift# The clock maintains the correct time whilst FreeBSD is running, it just suddenly changes, at least somewhere "inside" FreeBSD, during shutdown but doesn't screw the system clock until the next reboot, and even after that it maintains consistent, but incorrect, time; i.e. it doesn't gain or lose at a steady rate. Regards, Mark > It takes 25 seconds on my SMP workstation to execute a 10 second delay. I > have modified the /etc/sysctl.conf and added: > kern.timecounter.hardware=i8254 > > ntpd couldn't cope with this problem on my server. I have to run ntpdate > every 10 minutes to set the time to an approximately accepted value :-(. > > There used to be a problem on older releases of FreeBSD (4.2 and up) > related to a SMP kernel and clock. Someone posted a hack fix of the: > usr/src/sys/i386/isa/clock.c file. But apparently it has been fixed in > newer releases and does not get mentioned in 5.x. > > The most common fix I've heard from people is to recompile the kernel and > exclude the SMP support. But if this is the case, I'd be switching to a > mono CPU support of OpenBSD to run it. One of the reasons I like FreeBSD > is its SMP support. > > People, any ideas? > > dmesg part: > MPTable: > Timecounter "i8254" frequency 1193182 Hz quality 0 > uname -a: > FreeBSD 5.2-RELEASE FreeBSD 5.2-RELEASE #0: Sun Jan 11 04:21:45 GMT 2004 > root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386 > > Thanks and regards! > Denis > > >>>>>>>>>>>>>>>> > I'm completely baffled by this one. When FreeBSD shuts down/reboots it > changes the system clock. It *always* sets the hours to 20 and changes > the minutes and seconds (but I haven't worked out a pattern for that), > but the date stays the same (see /var/log/messages below) although I > once saw it keep the time and date correct, but set the year back *four* > years(!) but that was when the correct time was 22:mm:ss. > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > . >