From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Manuel Huber <manuel.h87@gmail.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Decrease Latency (below 10 us) on x32 or x32_64?
Date: Wed, 03 Apr 2013 00:20:14 +0200 [thread overview]
Message-ID: <515B599E.4020003@xenomai.org> (raw)
In-Reply-To: <515B1A28.6070802@gmail.com>
On 04/02/2013 07:49 PM, Manuel Huber wrote:
> Hello!
>
> Okay, I miss-configured the last kernel, HPET was still on. Now I compiled
> one version on 32bit and one on 64bit. Sorry for the delay, I had some
> issues with 64bit (RTL8169 card doesn't work; I have to check what's the
> problem (I will open another thread for this, but maybe it's just related
> to our machine because there is an on-board chip that may cause the
> problem...). I've included two trace-files, one for 32bits and one for
> 64bits, both with HPET disabled.
>
> I also checked the C1 Setting in BIOS and the kernel configuration:
>
> |---------------------------+----------|
> | AMD C1E Support | Disabled |
> | AMD K8 Cool&Quiet control | Disabled |
> |---------------------------+----------|
> | HPET Support | Disabled |
> |---------------------------+----------|
>
>> You would probably have better latencies with using Xenomai on only one
>> core. But 36us with the tracer on does not look so bad, does it?
>
> Is it enough to boot the kernel with isolcpus=cpu-id and then run the
> latency tool with the -c option or do I have to restrict IRQ's to the
> specific cpu-id? Do I have to adjust /proc/irq/<some-number>/smp_affinity,
> or is there some other thing I have to do?
Hi,
You have to use the "supported_cpus" argument. If xenomai is not
compiled as a module, pass the "xeno_nucleus.supported_cpus" argument on
the kernel command line.
>
> So, the timing of the system is awesome most of the time. I just wanted to
> clarify, whether there is a problem with my setup, or it's normal. It would
> be cool to get rid of let's say all above 10µs. It just rarely happens, but
> it does.
If there is a problem with your setup, it does not appear clearly on the
traces you sent. Maybe what would help is to trigger a trace on the
opposite cpus when the current cpu has spun for some time on a nucleus lock.
>
> These were the results (tracer disabled) of a test in single/vga mode
> (nouveau driver not in use), with heavy stress on the system (nice -20; 10
> instances of burnK7) and IRQ mode (latency -t 2) for 1 hour. (I have
I do not know what burnK7 does, but if it only uses cpu it is not really
a heavy stress. See "dohell" for stressing the system with a more
composite load.
> already posted them, just to point out the problem)
>
> Thanks again for your help!
>
> Statistics
> ----------
>
> |-----+---------+---------+---------+---------+-----+-------------------|
> | RTH | lat min | lat avg | lat max | overrun | msw | time |
> | RTS | -3.386 | -2.725 | 19.469 | 0 | 0 | 01:00:00/01:00:00 |
> |-----+---------+---------+---------+---------+-----+-------------------|
Your system is not calibrated correctly. In order to measure latency you
should run:
echo 0 > /proc/xenomai/latency
Then when you have run the latency test for a sufficient time, echo the
minimum latency you measured, minus some safety margin, to
/proc/xenomai/latency again. If you want to avoid setting the latency
again every time you boot, use the kernel configuration parameter
CONFIG_XENO_OPT_TIMING_SCHEDLAT
--
Gilles.
next prev parent reply other threads:[~2013-04-02 22:20 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-19 20:14 [Xenomai] Decrease Latency (below 10 us) on x32 or x32_64? Manuel Huber
2013-03-19 20:46 ` Gilles Chanteperdrix
2013-03-26 10:18 ` Manuel Huber
2013-03-26 11:57 ` Gilles Chanteperdrix
2013-03-28 10:06 ` Manuel Huber
2013-03-28 12:46 ` Gilles Chanteperdrix
2013-03-28 13:04 ` Manuel Huber
2013-03-28 20:24 ` Gilles Chanteperdrix
2013-04-02 17:49 ` Manuel Huber
2013-04-02 22:20 ` Gilles Chanteperdrix [this message]
2013-04-13 16:42 ` Gilles Chanteperdrix
2013-04-18 5:51 ` Manuel Huber
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=515B599E.4020003@xenomai.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=manuel.h87@gmail.com \
--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.