All of lore.kernel.org
 help / color / mirror / Atom feed
From: Charles Steinkuehler <charles@steinkuehler.net>
To: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: [Xenomai] Dedicated Core?
Date: Sun, 30 Mar 2014 15:49:15 -0500	[thread overview]
Message-ID: <5338834B.5090604@steinkuehler.net> (raw)

Is it possible to (easily) dedicate a CPU core to a single Xenomai
user-space thread?

Background:
I am running software based step/direction generation logic for motion
control as part of LinuxCNC.  On the x86 platform, latency numbers are
very good, and it's possible to run fast enough as a Xenomai user-space
thread.

ARM systems have significantly worse latency numbers, but on the
BeagleBone I have migrated the step/direction code to the PRU on-board
co-processors so everything works fine (actually better than on most x86
systems).

But most available ARM CPUs do not have the PRU co-processors found on
the BeagleBone.  However, there are a number of systems that have
multiple cores, and I'm particularly looking at the quad-core iMX6 parts.

If it would be possible to simply keep a thread running full-time on one
core, I could get really good step/direction performance without having
to worry about interrupt latency, but I don't know if there's an (easy)
way to do this using Xenomai, or if the 'dedicated' core would still be
subject to hardware interrupts and if my running thread might be
occasionally migrated to other physical cores.

-- 
Charles Steinkuehler
charles@steinkuehler.net

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20140330/39738b01/attachment.sig>

             reply	other threads:[~2014-03-30 20:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-30 20:49 Charles Steinkuehler [this message]
2014-03-30 21:41 ` [Xenomai] Dedicated Core? Gilles Chanteperdrix
2014-03-30 22:04   ` Charles Steinkuehler
2014-03-30 23:20     ` Lennart Sorensen
2014-03-30 23:22     ` Gilles Chanteperdrix
2014-03-31 11:29     ` Gilles Chanteperdrix
2014-03-31 12:19       ` Andy Pugh
2014-03-31 12:24         ` 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=5338834B.5090604@steinkuehler.net \
    --to=charles@steinkuehler.net \
    --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.