From owner-freebsd-arm@freebsd.org Thu Oct 26 17:55:45 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EE95CE4FA9A for ; Thu, 26 Oct 2017 17:55:45 +0000 (UTC) (envelope-from hlh@restart.be) Received: from tignes.restart.be (tignes.restart.be [5.135.182.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tignes.restart.be", Issuer "CA master" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B3BD03A45; Thu, 26 Oct 2017 17:55:45 +0000 (UTC) (envelope-from hlh@restart.be) X-Comment: SPF check N/A for local connections - client-ip=2001:41d0:8:bdbe:1:1::; helo=restart.be; envelope-from=hlh@restart.be; receiver=ian@freebsd.org DKIM-Filter: OpenDKIM Filter v2.10.3 tignes.restart.be 3yNF6R2QgCzrnR Received: from restart.be (norquay.restart.be [IPv6:2001:41d0:8:bdbe:1:1::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.restart.be", Issuer "CA master" (verified OK)) by tignes.restart.be (Postfix) with ESMTPS id 3yNF6R2QgCzrnR; Thu, 26 Oct 2017 19:55:42 +0200 (CEST) Received: from chamonix.restart.bel (chamonix.restart.bel [IPv6:2001:41d0:8:bdbe:1:9:0:0]) (authenticated bits=0) by restart.be (8.15.2/8.15.2) with ESMTPSA id v9QHtfbl028699 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Thu, 26 Oct 2017 19:55:42 +0200 (CEST) (envelope-from hlh@restart.be) Subject: Re: PINE64 - 12.0-CURRENT r324563 - ntpd can't keep time To: Ian Lepore , Mark Millard Cc: freebsd-arm References: <4BF75B1E-318C-414A-B5D4-4BA7D6578316@dsl-only.net> <1509029871.56824.49.camel@freebsd.org> From: Henri Hennebert Message-ID: <617f14dc-33ca-9afe-7b9c-328fcb46bca2@restart.be> Date: Thu, 26 Oct 2017 19:55:41 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <1509029871.56824.49.camel@freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr-classic Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Oct 2017 17:55:46 -0000 On 10/26/2017 16:57, Ian Lepore wrote: > On Thu, 2017-10-26 at 01:06 -0700, Mark Millard wrote: >> On 2017-Oct-26, at 12:40 AM, Henri Hennebert wrote: >> >>> >>> After a upgrade from r320599 to r324563, ntpd can't keep time for long. >>> After one hour, the clock run too fast. >> I'm running: >> >> # uname -apKU >> FreeBSD pine64 12.0-CURRENT FreeBSD 12.0-CURRENT  r324743M  arm64 aarch64 1200051 1200051 >> >> Top shows: >> >> /usr/sbin/ntpd -g -c /etc/ntp.conf -p /var/run/ntpd.pid -f /var/db/ntpd.drift >> >> It has been up for 3 days and date shows >> what I'd expect (local time). Also: >> >> # ntpq -p >>      remote           refid      st t when poll reach   delay   offset  jitter >> ============================================================================== >>  0.freebsd.pool. .POOL.          16 p    -   64    0    0.000    0.000   0.000 >> +96.226.123.195  128.138.141.172  2 u  486  512  377   53.512   -0.639   0.795 >> +clock.xmission. 128.138.141.172  2 u   75  512  377   43.109   -0.005   1.301 >> *chl.la          127.67.113.92    2 u  272  512  177   29.258    0.091   1.667 >> +mirror1.sjc02.s 162.213.2.253    2 u   44  512  377   28.404   -0.632   2.297 >> -mdnworldwide.co 216.218.254.202  2 u   95 1024  377   68.184   -3.070   1.488 >> >> > > What is in your /var/db/ntpd.drift file on that system? > [root@norquay ~]# cat /var/db/ntp.drift 29.760 To create it, after this problem I stop ntpd, remove /var/db/ntp.drift and restart ntpd. Henri