Re: Off-topic process question.

From: dek_ml@adsl-63-193-244-224.dsl.snfc21.pacbell.net
Date: Wed Apr 19 2000 - 16:10:24 EST


>>
>> I'm curious if there is a way to instruct the kernel to execute a
>> particular process only on a particular processor in a multi-processor
>> system.
>
> Nope, there is no processor affinity in linux, hence you can't bind a
>process to a specific CPU. However, the scheduler does give a goodness boost
>to a process if it can run on the same cpu on which it ran last.
>
>-Jonathan Case Nicklin
>http://www.missionciticallinux.com
>
>ps. there might a patch floating around to do this though.

I think Andrea Arcangeli did this some time back (processor affinity patch).
Check the linux-kernel archives.

However, an important question to ask is: "why do you believe you need to
execute a process on a given processor of a multiprocessor system?"

-----------------------------------------------------------------------------
Email: dek@cgl.ucsf.edu David Konerding WWW: http://picasso.ucsf.edu/~dek
-----------------------------------------------------------------------------

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



This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:16 EST