From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Thierry Bultel <thierry.bultel@wanadoo.fr>
Cc: Xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] big deviation on clock_nanosleep wait time
Date: Mon, 04 Nov 2013 17:38:20 +0100 [thread overview]
Message-ID: <5277CD7C.3050903@xenomai.org> (raw)
In-Reply-To: <5277CC99.7050602@wanadoo.fr>
On 11/04/2013 05:34 PM, Thierry Bultel wrote:
> Le 04/11/2013 17:11, Gilles Chanteperdrix a écrit :
>> On 11/04/2013 05:16 PM, Thierry Bultel wrote:
>>> Hi,
>>>
>>> My configuration is
>>> xenomai-2.6.3 + ipipe-1.18-13, freescale kernel rel_imx_3.0.35_4.0.0, on
>>> the IMX6Q.
>>>
>>> I want to use CONFIG_HIGH_RES_TIMERS and CONFIG_HZ=100, which is the
>>> default value for the IMX.
>>
>> Do you observe the same issue without CONFIG_HIGH_RES_TIMERS?
>>
>>
>
> Without CONFIG_HIGH_RES_TIMERS, the wait precision is dictated by
> CONFIG_HZ, in other words 10 ms.
>
> FYI as I needed to wait 30ms with a 1 ms precision, I formerly had to
> hack Kconfig to allow CONFIG_HZ=1000 (and it worked fine).
It appeared to work fine, however Linux is not an RTOS, it can not
guarantee a 1ms latency. Why not using Xenomai for precise sleeps? Other
than that, I have no idea, I would use the I-pipe tracer to understand
what is going on in between the time when the timer ticks and the time
when the task is woken up.
--
Gilles.
next prev parent reply other threads:[~2013-11-04 16:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-04 16:16 [Xenomai] big deviation on clock_nanosleep wait time Thierry Bultel
2013-11-04 16:11 ` Gilles Chanteperdrix
[not found] ` <5277CC99.7050602@wanadoo.fr>
2013-11-04 16:38 ` Gilles Chanteperdrix [this message]
2013-11-04 16:16 ` 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=5277CD7C.3050903@xenomai.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=thierry.bultel@wanadoo.fr \
--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.