From: Jan Kiszka <jan.kiszka@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: Xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] accuracy of system clock
Date: Mon, 19 Nov 2007 16:47:58 +0100 [thread overview]
Message-ID: <4741B02E.8050201@domain.hid> (raw)
In-Reply-To: <2ff1a98a0711190725j78fbdc85j852cda9621a067be@domain.hid>
Gilles Chanteperdrix wrote:
> On Nov 19, 2007 10:29 AM, Theo Veenker <Theo.Veenker@domain.hid> wrote:
>> Hi all,
>>
>> I'm using clock_gettime(REALTIME,&t) in a kernel module (posix skin) to
>> timestamp something. I know accessing this clock from user space yields
>> values different from those returned by the xenomai posix skin due to
>> ntpdate.
>
> Well, you can use the posix skin in user-space as well.
BTW, there is a dedicated clocktest in the testsuite to estimate drifts
of Xenomai's clocks from the Linux gettimeofday.
>
>> But my concern is that the difference in pace is too much.
>> On one system it is about 90us/s wrong on another it is 160us/s.
>
>> I assume the speed of the ntp corrected clock is more or less correct.
>> Is there some calibration procedure I can run to tweak xenomai to make
>> sure in xenomai I get 1e9 ticks per *true* second?
>> I have enabled CONFIG_X86_UP_APIC.
>
> There is currently no way to calibrate Xenomai, but there is a known
True. In fact, a generic clock adjustment interface using arbitrary
external sources is on the agenda for the next major Xenomai version
(2.5?) - which will unfortunately take a while to be rolled out. But
inputs/contributions to this effort are always welcome and can
accelerate the development at least of this particular feature.
> issue about the APIC frequency specifically. I do not know if some
> quick fixes have been posted, but there is a (rather large) series of
> patches fixing it.
The APIC issue only impacts the timer, not the clock. And so far I've
seen only too early timer events, basically causing overhead due to
multiple early timer IRQs.
Jan
--
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
prev parent reply other threads:[~2007-11-19 15:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-19 9:29 [Xenomai-help] accuracy of system clock Theo Veenker
2007-11-19 15:25 ` Gilles Chanteperdrix
2007-11-19 15:46 ` Theo Veenker
2007-11-19 20:54 ` Gilles Chanteperdrix
2007-11-19 15:47 ` Jan Kiszka [this message]
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=4741B02E.8050201@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=gilles.chanteperdrix@xenomai.org \
--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.