All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Rob Gubler <rgubler@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] CPU affinity on a per thread basis
Date: Mon, 16 Jun 2008 01:15:08 +0200	[thread overview]
Message-ID: <18517.41596.577449.774168@domain.hid> (raw)
In-Reply-To: <e4ef24880806151610s634307efi73c47695eadde067@domain.hid>

Rob Gubler wrote:
 > On Sun, Jun 15, 2008 at 4:04 PM, Gilles Chanteperdrix <
 > gilles.chanteperdrix@xenomai.org> wrote:
 > 
 > > Rob Gubler wrote:
 > >  > Hello,
 > >  >
 > >  > I am using Xenomai 2.4.  I'd like to explicitly control which CPU a
 > >  > particular thread executes on.  The Xenomai POSIX skin documentation
 > > says to
 > >  > achieve this with
 > >  > pthread_attr_setaffinity_np(...)<%28
 > > http://www.xenomai.org/documentation/trunk/html/api/group__posix__threadattr.html#gc79718c596b9cb0fdff961eede1f5995%29
 > > >my
 > >  > thread needs to be created in the kernel space. I just want to verify
 > >  > that this can not be accomplished in a user space thread?
 > >  >
 > >  > I found a post<
 > > https://mail.gna.org/public/xenomai-help/2007-05/msg00300.html>a
 > >  > year or so ago about this that mentions CPU affinity using
 > >  > sched_setaffinity(...).  My understanding though is that this particular
 > >  > call sets the affinity for the entire process/task and doesn't allow
 > > thread
 > >  > specific CPU affinity control.  Is this true?
 > >
 > > The posix skin documentation only documents the kernel-space service,
 > > because there is no special need to implement these services in
 > > kernel-space: the libc already implements both
 > > pthread_attr_setaffinity_np and pthread_setaffinity_np
 > >
 > 
 > 
 > Thanks Gilles.  Did you mean:  "The posix skin documentation only documents
 > the kernel-space service, because there is no special need to implement
 > these services in **user-space** ..."  ??

Yes, in user-space, because they already exist there.

-- 


					    Gilles.


      reply	other threads:[~2008-06-15 23:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-15 22:40 [Xenomai-help] CPU affinity on a per thread basis Rob Gubler
2008-06-15 23:04 ` Gilles Chanteperdrix
2008-06-15 23:10   ` Rob Gubler
2008-06-15 23:15     ` Gilles Chanteperdrix [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=18517.41596.577449.774168@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=rgubler@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.