Setting Processor Affinity for a Certain Task or Process
"When you are using SMP you might want to override the kernel’s process scheduling and bind a certain process to a specific CPU(s). CPU affinity is nothing but a scheduler property that “bonds” a process to a given set of CPUs on the SMP system. With the help of Linux scheduler utilities you can set up processor affinity for a certain task or process." On a related note, here's a short guide on kernel compilation.