ntpd flipping between PLL and FLL mode
Oliver Fromme
olli at lurza.secnetix.de
Tue Dec 19 06:07:51 PST 2006
Roland Smith wrote:
> Jeremy Chadwick wrote:
> <snip>
> > Dec 19 00:22:26 icarus ntpd[624]: kernel time sync enabled 2001
> > Dec 19 01:47:48 icarus ntpd[624]: kernel time sync enabled 6001
> > Dec 19 02:04:52 icarus ntpd[624]: kernel time sync enabled 2001
>
> Looks very familiar, unfortunately.
I also get them once in a while, but I really don't care
much. I usually don't look at the logs anyway, but let
logsurfer (from ports) look at them and tell me when some-
thing looks suspicious. :-)
> The following patch to ntp_loopfilter.c should quell the message:
> -------------------- STFU patch --------------------
> --- ntp_loopfilter.c.orig Tue Dec 19 14:13:25 2006
> +++ ntp_loopfilter.c Tue Dec 19 14:14:02 2006
> @@ -593,12 +593,6 @@
> "kernel time sync disabled %04x",
> ntv.status);
> ntv.status &= ~(STA_PPSFREQ | STA_PPSTIME);
> - } else {
> - if (ntv.status != pll_status)
> - NLOG(NLOG_SYNCEVENT | NLOG_SYSEVENT)
> - msyslog(LOG_NOTICE,
> - "kernel time sync enabled %04x",
> - ntv.status);
> }
> pll_status = ntv.status;
> if (pll_nano)
> -------------------- STFU patch --------------------
I think it makes sense to replace LOG_NOTICE with LOG_DEBUG,
so you can still get at the messages if you really want to.
It's not necessary to remove the logging code alltogether.
Best regards
Oliver
--
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
"I invented Ctrl-Alt-Delete, but Bill Gates made it famous."
-- David Bradley, original IBM PC design team
More information about the freebsd-stable
mailing list