From owner-freebsd-stable@FreeBSD.ORG Thu Feb 18 22:12:25 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 8AA7B1065676 for ; Thu, 18 Feb 2010 22:12:25 +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 437CC8FC12 for ; Thu, 18 Feb 2010 22:12:25 +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 <0KY200GDO5OOP9D0@bgo1smout1.broadpark.no> for freebsd-stable@freebsd.org; Thu, 18 Feb 2010 23:12:24 +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 <0KY2006845ONI8F0@bgo1sminn1.broadpark.no> for freebsd-stable@freebsd.org; Thu, 18 Feb 2010 23:12:24 +0100 (CET) Date: Thu, 18 Feb 2010 23:12:23 +0100 From: Torfinn Ingolfsen To: freebsd-stable@freebsd.org Message-id: <20100218231223.ec6b9fa8.torfinn.ingolfsen@broadpark.no> In-reply-to: <20100218205458.GA78560@server.vk2pj.dyndns.org> References: <20100211190652.6a66c618.torfinn.ingolfsen@broadpark.no> <20100211192515.GB13854@icarus.home.lan> <20100212132947.eb2af3d0.torfinn.ingolfsen@broadpark.no> <20100212131117.GA51905@icarus.home.lan> <20100212174452.2140cd72.torfinn.ingolfsen@broadpark.no> <20100217194927.e3ec60ae.torfinn.ingolfsen@broadpark.no> <20100217200322.da66c9f8.torfinn.ingolfsen@broadpark.no> <20100218205458.GA78560@server.vk2pj.dyndns.org> X-Mailer: Sylpheed 2.7.1 (GTK+ 2.18.7; 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: Thu, 18 Feb 2010 22:12:25 -0000 On Fri, 19 Feb 2010 07:54:58 +1100 Peter Jeremy wrote: > On 2010-Feb-17 20:03:22 +0100, Torfinn Ingolfsen wrote: > Did you delete /etc/ntp.drift between timecounter changes? I sure did, I used the instructions given. > There's ntptime(8) but it doesn't have a "self-calibrate mode". Ok, good to know. > Based on the messages log you gave, and assuming the ntpd PLL is sane, > your acpi-safe clock is about 2500ppm slow (the steps reflect about > 2000ppm and the ntpd PLL should be compensating for a further 500ppm) > - this is really bad, even for consumer-grade stuff. Are you running > non-standard clock speeds or multipliers? No, everything at default values here (ie. I haven't changed anything in either BIOS or FreeBSD), except from changing timer from HPET to ACPI-safe. > If there's nothing obvious, I'd follow John Hay's suggesion and > force set either your TSC or ACPI frequency in sysctl.conf (you > can't override the HPET frequency). > > Take either the TSC or ACPI frequency reported by "sysctl machdep", > reduce it by 2500ppm and set that in /etc/sysctl.conf. Assuming > a "standard" (3.58MHz) ACPI, the latter would look like: > > machdep.acpi_timer_freq=3570596 This one is root@kg-f2# sysctl machdep.acpi_timer_freq machdep.acpi_timer_freq: 3579545 So I should change that to 3577045, right? Like so: root@kg-f2# sysctl machdep.acpi_timer_freq=3579545 machdep.acpi_timer_freq: 3579545 -> 3579545 and I put it into /etc/sysctl.conf as well (in case the machine reboots again). > kern.timecounter.hardware=ACPI-safe Yes, this is already in /etc/sysctl.conf > The stop ntpd, delete /var/db/ntp.drift and either reboot or > manually set the above sysctl's and restart ntpd. Done. We'll see if it works or not. > [I think I've got the adjustment direction correct in the above, if > I've stuffed up, you need to adjust in the other direction] Ok. Thanks to all for helping out. -- Torfinn