Re: Re: Processor sets (pset) for linux kernel 2.5/2.6?

Robert Love (rml@tech9.net)
12 Apr 2003 16:02:31 -0400


On Sat, 2003-04-12 at 15:56, Shaheed R. Haque wrote:

> Hmmm, AFAICS, sched_getaffinity() and sched_setaffinity()
> allow the calling process to be bound to the nominated CPU(s), but that is not
> the same as giving them exclusive access, is it? In other words, other
> processes which have no particualr affinity needs can presumably still be
> scheduled to run on the same processor.
>
> I am looking for something more akin to the patch I referred to...or did I miss
> something in the effect of set_cpus_allowed()?

We strive for simple interfaces here in Linux :)

If you want to give them exclusive access, you need to bind all the
other processes to the other processors. One easy way to do this is to
have init bind itself elsewhere on boot.

Robert Love

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/