Subject: Re: system time and resource usage stats wrong?
To: Toru Nishimura <nisimura@itc.aist-nara.ac.jp>
From: Simon Burge <simonb@netbsd.org>
List: port-pmax
Date: 08/13/1999 16:55:09
Toru Nishimura wrote:

> > It looks like a little bit too much was trimmed when the conversion
> > to a clkread variable was done.  Both my test program and NTP seem
> > much happier now.  I've just committed a fix.  Toru owes me a bourbon
> > and coke :-)
> 
> It was a overkill made by me, specific to 3MAX+ hardware timer.  Was
> 'out-of-sync xntpd' cured?

It seems good so far.  Here's what I was getting before the change:

	Aug 13 14:04:23 mona xntpd[214]: synchronized to 172.73.42.199, stratum=2
	Aug 13 14:04:22 mona xntpd[214]: time reset (step) -2.379228 s
	Aug 13 14:04:22 mona xntpd[214]: synchronisation lost
	Aug 13 14:10:47 mona xntpd[214]: synchronized to 172.73.42.42, stratum=3
	Aug 13 14:10:49 mona xntpd[214]: time reset (step) 0.826696 s
	Aug 13 14:10:49 mona xntpd[214]: synchronisation lost
	Aug 13 14:17:11 mona xntpd[214]: synchronized to 172.73.42.42, stratum=3
	Aug 13 14:17:11 mona xntpd[214]: time reset (step) 0.660074 s
	Aug 13 14:17:11 mona xntpd[214]: synchronisation lost
	Aug 13 14:23:35 mona xntpd[214]: synchronized to 172.73.42.42, stratum=3
	Aug 13 14:23:33 mona xntpd[214]: time reset (step) -1.424586 s
	Aug 13 14:23:33 mona xntpd[214]: synchronisation lost
	Aug 13 14:29:51 mona xntpd[214]: synchronized to 172.73.42.199, stratum=2
	Aug 13 14:29:55 mona xntpd[214]: time reset (step) 2.500742 s
	Aug 13 14:29:55 mona xntpd[214]: synchronisation lost
	Aug 13 14:36:26 mona xntpd[214]: synchronized to 172.73.42.42, stratum=3
	Aug 13 14:38:25 mona xntpd[214]: synchronized to 172.73.42.199, stratum=2
	Aug 13 14:41:37 mona xntpd[214]: synchronized to 172.73.42.42, stratum=3
	Aug 13 14:43:34 mona xntpd[214]: synchronized to 172.73.42.199, stratum=2

and here's after:

	Aug 13 16:12:40 mona xntpd[215]: precision = 8 usec
	Aug 13 16:12:40 mona xntpd[215]: read drift of -8.616 from /var/db/ntp.drift
	Aug 13 16:18:34 mona xntpd[215]: synchronized to 172.73.42.42, stratum=3
	Aug 13 16:18:34 mona xntpd[215]: time reset (step) 0.733056 s
	Aug 13 16:18:34 mona xntpd[215]: synchronisation lost
	Aug 13 16:23:41 mona xntpd[215]: synchronized to 172.73.42.199, stratum=2

and it's now 16:53.  I'll guess the value in /var/db/ntp.drift isn't
going to mean much after running with the buggered-up clock and that it
may take a while to stablise - I've rebooted mona about a dozen times
over the last week, and ntp.drift has contained numbers from -400 to
-8...

Simon.