From: Wolfgang Grandegger <wg@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai-help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Handling interrupt - jitter
Date: Fri, 18 Apr 2008 18:01:40 +0200 [thread overview]
Message-ID: <4808C5E4.2000603@domain.hid> (raw)
In-Reply-To: <2ff1a98a0804180748o4dc88c91of90e8e26c36d32ed@domain.hid>
Gilles Chanteperdrix wrote:
> On Fri, Apr 18, 2008 at 4:33 PM, Bosko Radivojevic
> <bosko.radivojevic@domain.hid> wrote:
>> Hi,
>>
>> I'm having (from my perspective) too big jitter on handling
>> interrupts. System is: ARM9, AT91SAM9260, Kernel 2.6.20.21, Adeos
>> 1.8-03, Xenomai-2.4.2, interrupt is generated every 1ms, externally.
>
> It's funny to notice how much you asked for the 2.6.24 patch for
> actually not using it.
>
>> Interrupt source (ET1200) is connected to IRQ1 pin (PC15). I'm using
>> native skin from user space. Usually, handler 'reacts' after ~110us,
>> but, worst case delay is around 250us! Is this performance
>> normal/expected on my platform? Why the difference is so huge?
>
>> Is there anything I can do to get better results (with this hw:)?
>
> 250 us is the user-space dispatch latency you obtain with the
> "latency" test on a properly loaded target. It is the time for a
> user-space context switch with a full cache flush. To reduce this
> latency you have to:
> - handle interrupts in kernel space, so that you will be limited by
> interrupt latency, not user-space scheduling latency
> - use trunk so that user-space context switches involving real-time
> threads do not happen with hardware interrupts off.
I started to do some external interrupt latency measurements with
gpioirqbench showing also the effect of handling the interrupt in
user-space, kernel-space or even the interrupt handler on two PowerPC
systems. For further information, have a look to
http://www.denx.de/wiki/DULG/AN2008_03_Xenomai_gpioirqbench
Wolfgang.
next prev parent reply other threads:[~2008-04-18 16:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-18 14:33 [Xenomai-help] Handling interrupt - jitter Bosko Radivojevic
2008-04-18 14:48 ` Gilles Chanteperdrix
2008-04-18 15:08 ` Bosko Radivojevic
2008-04-18 15:21 ` Gilles Chanteperdrix
2008-04-18 16:01 ` Wolfgang Grandegger [this message]
2008-04-21 10:07 ` Bosko Radivojevic
2008-04-21 14:22 ` Gilles Chanteperdrix
2008-04-21 14:36 ` Philippe Gerum
2008-04-21 14:38 ` Gilles Chanteperdrix
2008-04-21 14:48 ` Philippe Gerum
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=4808C5E4.2000603@domain.hid \
--to=wg@domain.hid \
--cc=gilles.chanteperdrix@xenomai.org \
--cc=xenomai@xenomai.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.