From: Matthias Meier <matthias.j.meier@gmx.net>
To: linux-rt-users@vger.kernel.org
Subject: Re: Long max latencies on Wandbaord / Freescale i.MX6
Date: Tue, 29 Sep 2015 08:30:56 +0200 [thread overview]
Message-ID: <560A3020.5090909@gmx.net> (raw)
In-Reply-To: <alpine.DEB.2.11.1509271346160.4500@nanos>
just for imformation what causes the long latencies...
cause of the latency problem of up to 10ms was 'CONFIG_PROVE_LOCKING'
enabled in the kernel config. After disabling it, the max latency is now
below 400us. (many thx to tglx who found the problem).
The following arm boards have 'CONFIG_PROVE_LOCKING=y' in the defconfig
and therefore the same problem:
ezx_defconfig
imote2_defconfig
imx_v6_v7_defconfig
moxart_defconfig
mxs_defconfig
omap2plus_defconfig
Regards
Matthias
Am 27.09.2015 um 13:49 schrieb Thomas Gleixner:
> On Sat, 26 Sep 2015, Matthias Meier wrote:
>
>> Hi,
>>
>> using cyclictest I measure long max latencies of >10ms on a Wandboard dual
>> (Freescale i.MX6 dual Cortex-A9 SoC).
>>
>> The latency problem happens with diffent scenarios:
>> - without or with rt-patch (4.1.7-rt8 w. CONFIG_PREEMPT_RT_FULL)
>> - different Kernels (3.17, 4.1, 4.2 w. CONFIG_PREEMPT__LL)
>> - different CPU governors including 'performance'
>> - independant of CPU load
>> - even with no other userspace processes but init, the login sh and cyclictest
>> (I use a minimal builroot rfs).
>> - independant of cyclictest prio
>>
>> Using the same buildroot rfs on a A20 SoC (bananapro) with 4.1.7-rt8 shows
>> acceptable rt-latencies of ~ 200us.
>>
>> Ftracing 'irqsoff' on the rt-patched 4.1 kernel shows always long latency
>> after 'raw_spin_lock_irq' (see log below).
>>
>> Do you think it is a driver which stalls or hrtimer not working correctly on
>> this SoC or someting else?
>> If it is a driver, how could I find out which it is?
>
> Try to capture the issue with full function tracing.
>
> cyclictest --smp -p80 -m -f -b 5000
>
> That stops the tracer when the latency is > 5ms. You might have to
> increase the trace buffer size. Please upload the trace to some place
> or send it to me privately (it's over the size limit of the list).
>
> Thanks,
>
> tglx
>
>
next prev parent reply other threads:[~2015-09-29 6:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-26 9:38 Long max latencies on Wandbaord / Freescale i.MX6 Matthias Meier
2015-09-26 14:16 ` Joe Korty
2015-09-26 14:52 ` Matthias Meier
2015-09-27 11:49 ` Thomas Gleixner
2015-09-29 6:30 ` Matthias Meier [this message]
2015-09-29 7:04 ` Re[2]: " Matthias Klein
2015-09-30 7:11 ` Thomas Gleixner
2015-10-01 8:08 ` Matthias Meier
2015-10-02 6:48 ` Matthias Meier
2015-10-02 7:40 ` Mats Karrman
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=560A3020.5090909@gmx.net \
--to=matthias.j.meier@gmx.net \
--cc=linux-rt-users@vger.kernel.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.