From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id BC518952 for ; Thu, 9 Jul 2015 13:18:35 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP; 09 Jul 2015 04:18:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,439,1432623600"; d="scan'208";a="761191650" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.208.63]) by orsmga002.jf.intel.com with SMTP; 09 Jul 2015 04:18:34 -0700 Received: by (sSMTP sendmail emulation); Thu, 09 Jul 2015 12:18:31 +0025 Date: Thu, 9 Jul 2015 12:18:31 +0100 From: Bruce Richardson To: Olivier Matz Message-ID: <20150709111831.GE8408@bricha3-MOBL3> References: <1436432489-31161-1-git-send-email-olivier.matz@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1436432489-31161-1-git-send-email-olivier.matz@6wind.com> Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] test/mempool: decrease size of requested mempool X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jul 2015 11:18:36 -0000 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