Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* time accuracy question
@ 1999-02-26  2:45 Larry Snyder
  1999-02-26 20:30 ` Chris Albertson
  0 siblings, 1 reply; 5+ messages in thread
From: Larry Snyder @ 1999-02-26  2:45 UTC (permalink / raw)
  To: axp-list

Hi all --
I'm currently running an AS200 4/233 as the primary box I sit in front
of at home, and a Multia manages my dialup connectivity.  In both
cases, the system clock seems to be running too fast.  I lose around
a minute per day.  The Multia is running 2.2.0-pre3, and the AS200
is 2.2.0.

I can run /sbin/clock -u -s (and -A on the Multia) and get it back
to being close, but what I'm looking at is the kernel timekeeping
function.  I found a constant in ..../include/asm-alpha/timex.h

  #define CLOCK_TICK_RATE 1193180 /* Underlying HZ */

I'm guessing this is the source of my errors.  Is there an obvious
test point I can hang a good quality counter to see what the real
number is for my boxen?  

TIA,
-ls-


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: time accuracy question
  1999-02-26  2:45 time accuracy question Larry Snyder
@ 1999-02-26 20:30 ` Chris Albertson
  1999-02-26 23:33   ` Larry Snyder
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Albertson @ 1999-02-26 20:30 UTC (permalink / raw)
  To: axp-list, Larry Snyder

You can run xntpd on your machines.  This will keep you to within
milliseconds of "true" time.  see docs in /usr/doc/xntp*
the ntp server/client comes with RedHat.

A crude substitute for NTP is to run rdate from the crontab.

Larry Snyder wrote:
> 
> Hi all --
> I'm currently running an AS200 4/233 as the primary box I sit in front
> of at home, and a Multia manages my dialup connectivity.  In both
> cases, the system clock seems to be running too fast.  I lose around
> a minute per day.  The Multia is running 2.2.0-pre3, and the AS200
> is 2.2.0.

-- 
--Chris Albertson

  chris@topdog.logicon.com                Voice:  626-351-0089  X127
  Logicon RDA, Pasadena California          Fax:  626-351-0699


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: time accuracy question
  1999-02-26 20:30 ` Chris Albertson
@ 1999-02-26 23:33   ` Larry Snyder
  1999-02-27  0:23     ` lars
  0 siblings, 1 reply; 5+ messages in thread
From: Larry Snyder @ 1999-02-26 23:33 UTC (permalink / raw)
  To: axp-list

Chris, I set up xntp on our network at work.  I like the amount of
intelligence built into the protocol.  What I'm dealing with here is
my net at home, and I want to reduce the amount of error to a minimum
before I dial in and get ntp updates.  I also need to dig through the
pppd docs to make sure port 123 calls aren't considered 'interesting'
enough to kick off a phone call...  This may be a good project for this
evening if I don't get derailed :-)  I'll report results.
-ls-


Chris Albertson <chris@topdog.pas1.logicon.com> wrote:
> You can run xntpd on your machines.  This will keep you to within
> milliseconds of "true" time.  see docs in /usr/doc/xntp*
> the ntp server/client comes with RedHat.
> 
> A crude substitute for NTP is to run rdate from the crontab.
> 
> Larry Snyder wrote:
> > 
> > Hi all --
> > I'm currently running an AS200 4/233 as the primary box I sit in front
> > of at home, and a Multia manages my dialup connectivity.  In both
> > cases, the system clock seems to be running too fast.  I lose around
> > a minute per day.  The Multia is running 2.2.0-pre3, and the AS200
> > is 2.2.0.
> 
> -- 
> --Chris Albertson
> 
>   chris@topdog.logicon.com                Voice:  626-351-0089  X127
>   Logicon RDA, Pasadena California          Fax:  626-351-0699
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: time accuracy question
  1999-02-26 23:33   ` Larry Snyder
@ 1999-02-27  0:23     ` lars
  1999-02-27  1:50       ` Larry Snyder
  0 siblings, 1 reply; 5+ messages in thread
From: lars @ 1999-02-27  0:23 UTC (permalink / raw)
  To: axp-list

On Fri, Feb 26, 1999 at 06:33:19PM -0500, Larry Snyder wrote:

I'm no xntpd god, but I think I might be able to lend some advice.

> Chris, I set up xntp on our network at work.  I like the amount of
> intelligence built into the protocol.  What I'm dealing with here is
> my net at home, and I want to reduce the amount of error to a minimum
> before I dial in and get ntp updates. 

In this case, just configure xntpd to use a driftfile. From the xntp
documentation:

" One of the things the NTP daemon does when it is first started is to
compute the error in the intrinsic frequency of the clock on the
computer it is running on. It usually takes about a day or so after
the daemon is started to compute a good estimate of this (and it needs
a good estimate to synchronize closely to its server). Once the
initial value is computed, it will change only by relatively small
amounts during the course of continued operation. The driftfile
declaration indicates to the daemon the name of a file where it may
store the current value of the frequency error so that, if the daemon
is stopped and restarted, it can reinitialize itself to the previous
estimate and avoid the day's worth of time it will take to recompute
the frequency estimate. "

So basically.. set it up with a driftfile parameter in the ntp.conf
and then do your best to keep the machine online for a long period of
time. Once it has a good estimate of how much drift is in your
machine's clock written there.. xntpd will be able to keep your clock
in sync pretty reliably, even without network connectivity.


> I also need to dig through the
> pppd docs to make sure port 123 calls aren't considered 'interesting'
> enough to kick off a phone call...  This may be a good project for this
> evening if I don't get derailed :-)  I'll report results.

More importantly, make sure pppd isn't going to try to automagically
log you in any time xntpd feels lonely. Unfortunately
(well.. actually, not so unfortunately) I haven't had to use pppd for
network access, so I can't help ya there.

--
Ryan Schaefer
lars@execpc.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: time accuracy question
  1999-02-27  0:23     ` lars
@ 1999-02-27  1:50       ` Larry Snyder
  0 siblings, 0 replies; 5+ messages in thread
From: Larry Snyder @ 1999-02-27  1:50 UTC (permalink / raw)
  To: axp-list

Thanx --
It's been nearly a year since I set it up, so I had forgotten entirely
about the drift file.  And yeah, my biggest worry is kicking off
a call home when xntp wants some assurances from mom....
-ls-

lars@execpc.com wrote:
> On Fri, Feb 26, 1999 at 06:33:19PM -0500, Larry Snyder wrote:
> 
> I'm no xntpd god, but I think I might be able to lend some advice.
> 
> > Chris, I set up xntp on our network at work.  I like the amount of
> > intelligence built into the protocol.  What I'm dealing with here is
> > my net at home, and I want to reduce the amount of error to a minimum
> > before I dial in and get ntp updates. 
> 
> In this case, just configure xntpd to use a driftfile. From the xntp
> documentation:
> 
> " One of the things the NTP daemon does when it is first started is to
> compute the error in the intrinsic frequency of the clock on the
> computer it is running on. It usually takes about a day or so after
> the daemon is started to compute a good estimate of this (and it needs
> a good estimate to synchronize closely to its server). Once the
> initial value is computed, it will change only by relatively small
> amounts during the course of continued operation. The driftfile
> declaration indicates to the daemon the name of a file where it may
> store the current value of the frequency error so that, if the daemon
> is stopped and restarted, it can reinitialize itself to the previous
> estimate and avoid the day's worth of time it will take to recompute
> the frequency estimate. "
> 
> So basically.. set it up with a driftfile parameter in the ntp.conf
> and then do your best to keep the machine online for a long period of
> time. Once it has a good estimate of how much drift is in your
> machine's clock written there.. xntpd will be able to keep your clock
> in sync pretty reliably, even without network connectivity.
> 
> 
> > I also need to dig through the
> > pppd docs to make sure port 123 calls aren't considered 'interesting'
> > enough to kick off a phone call...  This may be a good project for this
> > evening if I don't get derailed :-)  I'll report results.
> 
> More importantly, make sure pppd isn't going to try to automagically
> log you in any time xntpd feels lonely. Unfortunately
> (well.. actually, not so unfortunately) I haven't had to use pppd for
> network access, so I can't help ya there.
> 
> --
> Ryan Schaefer
> lars@execpc.com
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-02-27  1:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-26  2:45 time accuracy question Larry Snyder
1999-02-26 20:30 ` Chris Albertson
1999-02-26 23:33   ` Larry Snyder
1999-02-27  0:23     ` lars
1999-02-27  1:50       ` Larry Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox