Subject: Re: Syscalls to set CPU affinity
To: Adam Hamsik <firstname.lastname@example.org>
From: Darren Reed <email@example.com>
Date: 09/10/2007 01:55:38
Adam Hamsik wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> On Sep 10, 2007, at 6:24 AM, Mindaugas R. wrote:
>> Joerg Sonnenberger <firstname.lastname@example.org> wrote:
>>> Which of this applies to processes and which to threads?
>> With these calls in Solaris you can bind processes, threads, tasks,
>> and zones according to the idtype. In our case it would be only
>> process and
>> threads. Please see pset_bind(2) and processor_bind(2) man pages.
>>> I don't think external setting of thread affinity is a good idea, that
>>> should be the job of the application that cares.
> No. Because administrator knows better then app developer what
> workload he has on his machine and how to get maximum performance from
> his system.
We need a "cpuctl" or similar.