From owner-freebsd-stable@FreeBSD.ORG Fri Feb 12 16:44:54 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 845A01065670 for ; Fri, 12 Feb 2010 16:44:54 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from bgo1smout1.broadpark.no (bgo1smout1.broadpark.no [217.13.4.94]) by mx1.freebsd.org (Postfix) with ESMTP id 40CA98FC13 for ; Fri, 12 Feb 2010 16:44:54 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII Received: from bgo1sminn1.broadpark.no ([217.13.4.93]) by bgo1smout1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with ESMTP id <0KXQ003TVMIT6540@bgo1smout1.broadpark.no> for freebsd-stable@freebsd.org; Fri, 12 Feb 2010 17:44:53 +0100 (CET) Received: from kg-v2.kg4.no ([80.203.92.186]) by bgo1sminn1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with SMTP id <0KXQ00DEKMIT8901@bgo1sminn1.broadpark.no> for freebsd-stable@freebsd.org; Fri, 12 Feb 2010 17:44:53 +0100 (CET) Date: Fri, 12 Feb 2010 17:44:52 +0100 From: Torfinn Ingolfsen To: freebsd-stable@freebsd.org Message-id: <20100212174452.2140cd72.torfinn.ingolfsen@broadpark.no> In-reply-to: <20100212131117.GA51905@icarus.home.lan> References: <20100211190652.6a66c618.torfinn.ingolfsen@broadpark.no> <20100211192515.GB13854@icarus.home.lan> <20100212132947.eb2af3d0.torfinn.ingolfsen@broadpark.no> <20100212131117.GA51905@icarus.home.lan> X-Mailer: Sylpheed 2.7.1 (GTK+ 2.18.6; amd64-portbld-freebsd8.0) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Subject: Re: ntpd struggling to keep up - how to fix? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Feb 2010 16:44:54 -0000 On Fri, 12 Feb 2010 05:11:17 -0800 Jeremy Chadwick wrote: > Please try doing this: > > - stop ntpd > - rm /var/db/ntpd.drift > - sysctl kern.timecounter.hardware=ACPI-safe > - start ntpd Thanks, I'm currently testing that. Results in 72 hours (or less) :-) > Then see if your clock drifts. If it stops, great -- you can put that > sysctl assignment line in /etc/sysctl.conf and consider it a done deal. > I highly recommend putting some comments around it though so in the > future you don't go "What's this? Silly!" and delete it. ;-) Yes, I know. Learned the hard way that I need to document things for my own use. :-) > I'll also point out that it's common on FreeBSD[1] to see messages > like the following (or at least it was circa 2006 -- I believe ntpd Yes, those messages are still there. At one time, I thought about fixing that (by using the config you present), but in the end I figured that these messages actually helps me in pinpointing time of crash in the (few) cases wherer one of my machines crashes or panics. So in the end I did nothing about it. > Finally, you should really consider adding some stratum 2 sources to > your list, *in addition* to the stratum 3 server you're already using. Well, the stratum 3 server is my firewall. :) All the machines on my LAN use that one as the ntp server. My firewall is currently using three ntp servers as sources, one is a non-public stratum 2 server (yes, I asked for permission before I started using it), one is the no.poool.ntp.org pool ( stratum 3) and I just found out that the third one has stopped responding. So I removed it. I have added the dk.pool.ntp.org and se.pool.ntp.org pools, we will see how that turns out. > ntpd can happily work with multiple servers, and will pick the best one Yes, I know. It is a few years since I set this up, but at that time I figured that if I use three ntp servers for my firewall, and just used the firewall for all my internal machines, that would be good enough for my uses. Perhaps I need to re-evaluate my needs. -- Regards, Torfinn