From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Tobias Luksch <Tobias.Luksch@itk-engineering.de>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] Problems with running Xenomai on Core i5
Date: Wed, 07 Aug 2013 20:01:14 +0200 [thread overview]
Message-ID: <52028B6A.1040601@xenomai.org> (raw)
In-Reply-To: <1124806E0C09F04A992E69AE2EC7FA3C80A6B1@swexchange01.itk.local>
On 08/07/2013 03:38 PM, Tobias Luksch wrote:
> Hello,
>
> (Some key data to begin with: kernel v3.2.21, xenomai v2.6.2.1,
> ipipe-core-3.2.21-x86-5.patch as within the 2.6.2.1 xenomai release, all on
> Ubuntu 12.04 with gcc 4.6.3)
>
>
> currently I am trying to use Xenomai on an embedded PC with an Intel Core i5
> CPU (M520 @ 2.40GHz). While debugging processing times of our application, I
> encountered strange non-determinism, i.e. parts of the program doing only
> computations (w/o any mutexes etc.) sometimes took more than twice the time to
> compute than usual.
>
> So I wrote a simple test program (attached) based on
> examples/native/trivial-periodic creating a 1000Hz loop. In each cycle, a few
> 1000 sine functions are computed, with measuring the time it takes to do so. I
> would expect a rather constant computation time, but I see significant jitter
> (average duration ~0.09ms, jitter up to +-40%).
>
> What's more, when I generate heavy CPU load on the linux side, the computation
> time for the sine functions drops to about 0.06ms and shows no more significant
> jitter at all. As soon as I stop producing CPU load, computation time and
> jitter go up again.
>
> Running the same test program on a laptop with an Intel Core2 Duo and same
> kernel version, kernel settings, and xenomai version runs as expected: constant
> computation time, very low jitter, no influence by adding load on the linux
> side.
>
> To me it looks like some power management feature of the CPU is kicking in. I
> have disabled (hopefully) all relevant features in the BIOS (like EISS,
> TurboBoost, Idle Modes, ...) and in the kernel (CPU frequency scaling, ...,
> config file of me latest try is attached), /proc/cpuinfo always shows the same
> frequency. Still I get the behavior described above.
The config file lacks CONFIG_ACPI, you should enable ACPI, only
CONFIG_ACPI_PROCESSOR should be disabled.
Other than that, you should not use 3.2.21, this version is known to
have issues with xenomai. Also, since you are using a Debian based
system, you may try to add:
deb http://www.xenomai.org/debian squeeze main
to /etc/apt/sources.list, then do
apt-get update
apt-get install xenomai-keyring
apt-get update
apt-get install linux-image-3.5.7-xenomai-2.6.2.1
--
Gilles.
next prev parent reply other threads:[~2013-08-07 18:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-07 13:38 [Xenomai] Problems with running Xenomai on Core i5 Tobias Luksch
2013-08-07 15:13 ` Matthew Fornero
2013-08-07 18:05 ` Gilles Chanteperdrix
[not found] ` <1124806E0C09F04A992E69AE2EC7FA3C80A996@swexchange01.itk.local>
2013-08-09 12:46 ` Matthew Fornero
2013-08-07 18:01 ` Gilles Chanteperdrix [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-08-09 12:48 Tobias Luksch
2013-08-09 18:27 ` Gilles Chanteperdrix
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=52028B6A.1040601@xenomai.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=Tobias.Luksch@itk-engineering.de \
--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.