linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Karim Yaghmour <karym@opersys.com>
Cc: Gabriel Paubert <paubert@iram.es>, <linuxppc-dev@lists.linuxppc.org>
Subject: Re: [PATCH] gettimeofday stability
Date: Wed, 11 Apr 2001 23:31:12 +0200	[thread overview]
Message-ID: <20010411213112.917@mailhost.mipsys.com> (raw)
In-Reply-To: <3AD4B9E7.C96F1088@opersys.com>


>Gabriel Paubert wrote:
>>
>> Finally, if you _really_ run into this problem, given the delay between
>> the decrementer interrupt and the update of tb_last_stamp, it means that
>> you likely introduce uncertainties of several microseconds. I forgot also
>> to mention that, to complicate matters, you have to check CPU type before
>> you touch the TB (601 versus all others).
>>
>
>While porting the Linux Trace Toolkit to PPC I noticed a problem
>that may be explained by the symptoms described. The way it works
>is that LTT uses do_gettimeofday() to stamp the events that occur.
>Occasionnaly, a trace would contain entries where the timestamp
>will jump (from one event to the next) of approximately 4295 seconds.
>Later on, this would come back to a "normal" value. And the
>4295 seconds are 2^32/1000000. Hence the underflow.
>
>This has been noticed with both 2.2.x and 2.4.x kernels.

Hrm... looks like we need to protect about a DEC rupt falling too early ?

That can be caused in some rare occasions. I think Paulus has fixed
one event of that in the latest bk trees in order to force the DEC to
emulate lost interrupts.

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2001-04-11 21:31 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-11 19:00 [PATCH] gettimeofday stability Samuel Rydh
2001-04-11 19:42 ` Gabriel Paubert
2001-04-11 20:09   ` Karim Yaghmour
2001-04-11 21:31     ` Benjamin Herrenschmidt [this message]
2001-04-12 18:09     ` Gabriel Paubert
2001-04-14  6:49       ` Karim Yaghmour
2001-04-16 11:56         ` Gabriel Paubert
2001-04-16 13:25           ` Benjamin Herrenschmidt
2001-04-16 12:53             ` Gabriel Paubert
2001-04-17 11:22     ` Gabriel Paubert
2001-04-11 23:07   ` Samuel Rydh
2001-04-16 11:25     ` Gabriel Paubert
2001-04-19 20:43       ` Samuel Rydh
2001-04-21 15:21         ` Gabriel Paubert
2001-04-21 18:16           ` Samuel Rydh
2001-04-21 19:37             ` Gabriel Paubert
  -- strict thread matches above, loose matches on Subject: below --
2001-04-16 16:00 Iain Sandoe
2001-04-16 22:19 ` Dan Malek

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=20010411213112.917@mailhost.mipsys.com \
    --to=benh@kernel.crashing.org \
    --cc=karym@opersys.com \
    --cc=linuxppc-dev@lists.linuxppc.org \
    --cc=paubert@iram.es \
    /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).