From: Frederic Weisbecker <fweisbec@gmail.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] hrtimer: increase clock min delta threshold while interrupt hanging
Date: Sat, 27 Dec 2008 15:00:34 +0100 [thread overview]
Message-ID: <20081227140032.GB5671@nowhere> (raw)
In-Reply-To: <20081227105334.GJ14639@elte.hu>
On Sat, Dec 27, 2008 at 11:53:34AM +0100, Ingo Molnar wrote:
>
> * Frederic Weisbecker <fweisbec@gmail.com> wrote:
>
> > Impact: avoid hanging on slow systems
> >
> > While using the function graph tracer on a virtualized system, the
> > hrtimer_interrupt can hang the system on an infinite loop. This can be
> > caused on several situation where something intrusive is slowing the
> > system (ie: tracing) and the next clock events to program are always
> > before the current time. This patch implements a reasonable compromise.
> > If such a situation is detected, we share the CPUs time in 1/4 to
> > process the hrtimer interrupts. This is enough to let the system running
> > without serious starvation.
> >
> > It has been successfully tested under VirtualBox with 1000 HZ and 100 HZ
> > with function graph tracer launched. On both cases, the clock events
> > were increased until about 25 ms periodic ticks, which means 40 HZ.
> >
> > Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
> > Cc: Thomas Gleixner <tglx@linutronix.de>
> > ---
> > kernel/hrtimer.c | 30 +++++++++++++++++++++++++++++-
> > 1 files changed, 29 insertions(+), 1 deletions(-)
>
> applied to tip/timers/hrtimers, thanks Frederic!
I will apply the comments that came along these reviews in a delta patch.
Note that I still wonder about false positive with a 5 loop check. I think
I will increase it to 10. This a more reasonable.
(I remember I had false positive but I'm not sure if that was because of early_printk
used for debugging. I didn't worry about it first, because I hadn't these false positive
on my last tests, just before I send this patch.)
>
> Thomas, any objections/observations?
>
> Ingo
prev parent reply other threads:[~2008-12-27 14:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-22 1:24 [PATCH] hrtimer: increase clock min delta threshold while interrupt hanging Frederic Weisbecker
2008-12-22 2:07 ` Frans Pop
2008-12-22 7:00 ` Ingo Molnar
2008-12-22 9:00 ` Frédéric Weisbecker
2008-12-22 9:05 ` Ingo Molnar
2008-12-22 9:24 ` Frédéric Weisbecker
2008-12-22 9:04 ` Frédéric Weisbecker
2008-12-22 20:41 ` Frans Pop
2008-12-22 15:17 ` Cyrill Gorcunov
2008-12-22 15:28 ` Frédéric Weisbecker
2008-12-27 10:53 ` Ingo Molnar
2008-12-27 14:00 ` Frederic Weisbecker [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=20081227140032.GB5671@nowhere \
--to=fweisbec@gmail.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