From mboxrd@z Thu Jan 1 00:00:00 1970 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) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=9/0P7OFUQR7wTbSUgAMrQXx4ON5+KKW6jKwUVtt9kzQ=; b=ife3sB0Aq5x5sfhRNZMTKCget+dFwQ43JCfiJhOrnjuFIudPnQ99OTfQ2UMWNzsjt4 l672uJUx7SmBUwZTrlueIpEZdicBWKfC50uyKLhg+OKMZzGTnCkTtpflCXP8XIOqD1tn BYnHRg8CxpOd6PTYAsAK6J2b6nTwB2MFI5T4rB1y9llJ+TBqLPL5vW6Mx+r1MaAWJ2XI yYFqqVVEQrt5GitKgY59gWz3xYT1PqukNnzyljzLP2RuMO7NFSQgAROQsqbDzxmwKPxH vT9aIkEsQe99E73+Uhy1/Jt94+mrhVPMen4mz4HK9qO9+Dnny2LSRWpLSWjcbSPOannM RoeA== X-Gm-Message-State: ALoCoQkKaCQur5+X0HD3UxciscHgdlSU2/8Xr0B796K4Ex14HRmO+pH26xtFxIQ5eM7kRgpQAoQp X-Received: by 10.180.100.74 with SMTP id ew10mr128414859wib.12.1436456223614; Thu, 09 Jul 2015 08:37:03 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id fr9sm8831018wic.19.2015.07.09.08.37.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2015 08:37:02 -0700 (PDT) From: Thomas Monjalon To: Olivier Matz Date: Thu, 09 Jul 2015 17:35:57 +0200 Message-ID: <5094799.EXiVPc3dxi@xps13> Organization: 6WIND User-Agent: KMail/4.14.8 (Linux/4.0.4-2-ARCH; KDE/4.14.8; x86_64; ; ) In-Reply-To: <20150709111831.GE8408@bricha3-MOBL3> References: <1436432489-31161-1-git-send-email-olivier.matz@6wind.com> <20150709111831.GE8408@bricha3-MOBL3> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 15:37:03 -0000 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