From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] test/mempool: decrease size of requested mempool Date: Thu, 09 Jul 2015 17:35:57 +0200 Message-ID: <5094799.EXiVPc3dxi@xps13> References: <1436432489-31161-1-git-send-email-olivier.matz@6wind.com> <20150709111831.GE8408@bricha3-MOBL3> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Olivier Matz Return-path: Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id BC2EA5921 for ; Thu, 9 Jul 2015 17:37:03 +0200 (CEST) Received: by wgck11 with SMTP id k11so227156658wgc.0 for ; Thu, 09 Jul 2015 08:37:03 -0700 (PDT) In-Reply-To: <20150709111831.GE8408@bricha3-MOBL3> 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" 2015-07-09 12:18, Bruce Richardson: > On Thu, Jul 09, 2015 at 11:01:29AM +0200, Olivier Matz wrote: > > In test application, the default size of allocated mempool is calculated > > as following: > > > > (RTE_MAX_LCORE * (RTE_MEMPOOL_CACHE_MAX_SIZE + max_kept_objects)) - 1 > > > > The objective is to ensure that all cores can fill their cache and keep > > 'max_kept_objects' at the same time. As RTE_MAX_LCORE is 128 and > > RTE_MEMPOOL_CACHE_MAX_SIZE is 512 in the default configuration, it can > > produce very large mempools (170 MB). > > > > We can replace the number of core by a dynamic value, which drastically > > reduces the amount of memory needed for this test (5 MB with 4 cores). > > > > Signed-off-by: Olivier Matz > > Acked-by: Bruce Richardson Applied, thanks