From: Jan Kiszka <jan.kiszka@domain.hid>
To: CAMUS Benoit <benoit.camus@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Latencies while ethernet access
Date: Mon, 14 May 2007 12:28:24 +0200 [thread overview]
Message-ID: <464839C8.8060304@domain.hid> (raw)
In-Reply-To: <1179137384.4820.31.camel@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1879 bytes --]
CAMUS Benoit wrote:
> Before all thanks for your advices
>
> I did some more researches, especially using ipipe tracer.
>
> First thing that takes me on is IRQ canals:
> / # cat /proc/interrupts
> CPU0
> 11: 13 SC pxa2xx-i2c
> 15: 1143 SC FFUART
> 18: 0 SC DMA
> 19: 430054 SC PXA Timer Tick
> 27: 7335 GPIO eth0
> Err: 0
>
> The tick timer seems to have IRQ's level lower than Ethernet once ?
That doesn't change the worst case scenario anyway as long as IRQ
handlers can block the execution of all others.
> I saw in ipipe code that IRQ from timer doesn't have same process than
> others (_ipipe_ack_timerirq and __ipipe_ack_irq). I'm still reading code
> to understand this.
>
> Second is ipipe's trace of max latency path (see file attached), you can
> see that shceduling in Linux domain have NMI noise, does it mean taht
> it's a non-preempt part ?
Nope, something is fishy at least with the tracer. I recall these
effects from early ARM patches with tracer support. It should be caused
by some reentrancy of the tracer when functions are called insider the
tracer core that are not marked as "notrace". Maybe some PXA-specific
function to read the TSC?
> That could explain a part of latency during http access (ie fork that
> infers scheduling).
>
> So i'm searching for a way in better case, to reduce this latency, in
> worst to bound it.
> For now i'm looking at interrupt handling code both in Linux, Adeos and
> Smc driver to determine if timer IRQ is well masked by Ethernet once and
> how to hack it.
Let us get the tracer right. Then we would need a full back trace of a
frozen path over the detected latency (here: about 900 us). THEN we can
see what goes on and what needs a closer look.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2007-05-14 10:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-04 8:40 [Xenomai-help] Latencies while ethernet access CAMUS Benoit
2007-05-04 10:18 ` Gilles Chanteperdrix
2007-05-04 16:24 ` Jan Kiszka
2007-05-14 10:09 ` CAMUS Benoit
2007-05-14 10:28 ` Jan Kiszka [this message]
2007-05-14 16:03 ` Jan Kiszka
2007-05-14 16:12 ` Gilles Chanteperdrix
2007-05-04 10:26 ` Gilles Chanteperdrix
[not found] ` <1178287470.22169.9.camel@domain.hid>
2007-05-04 16:06 ` Gilles Chanteperdrix
2007-05-04 16:12 ` Jan Kiszka
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=464839C8.8060304@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=benoit.camus@domain.hid \
--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.