9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] synchronization of time, setting time
Date: Fri, 26 Jun 2009 09:41:58 -0400	[thread overview]
Message-ID: <cfec672c163a4af9d0e91c7f002bbc8e@quanstro.net> (raw)
In-Reply-To: <a560a5d00906260453m5c198ee8ofa0b157a1339185@mail.gmail.com>

> 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



      reply	other threads:[~2009-06-26 13:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-26 11:53 Rudolf Sykora
2009-06-26 13:41 ` erik quanstrom [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cfec672c163a4af9d0e91c7f002bbc8e@quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).