Processor Scalability and Linux
mmamiga6 at gmail.com
Tue Aug 10 16:39:12 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.
Interesting I will be checking Taskset out today
Thank you again
More information about the users