From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: at91_enthus <nwromania@domain.hid>
Cc: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>,
xenomai@xenomai.org
Subject: Re: [Xenomai-help] High resolution timers disabled on AT91SAM9G20 board after patching
Date: Sun, 07 Nov 2010 18:15:11 +0100 [thread overview]
Message-ID: <4CD6DE9F.7000100@domain.hid> (raw)
In-Reply-To: <AANLkTinfxNrqc0VZh=RAzpFzPBPVhPmzDC1zviDdwr=0@domain.hid>
at91_enthus wrote:
> Yes, it solved the issue.
>
> There is one thing that bothers me, though. When I run "xeno-test", the
> average and minimal latencies are constant all the time.
>
> The unpatched version of the xeno kernel seems more consistent when it comes
> to minimum, maximum and average latencies.
>
> I attached a couple of snippets of xeno-test outputs .
Do not trust xeno-test too much. Are you sure the only difference
between the two runs is the patch, for instance, have you not played
with the CONFIG_ARM_FCSE option? Also, good benchmarks are done with
running a separate load, and not with xeno-test, in fact.
Also, using the high-res timers configuration has a high overhead on
such low-end configurations as AT91s, so has CONFIG_PREEMPT. So, if you
are looking for a configuration with the lowest overhead possible, I
would recommend disabling CONFIG_HIGH_RES_TIMERS and using
CONFIG_PREEMPT_NONE or CONFIG_PREEMPT_VOLUNTARY, and relying on Xenomai
for the low latency and high resolution timer features. (You can measure
the overhead of kernel options with the hackbench test for instance).
On the AT91 I have (AT91SAM9263), the minimum and average latencies
oscillate much less than for your unpatched kernel, either with or
without the patch so I wonder if you would not have another issue. Do
you have FCSE enabled?
To give you an idea of the figures here, with FCSE enabled, the minimal
latency is around 15us and the average latency around 50us. And they
vary in a 5us range, they do not make big jumps.
--
Gilles.
next prev parent reply other threads:[~2010-11-07 17:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-29 18:34 [Xenomai-help] High resolution timers disabled on AT91SAM9G20 board after patching at91_enthus
2010-10-29 22:06 ` Gilles Chanteperdrix
2010-11-07 10:47 ` Gilles Chanteperdrix
[not found] ` <4CD68353.6030600@domain.hid>
2010-11-07 16:09 ` at91_enthus
2010-11-07 17:15 ` Gilles Chanteperdrix [this message]
2010-11-07 19:45 ` at91_enthus
2010-11-07 20:24 ` Gilles Chanteperdrix
2010-11-07 20:34 ` at91_enthus
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=4CD6DE9F.7000100@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=nwromania@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.