From: Steven Rostedt <rostedt@goodmis.org>
To: john stultz <johnstul@us.ibm.com>
Cc: tglx@linutronix.de, Ingo Molnar <mingo@elte.hu>,
linux-kernel@vger.kernel.org
Subject: Re: Ktimer / -rt9 (+custom) monotonic_clock going backwards.
Date: Thu, 20 Oct 2005 02:55:26 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.58.0510200249080.27683@localhost.localdomain> (raw)
In-Reply-To: <1129747172.27168.149.camel@cog.beaverton.ibm.com>
On Wed, 19 Oct 2005, john stultz wrote:
> > >
> > > Now here's the results that I got between two calls of do_get_ktime_mono
> > >
> > > 358.069795728 secs then later 355.981483177. Should this ever happen?
> >
> > Definitely not. monotonic time must go forwards.
>
> Steven: What clocksource are you using? Could you send me your dmesg?
I have both a PIT/TSC and apic. So, as Thomas told me, the ktimer code
should figure out what to use. So that's pretty much all I can say on
clocksource ;)
As for the dmesg, there isn't really one. I have my own logging code that
flagged this, as well as a check that would BUG on the system when this
happened. So my messages may not mean much to you. I'm currently
compiling Ingo's -rt12 (with a fix to his checking) to see if I can
trigger it there too. My custom kernel doesn't touch the ktimer/timeofday
code so I'm assuming that I can. But until I can trigger this on a kernel
that I didn't taint, I'll stop bothering you :-)
>
>
> > > I haven't look to see if this happens in vanilla -rt10 but I haven't
> > > touched your ktimer code except for my logging and the patch with the
> > > unlock_ktimer_base (since I was based off of -rt9)
> >
> > The ktimer code itself calls the timeofday code, which provides the
> > monotonic clock. I have no idea what might go wrong.
> >
> > Is this reproducible ?
>
> Last night I just caught a bug I accidentally introduced with the fixed
> interval math (oh, if only optimizations didn't dirty code so!), where
> time inconsistencies were possible when clocksources were changed. I'm
> not sure if that's the issue being seen above, but I'll wrap things up
> and send out a B8 release today if I can.
>
Hmm, I believe that the ktimers use the apic (when available) and let the
jiffies still be calculated via PIT/TSC.
Thomas, is the above correct?
Would that have triggered your bug?
Thanks,
-- Steve
next prev parent reply other threads:[~2005-10-20 6:55 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-19 14:59 Steven Rostedt
2005-10-19 15:10 ` Thomas Gleixner
2005-10-19 18:39 ` john stultz
2005-10-20 6:55 ` Steven Rostedt [this message]
2005-10-20 7:34 ` Ingo Molnar
2005-10-20 7:46 ` Steven Rostedt
2005-10-20 8:01 ` Ingo Molnar
2005-10-20 8:56 ` Steven Rostedt
2005-10-20 8:59 ` Ingo Molnar
2005-10-20 9:04 ` Steven Rostedt
2005-10-20 9:05 ` Steven Rostedt
2005-10-20 10:05 ` Steven Rostedt
2005-10-20 10:05 ` Steven Rostedt
2005-10-20 15:55 ` Ingo Molnar
2005-10-20 16:09 ` Steven Rostedt
2005-10-20 16:45 ` john stultz
2005-10-20 16:58 ` Steven Rostedt
2005-10-20 17:05 ` john stultz
2005-10-20 19:32 ` Ingo Molnar
2005-10-20 20:05 ` john stultz
2005-10-20 20:54 ` Ingo Molnar
2005-10-21 6:03 ` Steven Rostedt
2005-10-21 7:49 ` Thomas Gleixner
2005-10-21 7:57 ` Steven Rostedt
2005-10-21 8:00 ` ktimer API Steven Rostedt
2005-10-21 8:09 ` Thomas Gleixner
2005-10-21 18:09 ` Ktimer / -rt9 (+custom) monotonic_clock going backwards john stultz
2005-10-21 18:15 ` Thomas Gleixner
2005-10-20 22:06 ` George Anzinger
2005-10-20 6:19 ` Steven Rostedt
2005-10-20 14:34 ` Steven Rostedt
2005-10-20 15:18 ` Steven Rostedt
2005-10-20 15:23 ` Steven Rostedt
2005-10-20 16:01 ` Steven Rostedt
2005-10-19 15:11 ` Ingo Molnar
2005-10-20 6:38 ` Steven Rostedt
2005-10-20 6:56 ` Ingo Molnar
2005-10-19 15:21 ` Daniel Walker
2005-10-20 6:39 ` Steven Rostedt
2005-10-20 15:02 ` Daniel Walker
2005-10-20 22:19 ` George Anzinger
2005-10-20 23:23 ` john stultz
2005-10-19 16:44 ` Frank Sorenson
2005-10-20 6:43 ` Steven Rostedt
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=Pine.LNX.4.58.0510200249080.27683@localhost.localdomain \
--to=rostedt@goodmis.org \
--cc=johnstul@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®