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

Thomas Monjalon thomas at monjalon.net
Sat Jul 1 16:18:50 CEST 2017


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 to build DPDK on NUMA-capable
systems, we can assume there is only one CPU socket if libnuma is
unavailable.

> As Ilya mentions in the thread, this is usually the job of tools such as 
> autotools, cmake or meson but given that we do not have such tools in 
> DPDK yet, we rely in a build time config option for libnuma.
> 
> Given that we already have a libnuma config option for VHOST, we might 
> be adding anew one for hugepage balancing, I think it would make sense 
> to just have single CONFIG_RTE_LIBNUMA option instead.
> 
> Thoughts?

I am not sure about merging every NUMA options into one.
It may be interesting to track different NUMA features requiring libnuma.

Anyway, this patch needs to be rebased now that Ilya's patch is applied.


More information about the dev mailing list