Re: [dpdk-dev] [PATCH] eal: use get_mempolicy(2) to find numa socket on Linux

2017-07-03 Thread Thomas Monjalon
03/07/2017 16:11, Sergio Gonzalez Monroy: > On 01/07/2017 15:18, Thomas Monjalon wrote: > > 21/06/2017 17:49, Sergio Gonzalez Monroy: > >> I think following the discussion of libnuma dependency in another thread > >> [1], you would need to implement a similar approach and keep the old > >> method w

Re: [dpdk-dev] [PATCH] eal: use get_mempolicy(2) to find numa socket on Linux

2017-07-03 Thread Sergio Gonzalez Monroy
On 01/07/2017 15:18, Thomas Monjalon wrote: 21/06/2017 17:49, Sergio Gonzalez Monroy: I think following the discussion of libnuma dependency in another thread [1], you would need to implement a similar approach and keep the old method while providing this alternative if libnuma is present. Cons

Re: [dpdk-dev] [PATCH] eal: use get_mempolicy(2) to find numa socket on Linux

2017-07-01 Thread Thomas Monjalon
21/06/2017 17:49, Sergio Gonzalez Monroy: > I think following the discussion of libnuma dependency in another thread > [1], you would need to implement a similar approach and keep the old > method while providing this alternative if libnuma is present. Considering that libnuma becomes mandatory

Re: [dpdk-dev] [PATCH] eal: use get_mempolicy(2) to find numa socket on Linux

2017-06-21 Thread Sergio Gonzalez Monroy
On 18/06/2017 16:52, Gregory Etelson wrote: Use get_mempolicy(2) to find numa socket on Linux instead of parsing /proc/self/numa_maps. When process maps around 1K hugepages numa_maps file can miss huge records in older Linux kernels. get_mempolicy() proved more reliable Requires numactl dev pack

[dpdk-dev] [PATCH] eal: use get_mempolicy(2) to find numa socket on Linux

2017-06-18 Thread Gregory Etelson
Use get_mempolicy(2) to find numa socket on Linux instead of parsing /proc/self/numa_maps. When process maps around 1K hugepages numa_maps file can miss huge records in older Linux kernels. get_mempolicy() proved more reliable Requires numactl dev package Signed-off-by: Gregory Etelson --- lib