9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] timesync doubletime
Date: Tue,  8 Aug 2006 15:07:09 -0500	[thread overview]
Message-ID: <5c65e1bbe6cf58f625cf953b0c269871@quanstro.net> (raw)
In-Reply-To: <ee9e417a0608080753t1756e7eeg58c9e52b85e78e83@mail.gmail.com>

what you're saying makes sense.  the problem is that wasn't quite what
happened.

when i started timesync, the clock was running about 10 minutes fast.
when i killed timesync, the clock was about 8 hours fast.

i think the problem is that the network connection was interrupted.
but i can't figure out why that would cause this problem. 
if that were to happen, sample(fstime) will return 0, i think, and then
try to write n0 to /dev/bintime.  the kernel takes that as a delta of 0.
things should have been okay.  maybe i'm reading the code incorrectly.

a local ntp server would be a good idea, but when your network connection
is a modem, i don't think it makes much difference.  ;-) also, the accuracy
i was looking for was "getting to work on time" not intercepting the iss. ;-)

- erik

On Tue Aug  8 09:54:32 CDT 2006, rsc@swtch.com wrote:
> > the rtc clock in one of my machines runs a bit slow -- maybe 2 minutes a month.
> > i ran timesync -h /srv/sources and now the system clock runs ~28 sec/min too fast.
> > killing timesync had no effect.
> 
> Killing timesync probably did have an effect.
> 
> As Kris pointed out, if you were a few minutes behind sources
> then maybe timesync was running time fast to catch up.  Killing it
> doesn't help -- now time will run fast forever, when if you'd left it,
> it probably would have slowed to regular speed once it caught up.
> The speed in use at time of kill is what the kernel will use until
> told otherwise.
> 
> Also, you might get more precise results by using NTP instead
> of relying on a long-distance TCP connection to sources.
> 
> Russ


      reply	other threads:[~2006-08-08 20:07 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-08  0:12 erik quanstrom
2006-08-08  0:42 ` Kris Maglione
2006-08-08  1:39   ` erik quanstrom
2006-08-08  1:46     ` andrey mirtchovski
2006-08-08  2:37       ` erik quanstrom
2006-08-08  1:59         ` andrey mirtchovski
2006-08-08  3:10           ` erik quanstrom
2006-08-08  6:09             ` Steve Simon
2006-08-08  6:15               ` andrey mirtchovski
2006-08-08  6:21                 ` andrey mirtchovski
2006-08-08 15:00               ` John Floren
2006-08-08  2:09     ` geoff
2006-08-08  3:40       ` erik quanstrom
2006-08-08  3:09         ` Kris Maglione
2006-08-08 14:53 ` Russ Cox
2006-08-08 20:07   ` 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=5c65e1bbe6cf58f625cf953b0c269871@quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@cse.psu.edu \
    /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).