home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / protocol / time / ntp / 1146 < prev    next >
Encoding:
Text File  |  1993-01-03  |  2.3 KB  |  56 lines

  1. Newsgroups: comp.protocols.time.ntp
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!ames!pacbell.com!UB.com!quack!mrapple
  3. From: mrapple@quack.sac.ca.us (Nick Sayer)
  4. Subject: Re: more info requested on dosynctodr
  5. Message-ID: <fXubJWI@quack.sac.ca.us>
  6. Keywords: xntp3, dosynctodr
  7. Organization: The Duck Pond public unix: +1 408 249 9630, log in as 'guest'.
  8. References: <1993Jan3.151913.12953@noao.edu> <1993Jan3.180546.15803@noao.edu>
  9. Date: 3 Jan 1993 22:04:09 UTC
  10. Lines: 44
  11.  
  12. rstevens@noao.edu (W. Richard Stevens) writes:
  13.  
  14. >> Just wondering if anyone can give any additional information on
  15. >> just what the "dosynctodr" kernel flag does in SunOS, and why
  16. >> it should be set to 0.
  17.  
  18. >OK, I can answer some of my own question after finding the code in
  19. >ntp_util.c that handles this case.  BUT, the code says that setting
  20. >synctodr to 0 is not what you want (as a reboot will start off with
  21. >a wacky time),
  22.  
  23. No, that's not really what I meant.
  24.  
  25. Setting dosynctodr to 0 is what you want to do. The wackiness after
  26. reboot is a consequence of setting dosynctodr to 0, but it is far
  27. more desirable to do it than not.
  28.  
  29. >but the tickadj(8) man pages says you should set it
  30. >to 0 for SunOS 4.0.  Also, the distributed Config.sun file does not
  31. >set DOSYNCTODR_SUCKS, which goes against the source code comments.
  32.  
  33. I disagree slightly with the comment in the Config file about
  34. DOSYNCTODR_SUCKS. I recommend doing it on all Suns. I have heard
  35. arguments that it causes a 800 us jitter when it happens. This
  36. too is true, but I know of no other documented way to set the battery
  37. clock than to call settimeofday() (though I have heard that
  38. doresettodr is a possibility, I haven't been able to confirm that
  39. it works as advertised).
  40.  
  41. >I'm confused as to how I should set it, both in the Config file and
  42. >using tickadj.
  43.  
  44. Use both tickadj and DOSYNCTODR_SUCKS.
  45.  
  46. >Lastly, the man page doesn't say so, but I assume that Sun's settimeofday(2)
  47. >system call is what syncs the battery clock to its argument?
  48.  
  49. Yes. That's the whole point behind DOSYNCTODR_SUCKS.
  50.  
  51. -- 
  52. Nick Sayer <mrapple@quack.sac.ca.us> | "You see it. You hear it.
  53. N6QQQ @ N0ARY.#NOCAL.CA.USA.NOAM     |  You want to turn away.
  54. +1 408 249 9630, log in as 'guest'   |  BUT YOU CAN'T!!!"
  55. PGP 2.1 public key on request        |      -- Ren & Stimpy add
  56.