Unix Technical Forum

NTP always 23 seconds off

This is a discussion on NTP always 23 seconds off within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> OpenBSD 4.1 running on a somewhat strange box, a Soekris 5501. The hardware clock on the Soekris isn't super-accurate, ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > comp.unix.bsd.openbsd.misc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-22-2008, 08:29 AM
_firstname_@lr_dot_los-gatos_dot_ca_dot_us
 
Posts: n/a
Default NTP always 23 seconds off

OpenBSD 4.1 running on a somewhat strange box, a Soekris 5501. The
hardware clock on the Soekris isn't super-accurate, but it is at least
so-so (drifts by maybe a minute per day if I turn NTP off). No, the
well-known hardware bug that made the hardware clock run 3x too fast
has long been fixed. This machine is always on, and only rebooted
every few months.

I'm running the standard NTPD that comes with the default OpenBSD
install. It uses pool.ntp.org. I'm on a permanently-connected pretty
fast network, with typical ping times to pool.ntp.org of 30-40 ms.

Here comes the wierdness: If I check how accurate NTP is running with
"rdate -ncpv pool.ntp.org", it is usually off by 23 seconds. If I
hand-set the clock with rdate -ncv, then the clock becomes perfectly
accurate, but within a few hours drifts back to being off by 23
seconds.

What gives? Can I do something to improve this?

Note that this is not TERRIBLY important, as have a super-accurate
clock is not vital (if it were, I'd run the ntp.org version of NTPD,
and hook up a cheap GPS receiver on the serial port). But it is still
weird; with a good network connection I should get subsecond accuracy
easily.

--
Ralph Becker-Szendy _firstname_@lr_dot_los-gatos_dot_ca_dot_us
735 Sunset Ridge Road; Los Gatos, CA 95033
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-22-2008, 10:16 AM
Maurice Janssen
 
Posts: n/a
Default Re: NTP always 23 seconds off

On 22 Feb 2008 06:04:15 GMT, _firstname_@lr_dot_los-gatos_dot_ca_dot_us wrote:
>Here comes the wierdness: If I check how accurate NTP is running with
>"rdate -ncpv pool.ntp.org", it is usually off by 23 seconds. If I
>hand-set the clock with rdate -ncv, then the clock becomes perfectly
>accurate, but within a few hours drifts back to being off by 23
>seconds.
>
>What gives? Can I do something to improve this?


Just skip the -c option for rdate.

--
Maurice
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-23-2008, 05:12 AM
_firstname_@lr_dot_los-gatos_dot_ca_dot_us
 
Posts: n/a
Default Re: NTP always 23 seconds off

In article <fpm1je$4ie$1@saturn.z74.net>,
Maurice Janssen <mauricej@xs4all.nl> wrote:
>On 22 Feb 2008 06:04:15 GMT, _firstname_@lr_dot_los-gatos_dot_ca_dot_us wrote:
>>Here comes the wierdness: If I check how accurate NTP is running with
>>"rdate -ncpv pool.ntp.org", it is usually off by 23 seconds. If I
>>hand-set the clock with rdate -ncv, then the clock becomes perfectly
>>accurate, but within a few hours drifts back to being off by 23
>>seconds.
>>
>>What gives? Can I do something to improve this?

>
>Just skip the -c option for rdate.


Thank you, problem solved perfectly.

--
Ralph Becker-Szendy _firstname_@lr_dot_los-gatos_dot_ca_dot_us
735 Sunset Ridge Road; Los Gatos, CA 95033
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:14 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com