Linux Today: Linux News On Internet Time.





More on LinuxToday


nixCraft: Setting Processor Affinity for a Certain Task or Process

May 09, 2006, 10:00 (0 Talkback[s])

[ Thanks to An Anonymous Reader for this link. ]

:When you are using SMP (Symmetric MultiProcessing) you might want to override the kernel's process scheduling and bind a certain process to a specific CPU(s).

But what is CPU affinity?

"CPU affinity is nothing but a scheduler property that 'bonds' a process to a given set of CPUs on the SMP system. The Linux scheduler will honor the given CPU affinity and the process will not run on any other CPUs. Note that the Linux scheduler also supports natural CPU affinity..."

Complete Story

Related Stories: