public inbox for linux-rt-users@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: Christian Kraus <chk.dax@gmx.de>,
	linux-rt-users <linux-rt-users@vger.kernel.org>
Subject: Re: Interrupt Latency 2.6.33.7 rt30
Date: Thu, 1 Sep 2011 21:11:10 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LFD.2.02.1109012109590.2723@ionos> (raw)
In-Reply-To: <20110826074836.GO16557@pengutronix.de>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 919 bytes --]

On Fri, 26 Aug 2011, Uwe Kleine-König wrote:

> On Thu, Aug 25, 2011 at 11:03:33PM +0200, Christian Kraus wrote:
> > Hello
> > I have wrote a GPIO-driver, that toggle the value of a GPIO when a
> > interrupt is comming from an another GPIO.
> > When I measure the latency between the interrupt and the toggled Pin
> > it's about ten times higher than without the rt-patch.
> > (without Patch = 8-11 us
> >  with Patch = 30-110 us)
> It's expected and known that an rt kernel has a worse average latency.

Nonsense.

> Having said that I cannot say if the increase you see is "too much".
> 
> The best option you have is asking ftrace what happens in these 30-110
> us after making sure you have a decent sched_clock implementation.

The problem is simply that the interrupt is forced threaded, so it
depends on the scheduler when it goes on the CPU, while on !RT the
code runs in hard interrupt context.

Thanks,

	tglx

      reply	other threads:[~2011-09-01 19:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-25 21:03 Interrupt Latency 2.6.33.7 rt30 Christian Kraus
2011-08-26  7:48 ` Uwe Kleine-König
2011-09-01 19:11   ` Thomas Gleixner [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=alpine.LFD.2.02.1109012109590.2723@ionos \
    --to=tglx@linutronix.de \
    --cc=chk.dax@gmx.de \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=u.kleine-koenig@pengutronix.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