From mboxrd@z Thu Jan 1 00:00:00 1970 From: Panu Matilainen Subject: [PATCH 1/2] mempool: use a better default for number of memory channels Date: Thu, 15 Oct 2015 14:49:04 +0300 Message-ID: <924c845bd743e49683853a8127c165c6d7aa0ab0.1444909165.git.pmatilai@redhat.com> References: To: dev@dpdk.org Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 72AE08F9B for ; Thu, 15 Oct 2015 13:49:23 +0200 (CEST) In-Reply-To: In-Reply-To: References: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- 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 8e185c5..e57cbbd 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.4.3