Processor Scalability and Linux
jd1008 at gmail.com
Tue Aug 10 16:07:06 UTC 2010
On 08/10/2010 06:13 AM, Matthew J. Roth wrote:
> JD wrote:
>> To do that, you need a library interface or sysctl command line
>> that would "affine" the process and it's threads to
>> to a set of cpu's (I am not certain if there is granularity here
>> as far as selecting a subset of cores from a cpu).
> JD and Michael,
> Take a look at taskset:
> taskset is used to set or retrieve the CPU affinity of a running
> process given its PID or to launch a new COMMAND with a given CPU
> affinity. CPU affinity is a scheduler property that "bonds" a
> process to a given set of CPUs on the system. The Linux scheduler
> will honor the given CPU affinity and the process will not run on
> any other CPUs.
> Matthew Roth
> InterMedia Marketing Solutions
> Software Engineer and Systems Developer
Thank you Matt! I am glad Linux has kept up with this
area which is becoming more and more important as
cpu's multiply their cores.
Perhaps there will be a refinement that will allow
the setting of core affinity as well.
AMD released the 8-core cpu in 2009
16 core cpu's are on the horizon, if not already in production.
So I hope the affinity code will be refined to allow selecting
a set of cores as well.
More information about the users