From: Panu Matilainen Date: Thu, 15 Oct 2015 11:49:04 +0000 (+0300) Subject: mempool: use a better default for number of memory channels X-Git-Tag: spdx-start~8359 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1a0c70a33a0c7c2b8934aadad2f72644f30f7249;p=dpdk.git 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 --- 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)