9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] synchronization of time, setting time
@ 2009-06-26 11:53 Rudolf Sykora
  2009-06-26 13:41 ` erik quanstrom
  0 siblings, 1 reply; 2+ messages in thread
From: Rudolf Sykora @ 2009-06-26 11:53 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello everyone,

1) If I want to set the hardware (on-board) clock by hand, how can I?
2) If I want to synchronize the hardware time with a ntp server (once
/ periodically), how can I?
3) If I run the 'timesync -n [ntp server]' command, how is the
frequency of synchronization determined? If I run it without any more
special parameters, it seems to synchronize every minute (from the
log, obtained with -l). That is, I think, unnecessarily too often.

Thanks
Ruda



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

* Re: [9fans] synchronization of time, setting time
  2009-06-26 11:53 [9fans] synchronization of time, setting time Rudolf Sykora
@ 2009-06-26 13:41 ` erik quanstrom
  0 siblings, 0 replies; 2+ messages in thread
From: erik quanstrom @ 2009-06-26 13:41 UTC (permalink / raw)
  To: 9fans

> 1) If I want to set the hardware (on-board) clock by hand, how can I?

date -n>/dev/rtc

> 2) If I want to synchronize the hardware time with a ntp server (once
> / periodically), how can I?

modify timesync.

> 3) If I run the 'timesync -n [ntp server]' command, how is the
> frequency of synchronization determined?

by the error in the measurement.  here's the output from my
log.  looks like its running about once a minute.

chula Jun 26 09:34:30 δ -1049724 avgδ 652049 hz 2660094075
chula Jun 26 09:35:30 δ -1233447 avgδ 942747 hz 2660093874

i can think of two reasons for bad measurements — specifying
an accuracy that is not attainable or running on a machine
with an unsyncronized tsc.  for example, certain pentium iv.

- erik



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

end of thread, other threads:[~2009-06-26 13:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-26 11:53 [9fans] synchronization of time, setting time Rudolf Sykora
2009-06-26 13:41 ` erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).