From: Ingo Molnar <mingo@elte.hu>
To: john stultz <johnstul@us.ibm.com>
Cc: Steven Rostedt <rostedt@goodmis.org>,
tglx@linutronix.de, linux-kernel@vger.kernel.org
Subject: Re: Ktimer / -rt9 (+custom) monotonic_clock going backwards.
Date: Thu, 20 Oct 2005 22:54:59 +0200 [thread overview]
Message-ID: <20051020205459.GA23326@elte.hu> (raw)
In-Reply-To: <1129838714.27168.181.camel@cog.beaverton.ibm.com>
* john stultz <johnstul@us.ibm.com> wrote:
> > no, this is really a bad optimization that causes unrobustness.
> > Correctness and robustness comes first. It is so easy to cause a
> > 500-1000msec delay in the kernel, due to a bad driver or anything. The
> > timekeeping code should not break like that.
>
> Eh, its an easy enough change, so I'll put it back to u64. We can
> revisit it again later if needed.
yeah. i didnt notice u64 hurting that much, and we can optimize it later
on. As long as the 64-bit CPUs are ok, we shouldnt care all that much
about micro-performance - especially not at the expense of robustness.
> However making sure periodic_hook isn't starved for too long is
> important for good timekeeping, since ntp and cpufreq adjustments are
> made at that point. Steven's suggestion of moving it to use ktimers
> sounds like a good plan, but let me know if you can see any other
> holes.
yes. Besides driver bugs and 'badly behaving' code, there's another use
case: in the PREEMPT_RT kernel it's the user that picks the priorities
for kernel functionalities in a very finegrained way: if his
data-collection device interrupt and driver code is more important than
anything else on the system (including timekeeping), then that's the way
it will be. So the seemingly contradictory (and amusing) situation
arises that the -rt kernel, which is all about low latencies, also
increases the the need for subsystems to more robustly _bear with_
higher latencies - for the case where they happen to be the lowprio guy
...
but i agree - excessive latencies cannot be tolerated - but up to a few
seconds can easily happen in various situations.
Ingo
next prev parent reply other threads:[~2005-10-20 20:54 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-19 14:59 Ktimer / -rt9 (+custom) monotonic_clock going backwards Steven Rostedt
2005-10-19 15:10 ` Thomas Gleixner
2005-10-19 18:39 ` john stultz
2005-10-20 6:55 ` Steven Rostedt
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 [this message]
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=20051020205459.GA23326@elte.hu \
--to=mingo@elte.hu \
--cc=johnstul@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--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