All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Charles Steinkuehler <charles@steinkuehler.net>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Altera Cyclone V
Date: Wed, 08 Jan 2014 00:13:28 +0100	[thread overview]
Message-ID: <52CC8A18.2020807@xenomai.org> (raw)
In-Reply-To: <52CC85C5.4060703@steinkuehler.net>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/07/2014 11:55 PM, Charles Steinkuehler wrote:
> On 1/7/2014 4:47 PM, Gilles Chanteperdrix wrote:
>> On 01/07/2014 11:19 PM, Charles Steinkuehler wrote:
>>> The single-core A8 on the BeagleBone is good for about 25 uS
>>> typical and 80 uS or so worst case latency.
>> 
>> That is really high. On a 720MHz OMAP3, with the latency test
>> running with a 100us period, I typically get latencies close to
>> 40us (under dohell load). Granted I do not run many
>> functionalities of the SOC (typically, not the graphic
>> processor), but I would not expect latencies to get so high. Is
>> there any chance you could trigger a trace with the I-pipe
>> tracer?
> 
> I can try...give me a while to sort through the I-pipe:Tracer wiki
> page (or are there better instructions?).

Enable I-pipe tracer in kernel configuration, especially
IPIPE_TRACE_MCOUNT, and IPIPE_TRACE_VMALLOC.

When the system has booted, do:

echo 1 > /proc/ipipe/trace/enable
echo 1000 > /proc/ipipe/trace/back_trace_points

Then launch latency -p 200 -f

Run the load you usually run (for instance dohell).

When the test is finished, do
cat /proc/ipipe/trace/frozen > /tmp/frozen.txt

then post the resulting frozen.txt to this list.

Expect the latency found by the test to be double the latency you get
without the I-pipe tracer.

> 
> This may also have improved somewhat...my numbers are from a year
> or so ago when everything first started working.  I haven't been
> regression testing the latest kernels.  <blush>  I know there have
> been significant improvements on both the Xenomai side and with the
> BeagleBone kernel patches/drivers.

Actually, OMAP3 latency has been around 40us since 2.6.35. 2.6.33 even
was at 35us. Note that it is the latency at 10kHz, if you are running
with a lower frequency, you will get higher latencies.

Also note that there are some options which improve latency, such as:
compiling kernel and user-space using thumb2 (but in that case do not
forget to enable ARM_ERRATA_430973)
optimize for size
disable CONFIG_PREEMPT
enable stack unwinding
disable CONFIG_SMP (obviously, but it may be enabled by default if you
are using omap2plus_defconfig, since it also compiles for omap4)
disable unlocked context switch (xenomai option)
disable root thread priority coupling (xenomai option)


- -- 
                                                                Gilles.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iD8DBQFSzIoYGpcgE6m/fboRAhyRAJ48P6kxKSPh2IeNP0xwwh8cr35KhwCfQo20
cMlOFxFAV7dVNKaPWi6+XW0=
=hMP+
-----END PGP SIGNATURE-----


  reply	other threads:[~2014-01-07 23:13 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-07 19:52 [Xenomai] Altera Cyclone V Lowell Gilbert
2014-01-07 20:25 ` Gilles Chanteperdrix
2014-01-08 22:45   ` Lowell Gilbert
2014-01-08 23:19     ` Gilles Chanteperdrix
2014-01-09 18:06       ` Lowell Gilbert
2014-01-10  0:14         ` Gilles Chanteperdrix
2014-01-14  0:15       ` Lowell Gilbert
2014-01-07 22:19 ` Charles Steinkuehler
2014-01-07 22:47   ` Gilles Chanteperdrix
2014-01-07 22:55     ` Charles Steinkuehler
2014-01-07 23:13       ` Gilles Chanteperdrix [this message]
2014-01-08  0:51         ` Charles Steinkuehler
2014-01-08  4:04           ` Charles Steinkuehler
2014-01-08  8:21             ` Gilles Chanteperdrix
2014-01-08  8:58             ` Gilles Chanteperdrix
2014-01-11 10:22           ` [Xenomai] i-pipe tracer on in production kernels? (was Re: Altera Cyclone V) Michael Haberler
2014-01-11 12:16             ` Gilles Chanteperdrix
2014-01-11 18:11             ` Gilles Chanteperdrix
2014-01-11 18:20             ` Philippe Gerum
2014-01-11 18:27               ` Gilles Chanteperdrix
2014-01-11 19:01                 ` Philippe Gerum
2014-01-11 19:11                   ` Gilles Chanteperdrix
2014-01-08  3:21     ` [Xenomai] Altera Cyclone V Lowell Gilbert

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=52CC8A18.2020807@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=charles@steinkuehler.net \
    --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.