Historic archive of defunct list bloat-devel@lists.bufferbloat.net
 help / color / mirror / Atom feed
From: Dave Taht <dave.taht@gmail.com>
To: esr@thyrsus.com
Cc: Eric Raymond <esr@snark.thyrsus.com>, bloat-devel@lists.bufferbloat.net
Subject: Re: Preliminary results of using GPS to look for clock skew
Date: Thu, 22 Sep 2011 02:08:58 -0700	[thread overview]
Message-ID: <CAA93jw7ZazrQThf=yKWX6Att7XMj4zUeyHkDuu_E23xGXHqUvA@mail.gmail.com> (raw)
In-Reply-To: <20110922021137.GB21302@thyrsus.com>

On Wed, Sep 21, 2011 at 7:11 PM, Eric Raymond <esr@thyrsus.com> wrote:
> Dave Taht <dave.taht@gmail.com>:

>> 1) Run the router WITHOUT ntp enabled at all
>>    (and/or testing against CLOCK_REALTIME)
>>    It would be good to know how much the base clock drift is, without
>> correction.
>

My bad. I meant to say CLOCK_MONOTONIC

> One of the things I don't know, and need to understand, is what the
> relationships are among the different realtime clocks. The clock_gettime(3)
> manual page is not hugely helpful.  It says:
>
>       CLOCK_REALTIME
>              System-wide real-time clock.  Setting this clock requires appro‐
>              priate privileges.
>
>       CLOCK_MONOTONIC
>              Clock  that  cannot  be  set and represents monotonic time since
>              some unspecified starting point.
>
>       CLOCK_MONOTONIC_RAW (since Linux 2.6.28; Linux-specific)
>              Similar to CLOCK_MONOTONIC, but provides access to a  raw  hard‐
>              ware-based time that is not subject to NTP adjustments.
>
>       CLOCK_PROCESS_CPUTIME_ID
>              High-resolution per-process timer from the CPU.
>
>       CLOCK_THREAD_CPUTIME_ID
>              Thread-specific CPU-time clock.
>
> Er, so what exactly is the relationship between the CLOCK_REALTIME clock
> and the time(2) clock?  Are they the same?  If they're different, how
> are they different?
>
> It says the CLOCK_MONOTONIC clock isn't settable, but the CLOCK_MONOTONIC_RAW
> text implies that the former may get NTP adjustments.  And it doesn.t specify
> whether the per-process timers are NTP-corrected...I'd guess not, but who's
> to know from the above.
>
> Can anyone point me to better documentation on these facilities?
>
>> 2) ReRun all tests under load (example: netperf -l 3600 -H the_router)
>
> I'll do this, for completeness, but I predict it's not going to make
> any measurable difference.  The indications so far are that neither of
> the means of time delivery I have available to check are compute-bound
> or disk-I/O bound at any point in their delivery chains.
>
> So I think they're just going to shrug off any load short of
> machine-thrashing-its-guts-out.  But part of the point of what I'm
> doing is that soon we'll have the test tools to know for *sure* that's
> true.

One thing that surprised me of late is http://www.bufferbloat.net/issues/271

while not related, surprises are the last thing we need as regards to time.

-- 
Dave Täht
SKYPE: davetaht
US Tel: 1-239-829-5608
http://the-edge.blogspot.com

  parent reply	other threads:[~2011-09-22  9:08 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-21 23:02 Eric Raymond
2011-09-22  0:18 ` Dave Taht
2011-09-22  2:11   ` Eric Raymond
2011-09-22  2:24     ` Jonathan Morton
2011-09-22  2:29       ` Eric Raymond
2011-09-23  9:09       ` Jan Ceuleers
2011-09-23  9:38         ` Dave Taht
2011-09-23 12:10           ` Jan Ceuleers
2011-09-23 12:50             ` Rick
2011-09-24 14:50               ` Jan Ceuleers
2011-09-22  9:08     ` Dave Taht [this message]
2011-09-22 17:15       ` Rick Jones
2011-09-22 17:34         ` Dave Taht
2011-09-22 17:43           ` Rick Jones
2011-09-22 17:58             ` Dave Taht
2011-09-23 10:57           ` Aidan Williams
2011-09-23 10:10     ` Dave Taht
2011-09-23  9:09   ` Jan Ceuleers
2011-09-23  9:24 ` Jan Ceuleers

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='CAA93jw7ZazrQThf=yKWX6Att7XMj4zUeyHkDuu_E23xGXHqUvA@mail.gmail.com' \
    --to=dave.taht@gmail.com \
    --cc=bloat-devel@lists.bufferbloat.net \
    --cc=esr@snark.thyrsus.com \
    --cc=esr@thyrsus.com \
    /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