home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.protocols.time.ntp:821 comp.sys.sun.misc:3782
- Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!bcm!cs.utexas.edu!wupost!usc!sdd.hp.com!mips!darwin.sura.net!Sirius.dfn.de!zrz.tu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!uknet!axion!newsserver!bear!jcs
- From: jcs@zoo.bt.co.uk (John C Sager)
- Newsgroups: comp.protocols.time.ntp,comp.sys.sun.misc
- Subject: adjtime() problem on SunOS?
- Message-ID: <1992Aug19.092621.8371@zoo.bt.co.uk>
- Date: 19 Aug 1992 09:26:21 GMT
- Sender: jcs@bear (John C Sager)
- Organization: British Telecommunications plc
- Lines: 29
-
-
- I'm running xntpd version 3 on a Sparcstation 2 running SunOS 4.1.2 & I
- get a strange problem sometimes. xntpd does an adjtime() call every
- second to sync the system clock to UTC obtained via the NTP protocol.
- When I start xrn, the X-windows newsreader, sometimes I get the message eg
-
- Aug 19 09:05:14 bear xntpd[26252]: Previous time adjustment didn't complete,
- adjustment: -0.000035, residual: -0.000035
-
- (I modified xntpd to add the adjustment & residual info to the message)
-
- It only occurs once during the startup phase of xrn, before its window
- appears on screen. I am using OpenWindows V3 with the olvwm window manager.
- I have never noticed this with any other program.
-
- The message is syslogged whenever adjtime() returns a residual from the
- previous call.
- It seems that SunOS never applied the adjustment at all. With the 35us
- adjustment above it should have made a 5us adjustment at each of 7 of the
- system clock ticks every 10ms, as I have the kernel variable _tickadj set
- to 5us. The problem does not occur if the requested adjustment is 5 or 10us
- but I do not know at what point between 10 and 35us the problem starts.
-
- I have used the 'trace' command to trace the operation of both xntpd and
- xrn over the relevant period & I can find no evidence that xrn is doing
- anything naughty. Has anyone else noticed adjtime() not operating properly?
-
- John C Sager Mail: B67 G18, BT Labs
- Email: jcs@zoo.bt.co.uk Martlesham Heath
- Tel: +44 473 642623 IPSWICH IP5 7RE
- Fax: +44 473 637614 England
-
-