All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Howard Lee Harkness <howard.lee.harkness@gmail.com>
Cc: Xenomai@xenomai.org
Subject: Re: [Xenomai] Seeking recommendations for SBC with precision timer
Date: Fri, 26 Oct 2012 17:11:36 +0200	[thread overview]
Message-ID: <508AA828.8050702@xenomai.org> (raw)
In-Reply-To: <CAMVghhVXP=VckoAcgSjYBxO=2i2gsAse-or0xvBbNJNuodu2yA@mail.gmail.com>

On 10/26/2012 04:46 PM, Howard Lee Harkness wrote:
> Thank you for your fast responses!
> 
> 1) Not necessarily fanless, but that would be nice.
> 
> 2) Don't need a timestamp. All I need is a precision interval. I want to be
> able to send a signal to a device, and read a measurement exactly 11 us (or
> 5 us, or 17 us, or 31 us, etc.) later, plus or minus no more than about 1
> us. <1 us precision would be better, but I think for now 1 us resolution is
> sufficient. Reliably, repeatably.

What you are asking is a latency of less than 1us, not a resolution.
Here is a graph showing the (user-space wake-up) latencies we get with
various configurations of Xenomai 2.6.1 over Linux 3.4.6 on an atom 230:

http://xenomai.org/~gch/core-3.4-latencies/atom.png

These are user-space wake-up latencies, you get better result with irqs
handlers. But 1us, that is a bit hard. The only way I know to do this,
is, for instance, if you know that the maximum irq latency is 15us,
wake-up 15us before the wanted wake-up date, and spin in the timer
handler until the time you want, using a clocksource which has a better
resolution than 1us. x86 generally use the tsc which is such a clocksource.


-- 
					    Gilles.


  reply	other threads:[~2012-10-26 15:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-26 12:22 [Xenomai] Seeking recommendations for SBC with precision timer Howard Lee Harkness
2012-10-26 12:36 ` Nicholas Mc Guire
     [not found] ` <CAHzTO8nxt5KcK_mekgArQXqdLGQC=d3bWFBse=H6cZmpRvon-A@mail.gmail.com>
2012-10-26 14:46   ` Howard Lee Harkness
2012-10-26 15:11     ` Gilles Chanteperdrix [this message]
2012-10-26 16:34       ` Howard Lee Harkness
2012-10-26 17:06         ` 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=508AA828.8050702@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=Xenomai@xenomai.org \
    --cc=howard.lee.harkness@gmail.com \
    /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.