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 A8A8C7E80 for ; Wed, 5 Nov 2014 18:39:37 +0100 (CET) Received: by mail-wg0-f50.google.com with SMTP id z12so1526069wgg.9 for ; Wed, 05 Nov 2014 09:49:01 -0800 (PST) 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=bItK/bwpccOc62yvhX2cR2E1jl82PiJpurpk0dDeT+Q=; b=UQpy18JsG4YRqIeEY8Fm8ok2knukcsyAdnv5wMY6kQnx9/aHw70a24WA+wflHcxLWL lfBRv+yeroVuhFx6vsXlCVwwmm+Ry7rV5DaKzDLsGpMAbhgCAwn35fA3zKaGElsRRvI0 JWA2fCL5TsVJynxuHUZ38nDlc0z/RkyxlS1SGl071cCerAUGyVGF8RXw9xrCgSOq0PiE 0v/oalgiuIE2W1hFYPSIfvVE6zhFhSAzet8s34QN8aMBACkgq3jdAW2DENGaryamzD5/ sNK4cIDdxUVqd1Ic5++b3WaaUP7gp19hvBBXa/SgmZZj5IOgqXFeXWsi0JWXU/CQroS2 p3Qg== X-Gm-Message-State: ALoCoQnA9P09MCeF/rXKwo1/KtJlpMqu5wneVCCHCAtlf4epBRGzqlMXN+NbHiYkhCwq5+4zbHW4 X-Received: by 10.180.211.52 with SMTP id mz20mr34764808wic.15.1415209741492; Wed, 05 Nov 2014 09:49:01 -0800 (PST) Received: from xps13.localnet (3.21.90.92.rev.sfr.net. [92.90.21.3]) by mx.google.com with ESMTPSA id el4sm16576644wid.11.2014.11.05.09.49.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Nov 2014 09:49:00 -0800 (PST) From: Thomas Monjalon To: "Burakov, Anatoly" Date: Wed, 05 Nov 2014 18:48:35 +0100 Message-ID: <2732771.WclV6ZGpXS@xps13> Organization: 6WIND User-Agent: KMail/4.14.2 (Linux/3.17.2-1-ARCH; KDE/4.14.2; x86_64; ; ) In-Reply-To: References: <1415189477-19994-1-git-send-email-anatoly.burakov@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] Fix regression for eal_flags_autotest introduced by tailq rework 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: Wed, 05 Nov 2014 17:39:37 -0000 2014-11-05 13:24, De Lara Guarch, Pablo: > > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Anatoly Burakov > > Sent: Wednesday, November 05, 2014 12:11 PM > > To: dev@dpdk.org > > Subject: [dpdk-dev] [PATCH] Fix regression for eal_flags_autotest > > introduced by tailq rework > > > > As a result of moving tailq's into local memory, some tailq data > > is now reserved in rte_malloc heaps (because it needs to be > > shared across DPDK processes). The first thing DPDK initializes > > is a log mempool, and since it creates a tailq, it reserves > > space in rte_malloc heap before allocating the mempool itself. > > By default, rte_malloc allocates way more space than is necessary, > > so under some conditions (namely, overall memory available is low) > > this results in malloc heap eating up so much memory that log > > mempool is not able to allocate its memzone. > > > > This patch fixes the unit tests to account for that change. > > > > Signed-off-by: Anatoly Burakov > > --- > > Acked-by: Pablo de Lara Tested-by: Thomas Monjalon echo 9 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages build/app/test -c 1 -n 1 -m 4 It works now. Thanks Anatoly! Applied Reminder for everyone: patches should be posted with --in-reply-to option to insert the patch in the thread context of the mailing list. It makes easier to follow discussions. For a new version of a patchset, it's a good practice to reply to the cover letter of the previous version. For a bug fix (this case), it's a good idea to reply to the bug report. So someone searching in the archives can find the fix he's looking for. Thanks -- Thomas