* Binding a thread (or specific process) to a designated CPU
@ 2005-08-22 21:56 Brian D. McGrew
2005-08-22 22:05 ` Jesper Juhl
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Brian D. McGrew @ 2005-08-22 21:56 UTC (permalink / raw)
To: linux-kernel
Good morning,
Using FC3 or FC4 with the 2.6.9 or later kernel, we're looking for a way
to bind a thread (or an entire process) to a designated CPU. We're
using dual processor systems as well as P4 with HT and Xeons so all of
our boxes either have two CPU's or 'appear' to have two.
I want to be able, in my C++ code to designate a specific thread to a
specific processor. I've heard rumors that with the 2.6 kernel this is
now possible???
Thanks,
-brian
Brian D. McGrew { brian@visionpro.com || brian@doubledimension.com }
---
> Those of you who think you know it all,
really annoy those of us who do!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Binding a thread (or specific process) to a designated CPU
2005-08-22 21:56 Binding a thread (or specific process) to a designated CPU Brian D. McGrew
@ 2005-08-22 22:05 ` Jesper Juhl
2005-08-22 22:07 ` Tomasz Torcz
2005-08-22 22:25 ` Douglas McNaught
2 siblings, 0 replies; 4+ messages in thread
From: Jesper Juhl @ 2005-08-22 22:05 UTC (permalink / raw)
To: Brian D. McGrew; +Cc: linux-kernel
On 8/22/05, Brian D. McGrew <brian@visionpro.com> wrote:
> Good morning,
>
> Using FC3 or FC4 with the 2.6.9 or later kernel, we're looking for a way
> to bind a thread (or an entire process) to a designated CPU. We're
#include <sched.h>
int sched_setaffinity(pid_t pid, unsigned int len, unsigned long *mask);
int sched_getaffinity(pid_t pid, unsigned int len, unsigned long *mask);
--
Jesper Juhl <jesper.juhl@gmail.com>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Binding a thread (or specific process) to a designated CPU
2005-08-22 21:56 Binding a thread (or specific process) to a designated CPU Brian D. McGrew
2005-08-22 22:05 ` Jesper Juhl
@ 2005-08-22 22:07 ` Tomasz Torcz
2005-08-22 22:25 ` Douglas McNaught
2 siblings, 0 replies; 4+ messages in thread
From: Tomasz Torcz @ 2005-08-22 22:07 UTC (permalink / raw)
To: linux-kernel; +Cc: brian
[-- Attachment #1: Type: text/plain, Size: 398 bytes --]
On Mon, Aug 22, 2005 at 02:56:47PM -0700, Brian D. McGrew wrote:
> Using FC3 or FC4 with the 2.6.9 or later kernel, we're looking for a way
> to bind a thread (or an entire process) to a designated CPU.
man sched_setaffinity
--
Tomasz Torcz To co nierealne - tutaj jest normalne.
zdzichu@irc.-nie.spam-.pl Ziomale na życie mają tu patenty specjalne.
[-- Attachment #2: Type: application/pgp-signature, Size: 229 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Binding a thread (or specific process) to a designated CPU
2005-08-22 21:56 Binding a thread (or specific process) to a designated CPU Brian D. McGrew
2005-08-22 22:05 ` Jesper Juhl
2005-08-22 22:07 ` Tomasz Torcz
@ 2005-08-22 22:25 ` Douglas McNaught
2 siblings, 0 replies; 4+ messages in thread
From: Douglas McNaught @ 2005-08-22 22:25 UTC (permalink / raw)
To: Brian D. McGrew; +Cc: linux-kernel
"Brian D. McGrew" <brian@visionpro.com> writes:
> Good morning,
>
> Using FC3 or FC4 with the 2.6.9 or later kernel, we're looking for a way
> to bind a thread (or an entire process) to a designated CPU. We're
> using dual processor systems as well as P4 with HT and Xeons so all of
> our boxes either have two CPU's or 'appear' to have two.
>
> I want to be able, in my C++ code to designate a specific thread to a
> specific processor. I've heard rumors that with the 2.6 kernel this is
> now possible???
Look into sched_setaffinity() and friends.
-Doug
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-08-22 22:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-22 21:56 Binding a thread (or specific process) to a designated CPU Brian D. McGrew
2005-08-22 22:05 ` Jesper Juhl
2005-08-22 22:07 ` Tomasz Torcz
2005-08-22 22:25 ` Douglas McNaught
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.