Message ID | 1418119872-15335-1-git-send-email-pablo.de.lara.guarch@intel.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 8391B8065; Tue, 9 Dec 2014 11:12:14 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 2403CDE0 for <dev@dpdk.org>; Tue, 9 Dec 2014 11:12:11 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP; 09 Dec 2014 02:11:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,862,1389772800"; d="scan'208";a="426837649" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by FMSMGA003.fm.intel.com with ESMTP; 09 Dec 2014 02:00:36 -0800 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id sB9ABDDf013305 for <dev@dpdk.org>; Tue, 9 Dec 2014 10:11:13 GMT Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id sB9ABDki015371 for <dev@dpdk.org>; Tue, 9 Dec 2014 10:11:13 GMT Received: (from pdelarax@localhost) by sivswdev02.ir.intel.com with id sB9ABDY3015367 for dev@dpdk.org; Tue, 9 Dec 2014 10:11:13 GMT From: Pablo de Lara <pablo.de.lara.guarch@intel.com> To: dev@dpdk.org Date: Tue, 9 Dec 2014 10:11:12 +0000 Message-Id: <1418119872-15335-1-git-send-email-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1417696834-21354-1-git-send-email-pablo.de.lara.guarch@intel.com> References: <1417696834-21354-1-git-send-email-pablo.de.lara.guarch@intel.com> Subject: [dpdk-dev] [PATCH v2] 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 <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Commit Message
De Lara Guarch, Pablo
Dec. 9, 2014, 10:11 a.m. UTC
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.
Changes in v2: Increased memory to 18MB, as that is the
actual minimum memory necessary (depending on the physical memory segments,
DPDK may need less memory)
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
---
app/test/test_eal_flags.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Comments
2014-12-09 10:11, Pablo de Lara: > 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. > > Changes in v2: Increased memory to 18MB, as that is the > actual minimum memory necessary (depending on the physical memory segments, > DPDK may need less memory) > > Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Independently of RTE_MAX_LCORE being increased to 128, I still have some problems with test_invalid_vdev_flag(). First, DEFAULT_MEM_SIZE is not used in this function. Also, even with your patch, I get this error in my VM: Cannot get hugepage information But if this patch solves an issue for you, I guess it should be applied. That said, I would appreciate a complete description of the commands you use to launch this test in a VM (starting with the Qemu command). Thanks
2014-12-10 15:40, Thomas Monjalon: > 2014-12-09 10:11, Pablo de Lara: > > 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. > > > > Changes in v2: Increased memory to 18MB, as that is the > > actual minimum memory necessary (depending on the physical memory segments, > > DPDK may need less memory) > > > > Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> > > Independently of RTE_MAX_LCORE being increased to 128, I still have some > problems with test_invalid_vdev_flag(). > First, DEFAULT_MEM_SIZE is not used in this function. > Also, even with your patch, I get this error in my VM: > Cannot get hugepage information > > But if this patch solves an issue for you, I guess it should be applied. > That said, I would appreciate a complete description of the commands > you use to launch this test in a VM (starting with the Qemu command). Applied I think we should try to improve this test to be able to run it everywhere. Thanks
> -----Original Message----- > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > Sent: Thursday, December 11, 2014 1:11 AM > To: De Lara Guarch, Pablo > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2] app/test: fix memory needs after > RTE_MAX_LCORE was increased to 128 > > 2014-12-10 15:40, Thomas Monjalon: > > 2014-12-09 10:11, Pablo de Lara: > > > 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. > > > > > > Changes in v2: Increased memory to 18MB, as that is the > > > actual minimum memory necessary (depending on the physical memory > segments, > > > DPDK may need less memory) > > > > > > Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> > > > > Independently of RTE_MAX_LCORE being increased to 128, I still have > some > > problems with test_invalid_vdev_flag(). > > First, DEFAULT_MEM_SIZE is not used in this function. > > Also, even with your patch, I get this error in my VM: > > Cannot get hugepage information > > > > But if this patch solves an issue for you, I guess it should be applied. > > That said, I would appreciate a complete description of the commands > > you use to launch this test in a VM (starting with the Qemu command). > > Applied > > I think we should try to improve this test to be able to run it everywhere. Sorry Thomas for not coming back to you earlier. This is the qemu command I used: qemu-kvm -cpu host -smp 8 -m 4G -monitor stdio -nographic -device e1000,vlan=1 -net user,vlan=1,hostfwd=::2222-:22 fedora-img.cow And then I run the test using: ./x86_64-native-linuxapp-gcc/app/test -c ff -n 4 -m 20 I suspect you are missing the -m flag, and in that case test will fail as it launches other primary processes (that test that is failing for you, for instance), which will require some free hugepages, so as you said, there is nothing to do with RTE_MAX_LCORE. Btw, I also tested the fix on VMWare, and it works fine as well. Let me know if your problem is still different from what I think. Thanks, Pablo > > Thanks > -- > Thomas
diff --git a/app/test/test_eal_flags.c b/app/test/test_eal_flags.c index 6e2a8f2..0a8269c 100644 --- a/app/test/test_eal_flags.c +++ b/app/test/test_eal_flags.c @@ -55,7 +55,7 @@ #ifdef RTE_LIBRTE_XEN_DOM0 #define DEFAULT_MEM_SIZE "30" #else -#define DEFAULT_MEM_SIZE "8" +#define DEFAULT_MEM_SIZE "18" #endif #define mp_flag "--proc-type=secondary" #define no_hpet "--no-hpet"