Home Linux Community Forums Programming and Development Kernel Development How to exclusively assign process to a core?

How to exclusively assign process to a core?

Link to this post 29 Sep 09

Hi All,

i need to _exclusively_ assign a process to a core on SMP system.
I should do that with a kernel module not in user-mode.

I tried CGroup, but it doesn't assign exclusively a process to core.

I want this:

4 cores, 20 processes.
Process 1 -> Core 1
Processes 2-19 -> Core 2-4

Every time a new process has been created it doesn't must be assigned to Core 1.



Link to this post 01 Oct 09

I found a blog post about a function called CPU affinity that allows oyu to assign processes to specific cores. Please look over the blog post and comments at and please post back if you have any issues or to report success.

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Linux Training / Board