From f2fd6c2e080c0c595bcc72d8c05d9e1014d398e2 Mon Sep 17 00:00:00 2001 From: David Marchand Date: Fri, 8 Nov 2024 19:17:32 +0100 Subject: [PATCH] config: limit lcore variable maximum size to 128k OVS locks all pages to avoid page faults while processing packets. 1M for each lcore translates to allocating 128M with default build options on x86. This resulted in OOM while running unit tests in parallel. At the moment, the more demanding DPDK user of lcore variable is rte_service, with a 2112 bytes object. Limit the lcore variable maximum size to 128k which looks more reasonable. Fixes: 5bce9bed67ad ("eal: add static per-lcore memory allocation facility") Signed-off-by: David Marchand Signed-off-by: Thomas Monjalon --- config/rte_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/rte_config.h b/config/rte_config.h index 498d509244b..3734db6bdc2 100644 --- a/config/rte_config.h +++ b/config/rte_config.h @@ -41,7 +41,7 @@ /* EAL defines */ #define RTE_CACHE_GUARD_LINES 1 #define RTE_MAX_HEAPS 32 -#define RTE_MAX_LCORE_VAR 1048576 +#define RTE_MAX_LCORE_VAR 131072 #define RTE_MAX_MEMSEG_LISTS 128 #define RTE_MAX_MEMSEG_PER_LIST 8192 #define RTE_MAX_MEM_MB_PER_LIST 32768