From owner-freebsd-hackers@freebsd.org Mon Oct 8 11:19:33 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5E08210BB61B for ; Mon, 8 Oct 2018 11:19:33 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "puchar.net", Issuer "puchar.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D107A85908; Mon, 8 Oct 2018 11:19:32 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.15.2) with ESMTPS id w98BJNRO028558 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 8 Oct 2018 13:19:23 +0200 (CEST) (envelope-from puchar-wojtek@puchar.net) Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id w98BJIBZ028555; Mon, 8 Oct 2018 13:19:18 +0200 (CEST) (envelope-from puchar-wojtek@puchar.net) Date: Mon, 8 Oct 2018 13:19:18 +0200 (CEST) From: Wojciech Puchar To: Ian Lepore cc: Wojciech Puchar , freebsd-hackers@freebsd.org Subject: Re: ntpd strange problem In-Reply-To: <1538855151.14264.54.camel@freebsd.org> Message-ID: References: <20181005061829.GG21091@server.rulingia.com> <1538855151.14264.54.camel@freebsd.org> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Oct 2018 11:19:33 -0000 >> >> what else can i do? > > The original output you posted showed the time as unsynchronized when > ntpd started up. That seems normal to me, it can't be synchronized > until ntpd has been running for a while. In a followup message you > seemed to say that it doesn't stay synchronized, but you haven't > provided much info about that. > > What's in the logs when it become unsynchronized or when you notice the > time is several seconds off? after starting ntpd - it seems to be no different than upsteream time server. After week or so it got out of sync in spite of ntpd still running. Strange but today (4 days after i restarted ntpd) it seems to be in sync # ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== LOCAL(0) .LOCL. 2 l 93h 64 0 0.000 0.000 0.000 *ntp.task.gda.pl 194.146.251.100 2 u 227 256 377 7.127 0.006 0.050 # ntpq -c rv associd=0 status=0615 leap_none, sync_ntp, 1 event, clock_sync, version="ntpd 4.2.8p12-a (1)", processor="amd64", system="FreeBSD/11.2-STABLE", leap=00, stratum=3, precision=-24, rootdelay=13.877, rootdisp=31.084, refid=153.19.250.123, reftime=df65bb67.6caa4c22 Mon, Oct 8 2018 13:17:59.424, clock=df65bb79.e7c2ec64 Mon, Oct 8 2018 13:18:17.905, peer=60901, tc=9, mintc=3, offset=0.065124, frequency=35.388, sys_jitter=0.000000, clk_jitter=0.044, clk_wander=0.001 my ntp.conf rlimit memlock 512 server ntp.task.gda.pl iburst maxpoll 9 restrict ntp.task.gda.pl nomodify nopeer noquery notrap restrict -4 default ignore restrict -6 default ignore restrict 127.0.0.1 nomodify nopeer notrap restrict 10.0.0.0 mask 255.0.0.0 nomodify nopeer notrap server 127.127.1.0 fudge 127.127.1.0 stratum 2 > > What does the output of ntptime show when the time is drifted off? > > How about the output of "ntpq -p" and "ntpq -c rv"? > > What's in your ntp.conf? > > If you set sysctl kern.timecounter.stepwarnings=1, do you see any > warnings about the clock stepping as time drifts out of sync? > > -- Ian > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > >