From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 6C45B7E1F for ; Fri, 5 Dec 2014 16:58:20 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP; 05 Dec 2014 07:58:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,691,1406617200"; d="scan'208";a="494282431" Received: from irsmsx110.ger.corp.intel.com ([163.33.3.25]) by orsmga003.jf.intel.com with ESMTP; 05 Dec 2014 07:54:52 -0800 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.150]) by IRSMSX110.ger.corp.intel.com ([169.254.15.55]) with mapi id 14.03.0195.001; Fri, 5 Dec 2014 15:57:28 +0000 From: "De Lara Guarch, Pablo" To: Thomas Monjalon Thread-Topic: [dpdk-dev] [PATCH] app/test: fix memory needs after RTE_MAX_LCORE was increased to 128 Thread-Index: AQHQD8VAJouiJwtAAUC2dvTD2O4f0JyBJikg Date: Fri, 5 Dec 2014 15:57:28 +0000 Message-ID: References: <1417696834-21354-1-git-send-email-pablo.de.lara.guarch@intel.com> <6503818.31ZSLaLBbV@xps13> In-Reply-To: <6503818.31ZSLaLBbV@xps13> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH] app/test: fix memory needs after RTE_MAX_LCORE was increased to 128 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: Fri, 05 Dec 2014 15:58:20 -0000 > -----Original Message----- > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > Sent: Thursday, December 04, 2014 1:21 PM > To: De Lara Guarch, Pablo > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] app/test: fix memory needs after > RTE_MAX_LCORE was increased to 128 >=20 > > Since commit b91c67e5a693211862aa7dc3b78630b4e856c2af, > > maximum number of cores is 128, which has increase > > the total memory necessary for a rte_mempool structure, > > as the per-lcore local cache has been doubled in size. > > Therefore, eal_flags unit test was broken since it needed > > to use more hugepages. > > > > Signed-off-by: Pablo de Lara >=20 > When I check it in a VM, I still have a memory issue in > test_invalid_vdev_flag(). > Do you have an idea of the problem? Sorry I did not have a VM by that time. Now I do :) Apparently it needs more memory, as first thing DPDK does is=20 reserving space in rte_malloc heap, which size is bigger in the VM. By changing the memory needed to 18M, we can fix the unit test. I am still not sure why within a VM we need more memory, though. Thanks, Pablo >=20 > -- > Thomas