Re: Question about setting affinity in 2.4

2007-02-19 Thread Pádraig Brady
Arjan van de Ven wrote: > sched_setaffinity takes 3 not 2 parameters. Yep the interface changed 3 times, hence it's probably better using the syscall directly. Search my notes for sched_setaffinity here: http://www.pixelbeat.org/programming/c_c++_notes.html Pádraig. - To unsubscribe from this lis

Re: Question about setting affinity in 2.4

2007-02-19 Thread Arjan van de Ven
On Sun, 2007-02-18 at 18:02 -0800, Phy Prabab wrote: > Hello everyone, > > I am trying to set affinity on a program to make sure I can get the > best use of the cache as possible and to eliminate as much noise as > possible with running my program. I have tried unsuccessfully to set > affinity us

Re: Question about setting affinity in 2.4

2007-02-18 Thread Willy Tarreau
On Sun, Feb 18, 2007 at 09:14:21PM -0800, Phy Prabab wrote: > Willy, > > Thanks for the heads up and patch location. It looks like the guys at > RH seemed to have applied a patch to allow one to set affinity, > however, it might be that it is broken. Guess I will have to contact > the RH people

Re: Question about setting affinity in 2.4

2007-02-18 Thread Phy Prabab
Willy, Thanks for the heads up and patch location. It looks like the guys at RH seemed to have applied a patch to allow one to set affinity, however, it might be that it is broken. Guess I will have to contact the RH people to get an update as to what they did/did not do. Thanks! Phy On 2/18/

Re: Question about setting affinity in 2.4

2007-02-18 Thread Willy Tarreau
Hi Phy ! On Sun, Feb 18, 2007 at 06:02:17PM -0800, Phy Prabab wrote: > Hello everyone, > > I am trying to set affinity on a program to make sure I can get the > best use of the cache as possible and to eliminate as much noise as > possible with running my program. I have tried unsuccessfully to

Question about setting affinity in 2.4

2007-02-18 Thread Phy Prabab
Hello everyone, I am trying to set affinity on a program to make sure I can get the best use of the cache as possible and to eliminate as much noise as possible with running my program. I have tried unsuccessfully to set affinity using sched_set/getaffinity and the CPU_SET macros. In particular