home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / protocol / time / ntp / 821 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  2.0 KB

  1. Xref: sparky comp.protocols.time.ntp:821 comp.sys.sun.misc:3782
  2. 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
  3. From: jcs@zoo.bt.co.uk (John C Sager)
  4. Newsgroups: comp.protocols.time.ntp,comp.sys.sun.misc
  5. Subject: adjtime() problem on SunOS?
  6. Message-ID: <1992Aug19.092621.8371@zoo.bt.co.uk>
  7. Date: 19 Aug 1992 09:26:21 GMT
  8. Sender: jcs@bear (John C Sager)
  9. Organization: British Telecommunications plc
  10. Lines: 29
  11.  
  12.  
  13. I'm running xntpd version 3 on a Sparcstation 2 running SunOS 4.1.2 & I
  14. get a strange problem sometimes. xntpd does an adjtime() call every
  15. second to sync the system clock to UTC obtained via the NTP protocol.
  16. When I start xrn, the X-windows newsreader, sometimes I get the message eg
  17.  
  18. Aug 19 09:05:14 bear xntpd[26252]: Previous time adjustment didn't complete,
  19. adjustment: -0.000035, residual: -0.000035
  20.  
  21. (I modified xntpd to add the adjustment & residual info to the message)
  22.  
  23. It only occurs once during the startup phase of xrn, before its window
  24. appears on screen. I am using OpenWindows V3 with the olvwm window manager.
  25. I have never noticed this with any other program.
  26.  
  27. The message is syslogged whenever adjtime() returns a residual from the
  28. previous call.
  29. It seems that SunOS never applied the adjustment at all. With the 35us
  30. adjustment above it should have made a 5us adjustment at each of 7 of the
  31. system clock ticks every 10ms, as I have the kernel variable _tickadj set
  32. to 5us. The problem does not occur if the requested adjustment is 5 or 10us
  33. but I do not know at what point between 10 and 35us the problem starts.
  34.  
  35. I have used the 'trace' command to trace the operation of both xntpd and
  36. xrn over the relevant period & I can find no evidence that xrn is doing
  37. anything naughty. Has anyone else noticed adjtime() not operating properly?
  38.  
  39. John C Sager                    Mail:    B67 G18, BT Labs
  40. Email:    jcs@zoo.bt.co.uk                Martlesham Heath
  41. Tel:    +44 473 642623                    IPSWICH  IP5 7RE
  42. Fax:    +44 473 637614                    England
  43.  
  44.