From: Kyle Moffett <mrmacman_g4@mac.com>
To: Russell King <rmk+lkml@arm.linux.org.uk>
Cc: gene.heskett@verizononline.net, linux-kernel@vger.kernel.org,
Linus Torvalds <torvalds@osdl.org>
Subject: Re: Another casualty of -rc6
Date: Wed, 21 Dec 2005 16:32:38 -0500 [thread overview]
Message-ID: <B921F09E-A4F3-4AD3-918A-D25B4FE7C186@mac.com> (raw)
In-Reply-To: <20051221211915.GI1736@flint.arm.linux.org.uk>
On Dec 21, 2005, at 16:19, Russell King wrote:
> As I explained in my first reply, I was led to believe that it is
> wrong to have the local clock in the configuration. Since then
> I've been running ntp without the local clock line, and it's been
> fine since.
>
> I'm not saying that this is your problem, but I suspect that this
> may not be helping the situation - especially since it appears that
> ntpd has ruled out the other peers as possible synchronisation
> sources.
ntpd _only_ considers peers of larger strata numbers after it has
considered all smaller strata peers to be erroneous using various
checks (such as too-high slew rate).
>> it out now, and ntpd restarted. We'll see if it (ntpq -p) even
>> bothers to report LOCAL now. Nope.
>
> It won't do. ntpq -p reports the _peers_ known to the server.
> Obviously, if you remove the local peer, it won't be shown in that
> output anymore. Moreover, think whether it is correct to setup a
> peering between your local clock and your local clock.
That's not why that line goes in there. As documented in the Debian
ntpd file, the extra local line is there for when you use ntpd as a
server for _other_ systems. Essentially, if you point all other
systems at that server, it will temporarily serve out its local time
as a strata 10 clock with that line. Without, it will refuse to
serve out _any_ time. The result is that people include that line so
that even during network failure, all their local clocks remain
synchronized to each other, even if not to an atomic clock.
>> 21 Dec 15:22:47 ntpd[9198]: logging to file /var/log/ntp.log
>> 21 Dec 15:22:47 ntpd[9198]: ntpd 4.2.0a@1.1190-r Fri Aug 26
>> 04:27:20 EDT 2005 (1)
>> 21 Dec 15:22:47 ntpd[9198]: precision = 1.000 usec
>> 21 Dec 15:22:47 ntpd[9198]: Listening on interface wildcard,
>> 0.0.0.0#123
>> 21 Dec 15:22:47 ntpd[9198]: Listening on interface lo, 127.0.0.1#123
>> 21 Dec 15:22:47 ntpd[9198]: Listening on interface eth0,
>> 192.168.71.3#123
>> 21 Dec 15:22:47 ntpd[9198]: kernel time sync status 0040
>> 21 Dec 15:22:47 ntpd[9198]: frequency initialized 3.712 PPM from /
>> var/lib/ntp/drift
>> 21 Dec 15:27:06 ntpd[9198]: synchronized to 128.6.213.15, stratum 3
>> 21 Dec 15:27:06 ntpd[9198]: kernel time sync disabled 0041
>> 21 Dec 15:31:21 ntpd[9198]: synchronized to 192.36.143.151, stratum 1
>> 21 Dec 15:32:29 ntpd[9198]: kernel time sync enabled 0001
>
> So the kernel's timekeeping transitioned from unsynchronised to PLL
> mode, to PLL + synchronised. Great, ntpd has adjusted the kernels
> timekeeping in an attempt to keep it synchronised.
If the local clock slews too much, then ntpd basically gives up
(because it assumes that the server must be broken :-/). When it
does so, it flags the kernels clock as unsynched.
Cheers,
Kyle Moffett
--
When you go into court you either want a very, very, very bright line
or you want the stomach to outlast the other guy in trench warfare.
If both sides are reasonable, you try to stay _out_ of court in the
first place.
-- Rob Landley
next prev parent reply other threads:[~2005-12-21 21:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-21 15:39 Gene Heskett
2005-12-21 15:50 ` Russell King
2005-12-21 20:43 ` Gene Heskett
2005-12-21 21:19 ` Russell King
2005-12-21 21:32 ` Kyle Moffett [this message]
2005-12-21 21:53 ` Gene Heskett
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=B921F09E-A4F3-4AD3-918A-D25B4FE7C186@mac.com \
--to=mrmacman_g4@mac.com \
--cc=gene.heskett@verizononline.net \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk+lkml@arm.linux.org.uk \
--cc=torvalds@osdl.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
all inboxes | Powered by JetHome®