From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Adrien LEMAITRE <adrien.lemaitre@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Program hangs using "rt_task_sleep" in a particular way
Date: Mon, 27 Jun 2011 12:53:22 +0200 [thread overview]
Message-ID: <4E086122.7060405@domain.hid> (raw)
In-Reply-To: <BANLkTi=2WnfLFC9DVQY81obGPO6_CG_PCA@mail.gmail.com>
On 06/27/2011 08:31 AM, Adrien LEMAITRE wrote:
> Hello,
>
> I raise a problem encountered and always present. Before on this configuration
> :
>
> - linux kernel : 2.6.29.6
> - adeos patch : adeos-ipipe-2.6.29-arm-1.13-00.patch
> - xenomai : 2.4.8
> - host linux distribution : ubuntu 10.04 (64 bits)
> - compiler : gcc 4.2.1 (buildroot's generated toolchain)
>
> And it is always present with this configuration :
>
> - Linux kernel : 2.6.37
> - Adeos patch : adeos-ipipe-2.6.37-x86-2.9-00.patch
> - Xenomai : 2.5.6
> - Host Linux distribution : Ubuntu 10.04
> - Compiler : gcc-4.4.3
>
> Configuration of kernel:
>
> I used the default configuration of Ubunut 10.04 and i change this:
> In "Power management and ACPI options" :
> - deactivate ACPI
This is a bad idea. Only ACPI_PROCESSOR is problematic. See:
http://www.xenomai.org/index.php/Configuring_x86_kernels
> - deactivate CPU idle PM support
> In "Device drivers/Input device support/Miscelaneous devices":
> - deactivate PC Speaker support
> In "Processor type and features":
You should only need this if you have mis-configured your kernel. Again,
see the "Processor type" paragraph in the Configuring_x86_kernels page.
> - deactivate HPET_TIMER
> - deactivate Enable -fstack-protector buffer overflow detection
> (EXPERIMENTAL)
>
>
> We encounter a problem in a particular situation. In the attached
> source, when we change the value passed to rt_task_sleep (line 36), the
> program never returns.
>
> This appears only with values greater or equal to 100000 (and maybe some
> other values between 10000 and 100000) and only when we use
> rt_task_sleep between the two rt_task_spawn calls.
>
> Is there something we've done wrong ? A problem with the kernel
> configuration? Or a bug of Xenomai ?
The real-time task are using 100% cpu time. You can not do that. A
real-time task should suspend from time to time and let non real-time
activities run.
--
Gilles.
next prev parent reply other threads:[~2011-06-27 10:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-27 6:31 [Xenomai-help] Program hangs using "rt_task_sleep" in a particular way Adrien LEMAITRE
2011-06-27 10:53 ` Gilles Chanteperdrix [this message]
[not found] ` <BANLkTimCab2u0EOrJ6JtLTVLNAzktbvFQg@domain.hid>
2011-06-28 13:08 ` Gilles Chanteperdrix
2011-06-28 14:02 ` Adrien LEMAITRE
2011-06-28 15:08 ` Gilles Chanteperdrix
-- strict thread matches above, loose matches on Subject: below --
2011-03-07 9:18 Jonathan ILIAS-PILLET
2011-03-07 10:15 ` Gilles Chanteperdrix
2011-03-07 14:29 ` Jonathan ILIAS-PILLET
[not found] ` <AANLkTinnCqCNrJ-tukjxGd-zdtM9nuG2fw4Zer+iTSiQ@mail.gmail.com>
2011-03-07 14:33 ` 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=4E086122.7060405@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=adrien.lemaitre@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.