From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1N2Qu1-0007Hf-Ep for garchives@archives.gentoo.org; Mon, 26 Oct 2009 14:50:33 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 61A86E073B; Mon, 26 Oct 2009 14:50:32 +0000 (UTC) Received: from puchmayr.linznet.at (puchmayr.linznet.at [80.66.46.165]) by pigeon.gentoo.org (Postfix) with ESMTP id D9D43E073B for ; Mon, 26 Oct 2009 14:50:31 +0000 (UTC) Received: (qmail 9652 invoked by uid 210); 26 Oct 2009 14:50:30 -0000 Received: from zeus.local by hephaestos (envelope-from , uid 201) with qmail-scanner-2.05st (clamdscan: 0.94.2/9939. spamassassin: 3.2.1. perlscan: 2.05st. Clear:RC:1(192.168.1.2):. Processed in 0.621799 secs); 26 Oct 2009 14:50:30 -0000 Received: from zeus.local (HELO zeus.localnet) (192.168.1.2) by hephaestos.puchmayr.linznet.at with SMTP; 26 Oct 2009 14:50:29 -0000 From: Alexander Puchmayr To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] ntp large drift (frequency error, frequent time resets) Date: Mon, 26 Oct 2009 15:54:24 +0100 User-Agent: KMail/1.12.1 (Linux/2.6.30-gentoo-r4; KDE/4.3.1; x86_64; ; ) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200910261554.25051.alexander.puchmayr@linznet.at> X-Archives-Salt: 70202cf2-a444-4ff6-b3b8-b60449a6fa24 X-Archives-Hash: c469cca7356f2a09407a5fdca506dfcd Hi there! I think I have a problem with the system time, which is considerable too slow. It looses about 3 seconds every 20 minutes (i.e. ~10 secs/hour or 4 minutes per day). This seems to be too much for ntp to compensate. When I start ntp, I get frequent "time reset" messages in the log: 2009-10-25T03:38:35.738758+01:00 poseidon ntpd[5227]: synchronized to 131.130.251.107, stratum 1 2009-10-25T03:47:11.691165+01:00 poseidon ntpd[5227]: time reset +2.952038 s 2009-10-25T03:51:15.669040+01:00 poseidon ntpd[5227]: synchronized to LOCAL(0), stratum 10 2009-10-25T03:51:41.690598+01:00 poseidon ntpd[5227]: synchronized to 131.130.251.107, stratum 1 2009-10-25T04:06:49.633882+01:00 poseidon ntpd[5227]: time reset +2.943313 s 2009-10-25T04:10:14.612358+01:00 poseidon ntpd[5227]: synchronized to LOCAL(0), stratum 10 2009-10-25T04:11:20.612348+01:00 poseidon ntpd[5227]: synchronized to 131.130.251.107, stratum 1 I've also tried to start ntpd with "--slew" option, which results in 2009-10-26T08:36:20.171483+01:00 poseidon ntpd[21666]: frequency error 733 PPM exceeds tolerance 500 PPM 2009-10-26T08:40:25.167171+01:00 poseidon ntpd[21666]: frequency error 737 PPM exceeds tolerance 500 PPM 2009-10-26T08:47:05.169388+01:00 poseidon ntpd[21666]: synchronized to 78.41.115.216, stratum 2 2009-10-26T08:47:05.169492+01:00 poseidon ntpd[21666]: frequency error 740 PPM exceeds tolerance 500 PPM 2009-10-26T08:47:30.168263+01:00 poseidon ntpd[21666]: frequency error 740 PPM exceeds tolerance 500 PPM 2009-10-26T08:50:42.168643+01:00 poseidon ntpd[21666]: frequency error 742 PPM exceeds tolerance 500 PPM 2009-10-26T08:58:09.172397+01:00 poseidon ntpd[21666]: synchronized to 80.64.132.152, stratum 2 ... The next thing I've tried is to change the internal clocksource. The original setting was cat /sys/devices/system/clocksource/clocksource0/current_clocksource hpet I've changed it to "acpi_pm" using echo "acpi_pm" >/sys/devices/system/clocksource/clocksource0/current_clocksource but this doesn't seem to have any effect on the drift. I'd like to use this machine as master time server for my local network, but this is useless with such problems. Thanks in advance for any suggestions Alex ps: ntp.conf contains (comments stripped) server pool.ntp.org server 0.gentoo.pool.ntp.org server 1.gentoo.pool.ntp.org server 2.gentoo.pool.ntp.org server 3.gentoo.pool.ntp.org driftfile /var/lib/ntp/ntp.drift restrict default nomodify nopeer restrict 127.0.0.1 restrict 192.168.0.0 mask 255.255.0.0 nomodify nopeer notrap