From owner-freebsd-stable@FreeBSD.ORG Thu Feb 11 21:50:02 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 A0310106566C for ; Thu, 11 Feb 2010 21:50:02 +0000 (UTC) (envelope-from stadtkind2@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 0E43D8FC0C for ; Thu, 11 Feb 2010 21:50:01 +0000 (UTC) Received: (qmail invoked by alias); 11 Feb 2010 21:49:59 -0000 Received: from f053125129.adsl.alicedsl.de (EHLO localhost) [78.53.125.129] by mail.gmx.net (mp064) with SMTP; 11 Feb 2010 22:49:59 +0100 X-Authenticated: #42330871 X-Provags-ID: V01U2FsdGVkX18BfFl6UqIBXAjauOkxtZqcN53yZoU+JadJwoMq9S iryTtwW6ZFQCN3 To: freebsd-stable@freebsd.org From: Stefan Krueger In-Reply-To: <4B745F4B.3090201@delphij.net> References: <20100211190652.6a66c618.torfinn.ingolfsen@broadpark.no> <20100211192515.GB13854@icarus.home.lan> <4B745F4B.3090201@delphij.net> Date: Thu, 11 Feb 2010 22:49:59 +0100 User-Agent: slrn/0.9.9p1 (Linux) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <1265924999.12453@localhost> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.58999999999999997 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, 11 Feb 2010 21:50:02 -0000 >>> Hi, >>> >>> One of my machines, the fileserver-with-zfs-to-be[1] has trouble >>> keeping correct time. Or rather, ntpd is struggling. >>> In /var/lkog/messages I see this: >>> Feb 7 12:05:54 kg-f2 ntpd[909]: ntpd 4.2.4p5-a (1) >>> Feb 7 12:11:16 kg-f2 ntpd[910]: time reset +1.020413 s >>> Feb 7 12:11:16 kg-f2 ntpd[910]: kernel time sync status change 2001 >>> Feb 7 12:26:26 kg-f2 ntpd[910]: time reset +2.277793 s >>> Feb 7 12:41:29 kg-f2 ntpd[910]: time reset +2.260229 s >>> Feb 7 12:57:02 kg-f2 ntpd[910]: time reset +2.332972 s >>> Feb 7 13:21:24 kg-f2 ntpd[910]: time reset +3.659869 s >>> Feb 7 13:37:01 kg-f2 ntpd[910]: time reset +2.343230 s >>> Feb 7 13:52:24 kg-f2 ntpd[910]: time reset +2.310659 s >>> Feb 7 14:07:29 kg-f2 ntpd[910]: time reset +2.265705 s >>> Feb 7 14:23:03 kg-f2 ntpd[910]: time reset +2.335868 s >>> Feb 7 14:39:06 kg-f2 ntpd[910]: time reset +2.411116 s >>> Feb 7 14:54:32 kg-f2 ntpd[910]: time reset +2.318222 s >>> Feb 7 15:09:55 kg-f2 ntpd[910]: time reset +2.308120 s >>> Feb 7 15:25:49 kg-f2 ntpd[910]: time reset +2.388391 s >>> Feb 7 15:40:54 kg-f2 ntpd[910]: time reset +2.265464 s >>> Feb 7 15:55:57 kg-f2 ntpd[910]: time reset +2.257952 s >>> Feb 7 16:11:45 kg-f2 ntpd[910]: time reset +2.373325 s >>> >>> [snip] > > I think this looks like the same problem I had with another AMD system, > which may be related to some HPET stuff (I no longer have access to that > system, though :( I have the some problem on my machine (also AMD, running 8.0 + patches), after a while ntpd gives up sync'ing and then the time is off by minutes (roughly 80sec after.. say 10 hours) :( I switched to opentnpd (you can find it in ports) and the clock stays in sync now, so you might want to consider that, too PS: I had a spare disk so I tried Linux on the same machine, and ntpd is running fine for 2 days without any problems; so I guess it's not a hw fault HTH