All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonas Witt <jonas.witt@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] Huge clock drift
Date: Thu, 26 May 2011 19:28:41 +0200	[thread overview]
Message-ID: <4DDE8DC9.2020905@domain.hid> (raw)

Hi all,

i am having a problem concerning the clock drift under load:

# /usr/xenomai/bin/clocktest
== Tested clock: 0 (CLOCK_REALTIME)
CPU      ToD offset [us] ToD drift [us/s]      warps max delta [us]
--- -------------------- ---------------- ---------- --------------
   0          775571614.0       166776.858          0            0.0


It remains in the hundreds of MILLIseconds, changing constantly. My 
setup consists of an embedded Intel Atom board (1.6GHz Z530 processor) 
with a 2.6.32.7 kernel and Xenomai 2.5.2. Latencies under load are 
reasonable. Mean latency < 10us. Maximum latency < 40us.

Without load the ToD offset is approximately constant over time with a 
ToD drift in the range of 10 microseconds (strangely after a while this 
settles in a range of 2 microseconds). Does anyone have an idea how this 
can be caused? As a workaround I currently use rt_timer_read() in all 
relevant programs (also the non-realtime ones), since I need consistent 
timestamps between realtime and non-realtime tasks.

One other (maybe unrelated) strange behavior is occasional secondary 
mode switches when calling rt_queue_read(...).

Any help would be appreciated. Thanks in advance!

Cheers,
Jonas



             reply	other threads:[~2011-05-26 17:28 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-26 17:28 Jonas Witt [this message]
2011-05-27  6:40 ` [Xenomai-help] Huge clock drift Gilles Chanteperdrix
2011-05-27 14:19   ` Jonas Witt
2011-05-27 14:38     ` Gilles Chanteperdrix
2011-05-27 15:05       ` Jan Kiszka
2011-05-27 16:22         ` Gilles Chanteperdrix
2011-05-27 18:29         ` Jonas Witt
2011-05-27 19:11           ` Gilles Chanteperdrix
2011-05-28 14:32             ` Jan Kiszka
2011-05-28 22:08               ` Gilles Chanteperdrix
2011-05-29 15:38                 ` Jan Kiszka
2011-05-30  7:03               ` Pavel Machek
2011-05-30  7:07                 ` Jan Kiszka
2011-05-30  7:43                   ` Jonas Witt
2011-05-30  7:57                     ` Jan Kiszka
2011-05-30 10:31                       ` Jonas Witt
2011-05-30 10:33                         ` Pavel Machek
2011-05-30 12:32                           ` Jonas Witt
2011-05-30 13:08                             ` Jan Kiszka

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=4DDE8DC9.2020905@domain.hid \
    --to=jonas.witt@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.