[PATCH v4] examples/l3fwd: dynamic NUMA-aware alloc lcore_conf

Thomas Monjalon thomas at monjalon.net
Thu Nov 12 22:00:53 CET 2026


> > Currently lcore_conf is a global static array. When multiple
> > ports/lcores are distributed across different NUMA nodes, datapath
> > suffers from severe cross-NUMA memory access penalty.
> >
> > On Kunpeng platform, sizeof(struct lcore_conf) reaches 133760 bytes.
> > Such a huge per-lcore structure significantly amplifies cross-NUMA
> > overhead in multi-port multi-NUMA deployment scenarios.
> >
> > This commit refactors lcore_conf to pointer array and implements
> > per-lcore NUMA-aware hugepage allocation, allocating each lcore's
> > configuration on its local socket to eliminate remote memory access.
> >
> > Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
> 
> Acked-by: Konstantin Ananyev <konstantin.v.ananyev at yandex.ru>

Applied, thanks.




More information about the dev mailing list