Re: [PATCH 2/2 v2] perf bench futex: add NUMA support

2016-10-20 Thread Davidlohr Bueso
On Mon, 17 Oct 2016, Sebastian Andrzej Siewior wrote: +#ifdef HAVE_LIBNUMA_SUPPORT +#include +#endif In futex.h +static int numa_node = -1; In futex.h (perhaps rename to futexbench_numa_node?) +#ifndef HAVE_LIBNUMA_SUPPORT +static int numa_run_on_node(int node __maybe_unused) { return

Re: [PATCH 2/2 v2] perf bench futex: add NUMA support

2016-10-20 Thread Davidlohr Bueso
On Mon, 17 Oct 2016, Sebastian Andrzej Siewior wrote: +#ifdef HAVE_LIBNUMA_SUPPORT +#include +#endif In futex.h +static int numa_node = -1; In futex.h (perhaps rename to futexbench_numa_node?) +#ifndef HAVE_LIBNUMA_SUPPORT +static int numa_run_on_node(int node __maybe_unused) { return

Re: [PATCH 2/2 v2] perf bench futex: add NUMA support

2016-10-20 Thread Davidlohr Bueso
On Wed, 19 Oct 2016, Sebastian Andrzej Siewior wrote: On 2016-10-19 11:16:16 [-0700], Davidlohr Bueso wrote: On Mon, 17 Oct 2016, Sebastian Andrzej Siewior wrote: > By default the application uses malloc() and all available CPUs. This > patch introduces NUMA support which means: > - memory is

Re: [PATCH 2/2 v2] perf bench futex: add NUMA support

2016-10-20 Thread Davidlohr Bueso
On Wed, 19 Oct 2016, Sebastian Andrzej Siewior wrote: On 2016-10-19 11:16:16 [-0700], Davidlohr Bueso wrote: On Mon, 17 Oct 2016, Sebastian Andrzej Siewior wrote: > By default the application uses malloc() and all available CPUs. This > patch introduces NUMA support which means: > - memory is

Re: [PATCH 2/2 v2] perf bench futex: add NUMA support

2016-10-19 Thread Sebastian Andrzej Siewior
On 2016-10-19 11:16:16 [-0700], Davidlohr Bueso wrote: > On Mon, 17 Oct 2016, Sebastian Andrzej Siewior wrote: > > > By default the application uses malloc() and all available CPUs. This > > patch introduces NUMA support which means: > > - memory is allocated node local via numa_alloc_local() > >

Re: [PATCH 2/2 v2] perf bench futex: add NUMA support

2016-10-19 Thread Sebastian Andrzej Siewior
On 2016-10-19 11:16:16 [-0700], Davidlohr Bueso wrote: > On Mon, 17 Oct 2016, Sebastian Andrzej Siewior wrote: > > > By default the application uses malloc() and all available CPUs. This > > patch introduces NUMA support which means: > > - memory is allocated node local via numa_alloc_local() > >

Re: [PATCH 2/2 v2] perf bench futex: add NUMA support

2016-10-19 Thread Davidlohr Bueso
On Mon, 17 Oct 2016, Sebastian Andrzej Siewior wrote: By default the application uses malloc() and all available CPUs. This patch introduces NUMA support which means: - memory is allocated node local via numa_alloc_local() - all CPUs of the specified NUMA node are used. This is also true if the

Re: [PATCH 2/2 v2] perf bench futex: add NUMA support

2016-10-19 Thread Davidlohr Bueso
On Mon, 17 Oct 2016, Sebastian Andrzej Siewior wrote: By default the application uses malloc() and all available CPUs. This patch introduces NUMA support which means: - memory is allocated node local via numa_alloc_local() - all CPUs of the specified NUMA node are used. This is also true if the

[PATCH 2/2 v2] perf bench futex: add NUMA support

2016-10-17 Thread Sebastian Andrzej Siewior
By default the application uses malloc() and all available CPUs. This patch introduces NUMA support which means: - memory is allocated node local via numa_alloc_local() - all CPUs of the specified NUMA node are used. This is also true if the number of threads set is greater than the number of

[PATCH 2/2 v2] perf bench futex: add NUMA support

2016-10-17 Thread Sebastian Andrzej Siewior
By default the application uses malloc() and all available CPUs. This patch introduces NUMA support which means: - memory is allocated node local via numa_alloc_local() - all CPUs of the specified NUMA node are used. This is also true if the number of threads set is greater than the number of