From owner-freebsd-stable@FreeBSD.ORG Tue May 8 14:56:56 2007 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8E09F16A400 for ; Tue, 8 May 2007 14:56:56 +0000 (UTC) (envelope-from jeffrey@goldmark.org) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 640B013C469 for ; Tue, 8 May 2007 14:56:56 +0000 (UTC) (envelope-from jeffrey@goldmark.org) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id B3B8721E2FE; Tue, 8 May 2007 10:42:50 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Tue, 08 May 2007 10:41:34 -0400 X-Sasl-enc: e4NqHNppUGwPeDqRm0NxQ2JXoB8q035flr67xe9p7vsk 1178635294 Received: from [10.1.10.136] (n114.ewd.goldmark.org [72.64.118.114]) by mail.messagingengine.com (Postfix) with ESMTP id E67B11B27A; Tue, 8 May 2007 10:41:33 -0400 (EDT) In-Reply-To: <20070508151525.Y839@thinkpad.dieringer.dyndns.org> References: <200705081248.l48CmvBO083216@lurza.secnetix.de> <20070508151525.Y839@thinkpad.dieringer.dyndns.org> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <711B5A41-C890-4620-9D43-25C4BD5B35F1@goldmark.org> Content-Transfer-Encoding: 7bit From: Jeffrey Goldberg Date: Tue, 8 May 2007 09:41:31 -0500 To: Martin Dieringer X-Mailer: Apple Mail (2.752.2) Cc: freebsd-stable@FreeBSD.ORG Subject: Re: clock problem 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: Tue, 08 May 2007 14:56:56 -0000 On May 8, 2007, at 8:33 AM, Martin Dieringer wrote: > On Tue, 8 May 2007, Oliver Fromme wrote: > >> Martin Dieringer wrote: >> > My clock is now _15 minutes_ late, after about 1 day with powerd >> > running. >> > ntpd is running also. >> > Can nobody tell where the problem is here? >> >> Are you sure that your /etc/ntp.conf ist correct? > > > # cat /etc/ntp.conf > > server time.fu-berlin.de iburst maxpoll 9 Add other servers but don't use iburst, nor reduce the default maxpoll. In your case try something like server 0.de.pool.ntp.org server 1.de.pool.ntp.org server 2.de.pool.ntp.org server 3.de.pool.ntp.org Keep in mind that you will get better quality time by using multiple servers at higher strata than you will by using just one stratum 1 server. Well managed stratum 4 servers really are good enough (and often a better choice given availability). >> Are there any messages from ntpd in /var/log/messages? >> What's the output from "ntpq -p"? > > # ntpq -p > No association ID's returned > # That's not good. I think that adding more servers (as suggested above) will help. Also if you have other machines on your local network, you can use them to peer with the one with the bad clock. So add peer some-local-net-machine peer some-other-local-net-machine to ntp.conf I recall some discussion earlier on this list (I think) about these problems with powerd and clocks. The solution involved some tuning with sysctl or something similar. I'm sorry I can't be more specific. You may also try to set things to restart ntpd on dial-up. -j