Setting CPU affinity to process( Freebsd smp kernel)

John Baldwin jhb at
Thu Nov 30 15:20:20 PST 2006

On Monday 20 November 2006 06:24, Ashok TM wrote:
> Hello,
> Is there a way to set   a process's CPU affinity  with  freebsd  smp kernel.
>  By doing so a process is bound to and will only run on the processor (where
> the affinity was set ) even though the other processors are free.  (similar
> to sched_setaffinity available on Linux kernel) .
> Does  freebsd smp scheduler supports setting affinity?

Yes, but currently only in the kernel.

John Baldwin

More information about the freebsd-smp mailing list