public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alexander Puchmayr <alexander.puchmayr@linznet.at>
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	[thread overview]
Message-ID: <200910261554.25051.alexander.puchmayr@linznet.at> (raw)

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



             reply	other threads:[~2009-10-26 14:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-26 14:54 Alexander Puchmayr [this message]
2009-10-26 15:23 ` [gentoo-user] ntp large drift (frequency error, frequent time resets) Jil Larner
2009-10-26 18:10   ` Alexander Puchmayr
2009-10-27 14:38 ` [gentoo-user] ntp large drift (frequency error, frequent time resets) [SOLVED] Alexander Puchmayr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200910261554.25051.alexander.puchmayr@linznet.at \
    --to=alexander.puchmayr@linznet.at \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox