Re: [SLUG] Why is time slipping?

From: Chuck Hast (wchast@gmail.com)
Date: Thu Feb 08 2007 - 13:55:26 EST


On 2/8/07, Paul M Foster <paulf@quillandmouse.com> wrote:
> Ian C. Blenke wrote:
> > Paul M Foster wrote:
> >
> >> Folks:
> >>
> >> My wife's computer time is slipping, regardless of what I do.
> >> According to ps ax, it's running the following:
> >>
> >> /usr/sbin/ntpd -p /var/run/ntpd.pid -u 116:116 -g
> >>
> >> The server(s) being queries are pool.ntp.org.
> >>
> >> With the -g parameter, if the network time and machine time are far
> >> off from each other, ntp should simply reset the time properly. But
> >> that's not what's happening.
> >
> >
> > ntpd only "drifts" the clock slowly to bring time into sync with remote
> > clocks.
> >
> > If your system clock is "too far off", you should use ntpdate to set
> > your clock:
> >
> > /etc/init.d/ntpd stop # stop ntpd
> > ntpdate pool.ntp.org # sync your system clock to the remote ntp
> > servers
> > hwclock --systohc # set your CMOS RTC to the system clock
> > /etc/init.d/ntpd start # restart ntpd to keep the system clock
> > in sync with remote servers
> >
> > Now your clock should stay in sync.
> >
>
> If I'm gonna do that, I might as well scrap ntpd and run ntpdate every hour.
>
> But my understanding of the -g option (per the man page) is that if the
> time discrepancy exceeds the 1000 second limit, the daemon exits,
> *unless* this option is specified. This option allows the daemon to set
> the time value "without restriction".
>
> Moreover, if the ntpd daemon periodically checks time and adjusts it,
> and slews or steps the time (what's the difference?), and it keeps being
> bad, the daemon should be able to query the time servers more
> frequently. But I can't find an option to increase the frequency with
> which ntpd consults time servers.
>
> Any ideas?
>
I run it as a cron job...

-- 
Chuck Hast  -- KP4DJT --
To paraphrase my flight instructor;
"the only dumb question is the one you DID NOT ask resulting in my going
out and having to identify your bits and pieces in the midst of torn
and twisted metal."
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:21:21 EDT