Subject: Re: Syscalls to set CPU affinity
To: Adam Hamsik <firstname.lastname@example.org>
From: Christoph Egger <Christoph_Egger@gmx.de>
Date: 09/10/2007 11:21:47
On Monday 10 September 2007 10:41:50 Adam Hamsik wrote:
> On Sep 10, 2007, at 6:24 AM, Mindaugas R. wrote:
> > Joerg Sonnenberger <email@example.com> wrote:
> >> Which of this applies to processes and which to threads?
> > With these calls in Solaris you can bind processes, threads, tasks,
> > projects
> > 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.
That's right. Solaris' API is designed to scale well on X-way machines.
Just think on the big sparc machines with 128 cpu sockets.
The administrator can control which process runs on which NUMA node.