From 1a0c70a33a0c7c2b8934aadad2f72644f30f7249 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 15 Oct 2015 14:49:04 +0300 Subject: [PATCH] mempool: use a better default for number of memory channels Optimize for quad-channel by default, this should work well for all the cases, better than the previous value of one anyway. Suggested-by: Bruce Richardson Signed-off-by: Panu Matilainen Acked-by: David Marchand --- lib/librte_mempool/rte_mempool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_mempool/rte_mempool.c b/lib/librte_mempool/rte_mempool.c index 8e185c5454..e57cbbda46 100644 --- a/lib/librte_mempool/rte_mempool.c +++ b/lib/librte_mempool/rte_mempool.c @@ -113,7 +113,7 @@ static unsigned optimize_object_size(unsigned obj_size) /* get number of channels */ nchan = rte_memory_get_nchannel(); if (nchan == 0) - nchan = 1; + nchan = 4; nrank = rte_memory_get_nrank(); if (nrank == 0) -- 2.20.1