Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jan 2002 22:54:33 +0000
From:      David McNett <nugget@slacker.com>
To:        Petar Forai <petar.forai@chello.at>
Cc:        freebsd-stable@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: 4.5/SMP clock drifting
Message-ID:  <20020123225433.GA63096@dazed.slacker.com>
In-Reply-To: <000c01c1a457$54d5eae0$5700a8c0@MSHOST>
References:  <000c01c1a457$54d5eae0$5700a8c0@MSHOST>

next in thread | previous in thread | raw e-mail | index | archive | help
On 23-Jan-2002, Petar Forai wrote:
> I've a strange problem on my SMP machine running 4.5. At 8am i use ntpdate
> to sync the time, at 9:37am when i ntpdate again my time offset from the
> timeserver is about 0.7s!

You should instead look at using ntpd (it's in the base install) which
will accurately track and account for the hardware drift unlike your
ntpdate solution.

Set up an /etc/ntp.conf file with:

  server timeserver1.domain.com
  server timeserver2.otherdomain.com

  driftfile /var/run/ntpd.drift


Then populate /etc/rc.conf with

  ntpdate_enable="YES"
  ntpdate_program="ntpdate"
  ntpdate_flags="timeserver1.domain.com"
  xntpd_enable="YES"

-- 
 ________________________________________________________________________
|David McNett      |To ensure privacy and data integrity this message has|
|nugget@slacker.com|been encrypted using dual rounds of ROT-13 encryption|
|Austin, TX USA    |Please encrypt all important correspondence with PGP!|

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020123225433.GA63096>