Skip to contentSkip to conversation

test/event_eth_rx_adapter: reduce memory footprint

PATCH New Bruce Richardson 1 participant 1 message Nov 12

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test/event_eth_rx_adapter: reduce memory footprint

The event ethernet Rx adapter autotest was allocating far more buffers than was actually needed. In a test run, the rings/queues were sized at 512 entries, but the NB_MBUFS calculation allocated 8k buffers in the pool for each queue.

Using a buffer count value of 1k per queue is more reasonable, reducing the memory size required by 7/8ths, while still allowing plenty of headroom in the allocation.

Fixes fc8030eb8fe9 ("test/eventdev: add tests for eth Rx adapter APIs")
---
 app/test/test_event_eth_rx_adapter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
app/test/test_event_eth_rx_adapter.c +1 -1
index 7b38935bec..82eace93fe 100644
@@ -34,7 +34,7 @@ test_event_eth_rx_intr_adapter_common(void)
 #include <rte_event_eth_rx_adapter.h>
 
 #define MAX_NUM_RX_QUEUE	64
-#define NB_MBUFS		(8192 * num_ports * MAX_NUM_RX_QUEUE)
+#define NB_MBUFS		(1024 * num_ports * MAX_NUM_RX_QUEUE)
 #define MBUF_CACHE_SIZE		512
 #define MBUF_PRIV_SIZE		0
 #define TEST_INST_ID		0
Signature · 1 line
2.55.0