From owner-freebsd-bugs@FreeBSD.ORG Mon Aug 6 11:20:01 2007 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D695F16A418 for ; Mon, 6 Aug 2007 11:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B88F113C457 for ; Mon, 6 Aug 2007 11:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l76BK1YO032932 for ; Mon, 6 Aug 2007 11:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l76BK1mI032931; Mon, 6 Aug 2007 11:20:01 GMT (envelope-from gnats) Resent-Date: Mon, 6 Aug 2007 11:20:01 GMT Resent-Message-Id: <200708061120.l76BK1mI032931@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "vladislav V. Prodan" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0D5D16A477 for ; Mon, 6 Aug 2007 11:11:03 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id D2EB913C46E for ; Mon, 6 Aug 2007 11:11:03 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l76BB3wF076444 for ; Mon, 6 Aug 2007 11:11:03 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l76BB3Bl076443; Mon, 6 Aug 2007 11:11:03 GMT (envelope-from nobody) Message-Id: <200708061111.l76BB3Bl076443@www.freebsd.org> Date: Mon, 6 Aug 2007 11:11:03 GMT From: "vladislav V. Prodan" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: misc/115242: Incorrect work ntpd X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Aug 2007 11:20:02 -0000 >Number: 115242 >Category: misc >Synopsis: Incorrect work ntpd >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Aug 06 11:20:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: vladislav V. Prodan >Release: 7.0-CURRENT >Organization: >Environment: FreeBSD otrada.od.ua 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Sat Aug 4 16:03:28 EEST 2007 vlad11@otrada.local:/usr/obj/usr/src/sys/otrada.2 i386 >Description: After several hours ntpd, it is deteriorating. At 6.2-Stable ntpd kept clear several weeks stratum 2, and seven hours of receiving stratum 3. We have put in cron restart ntpd every three hours. # cat /etc/rc.conf | grep ntpd ntpd_enable="YES" ntpd_program="/usr/sbin/ntpd" # path to ntpd, if you want a different one. ntpd_config="/etc/ntp.conf" # ntpd(8) configuration file ntpd_sync_on_start="YES" # Sync time on ntpd startup, even if offset is h ntpd_flags="-p /var/run/ntpd.pid" # cat /etc/ntp.conf #-----<< stratum 1 >>------# server montpelier.ilan.caltech.edu server clock.via.net #server ntp1.cs.mu.OZ.AU server vega.cbk.poznan.pl ##server time.nist.gov server time-A.timefreq.bldrdoc.gov ###server ntp3.imvp.ru server ntp.nasa.gov #-----<< stratum 2 >>------# server 193.140.151.9 server 129.132.2.21 server 216.27.190.202 server ntp.colocall.net server burka.carrier.kiev.ua #server ntp.cis.rv.ua server mail.nla.od.ua server www.nla.od.ua server apophis.onua.edu.ua driftfile /var/run/ntp.drift statistics peerstats statistics loopstats statistics clockstats logfile /var/log/ntp.log keys /etc/ntp.key trustedkey 1 requestkey 1 controlkey 1 ####### end ntp.conf ###### # ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== +ns01.deu.edu.tr 131.188.3.221 2 - 129 512 177 148.003 38.147 5.372 *swisstime.ee.et 129.132.2.22 2 - 62 512 377 65.933 23.781 2.385 io.berkeley.net .INIT. 16 - 382 1024 0 0.000 0.000 4000.00 +212.111.205.73 132.163.4.102 2 - 71 512 377 31.124 11.602 1.407 +212.111.205.74 209.81.9.7 2 - 130 512 377 32.749 5.303 4.975 After restart ntpd: # ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== -montpelier.ilan .USNO. 1 u 53 128 377 235.554 1.071 0.939 +clock.via.net .GPS. 1 u 95 128 377 213.797 1.419 1.118 +vega.cbk.poznan .PPS. 1 u 43 128 377 70.693 2.595 0.336 *time-B.timefreq .ACTS. 1 u 43 128 377 181.738 4.051 1.051 +ntp-nasa.arc.na .GPS. 1 u 55 128 377 225.393 5.468 0.957 -ns01.deu.edu.tr 131.188.3.221 2 u 41 128 375 139.256 7.891 18.671 -swisstime.ee.et 129.132.2.22 2 u 93 128 377 64.917 6.019 3.261 io.berkeley.net .INIT. 16 u 880 1024 0 0.000 0.000 4000.00 -zeus.colocall.n 132.163.4.103 2 u 103 128 377 13.226 -14.406 0.972 xburka.carrier.k 195.2.64.5 2 u 107 128 377 13.232 -82.647 3.691 -212.111.205.73 192.12.19.20 2 u 95 128 377 28.439 -12.242 0.887 -212.111.205.74 212.111.205.73 3 u 103 128 377 28.958 -17.884 1.462 #ntptrace localhost: stratum 2, offset 0.002816, root distance 0.181288 time-B.timefreq.bldrdoc.gov: stratum 1, offset 0.000000, root distance 0.001300, refid 'ACTS' In addition, ntpd why a two processes. Maybe the inappropriateness of one group led rapid degradation? #ps -auxw | grep ntpd root 35092 0,0 0,2 4624 1944 ?? Ss 12:59 0:00,14 /usr/sbin/ntpd -g -c /etc/ntp.conf -p /var/run/ntpd.pid root 35093 0,0 0,2 4624 1952 ?? S 12:59 0:00,00 /usr/sbin/ntpd -g -c /etc/ntp.conf -p /var/run/ntpd.pid >How-To-Repeat: Run ntpd a couple of hours and get a result. >Fix: #cat /etc/crontab | grep ntpd * */4 * * * root /etc/rc.d/ntpd restart > /dev/null 2>&1 >Release-Note: >Audit-Trail: >Unformatted: