All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: "M. Koehrer" <mathias_koehrer@domain.hid>
Cc: xenomai@xenomai.org, xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] Re: [Xenomai-help] Limiting Xenomai tasks to one certain core in a dual	core system
Date: Wed, 22 Nov 2006 09:49:10 +0100	[thread overview]
Message-ID: <45640F06.5000005@domain.hid> (raw)
In-Reply-To: <13096879.1164184060512.JavaMail.ngmail@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 1301 bytes --]

M. Koehrer wrote:
> Hi all,
> 
> I want to run Xenomai and rtnet (using RTDM) on a dual core CPU.
> Using the kernel parameter isolcpus I can force the standard Linux tasks
> to run on one of the cores.
> The other core should be used exclusively by all real time tasks (including rtnet).
> I can - of course - pass a parameter on each rt_task_create() call.
> However how can I force rtnet (using RTDM) to run on this CPU core?

You hit a weak point, see the Task Market in the wiki: "CPU affinity for
RTDM threads." We both need an API for RTDM and its application on
RTnet. Not complex work, just work...

> Is there a possibility to mask the CPUs to be used globally?
> This could also avoid to pass the CPU number with each rt_task_create() call.

Well, that would actually be an additional way. Yeah, maybe some global
CPU mask that controls the affinity on future thread creation. We could
export it via /proc so that you can set it right before starting a
specific group of applications and drivers.

On the long term, a control interface to the Xenomai scheduler would be
good so that things like policy, priority, time-slice, or CPU affinity
could be manipulated with some command line tool or via /proc after
thread creation.

Further feedback welcome!

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]

  reply	other threads:[~2006-11-22  8:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-22  8:27 [Xenomai-help] Limiting Xenomai tasks to one certain core in a dual core system M. Koehrer
2006-11-22  8:49 ` Jan Kiszka [this message]
2006-11-22 10:29   ` [Xenomai-core] " Jan Kiszka
2006-11-25 11:00     ` [Xenomai-core] " Jan Kiszka
2006-11-25 15:12       ` Jan Kiszka
2006-11-25 18:13         ` Philippe Gerum

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=45640F06.5000005@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=mathias_koehrer@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.