Processor Scalability and Linux
Michael Miles
mmamiga6 at gmail.com
Tue Aug 10 16:43:18 UTC 2010
JD wrote:
> 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.
>>
>> Regards,
>>
>> 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
>
> http://www.google.com/url?sa=t&source=web&cd=1&ved=0CB4QFjAA&url=http%3A%2F%2Fwww.guru3d.com%2Fnews%2Famd-unleashes-hydra-8-core-cpu-in-2009%2F&ei=DnhhTKCRCZH0swPX4K3NCA&usg=AFQjCNEatbZxHgmbm1a300qyI-TP6Giupw
>
> 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.
>
>
Oh my God, That's just too easy
Thanks again
Michael
More information about the users
mailing list