Re: SMP: bind process to cpu

From: Andrew Morton (andrewm@uow.edu.au)
Date: Sat Feb 17 2001 - 09:37:03 EST


Thomas Widmann wrote:
>
> Hi,
>
> I run an 3*XEON 550MHz Primergy with 2GB of RAM.
> On this machine, i have compiled kernel 2.4.0SMP.
>
> Is it possible to bind a process to a specific
> cpu on this SMP machine (process affinity) ?
>
> I there something like pset ?

A patch which creates /proc/<pid>/cpus_allowed is at

        http://www.uow.edu.au/~andrewm/linux/#cpus_allowed

You just write a bitmask into it.
-
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/



This archive was generated by hypermail 2b29 : Fri Feb 23 2001 - 21:00:15 EST