From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 46148A0520; Thu, 2 Jul 2020 12:59:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 14F111D95E; Thu, 2 Jul 2020 12:59:20 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 786B11D94A for ; Thu, 2 Jul 2020 12:59:18 +0200 (CEST) IronPort-SDR: 1vW3JgTq46ubp73UJOKog38MUsxFlMml8owGKa+ppKU2ODACyxU+o7GJBSxffuYbwrvgOJm+hu VeFeTTsdI8Bg== X-IronPort-AV: E=McAfee;i="6000,8403,9669"; a="135155179" X-IronPort-AV: E=Sophos;i="5.75,304,1589266800"; d="scan'208";a="135155179" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2020 03:59:17 -0700 IronPort-SDR: DRGevp2RY9aQoINGYf9frhPRCdBkAHu7bCbmjfUuTwjN44zve8XJBkZzxLS5LB7KepIdYQXHSX TqKISIIg8JGA== X-IronPort-AV: E=Sophos;i="5.75,304,1589266800"; d="scan'208";a="455487000" Received: from bricha3-mobl.ger.corp.intel.com ([10.252.18.120]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 02 Jul 2020 03:59:16 -0700 Date: Thu, 2 Jul 2020 11:59:13 +0100 From: Bruce Richardson To: dev@dpdk.org Cc: anatoly.burakov@intel.com Message-ID: <20200702105913.GD611@bricha3-MOBL.ger.corp.intel.com> References: <20200702105721.1044076-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200702105721.1044076-1-bruce.richardson@intel.com> Subject: Re: [dpdk-dev] [PATCH] build: fix memory init failures with 32-bit builds X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Jul 02, 2020 at 11:57:21AM +0100, Bruce Richardson wrote: > When building with meson, the default size of virtual address space > reserved for mapping pages was globally set at 512GB, which is too big for > use in 32-bit processes. To match the behaviour with "make", we configure > this to be 512GB for 64-bit and 2MB for 32-bit builds. > Oops, typo 2MB -> 2GB > Bugzilla ID: 498 > Fixes: 66cc45e293ed ("mem: replace memseg with memseg lists") > Cc: anatoly.burakov@intel.com > > Signed-off-by: Bruce Richardson > --- > config/meson.build | 6 ++++++ > config/rte_config.h | 1 - > 2 files changed, 6 insertions(+), 1 deletion(-) > > diff --git a/config/meson.build b/config/meson.build > index 351e268c1..72fdabff2 100644 > --- a/config/meson.build > +++ b/config/meson.build > @@ -238,6 +238,12 @@ dpdk_conf.set('RTE_ENABLE_TRACE_FP', get_option('enable_trace_fp')) > dpdk_conf.set('RTE_MAX_VFIO_GROUPS', 64) > dpdk_conf.set('RTE_DRIVER_MEMPOOL_BUCKET_SIZE_KB', 64) > dpdk_conf.set('RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', true) > +if dpdk_conf.get('RTE_ARCH_64') > + dpdk_conf.set('RTE_MAX_MEM_MB', 524288) > +else > +# for 32-bits we need smaller reserved memory areas > + dpdk_conf.set('RTE_MAX_MEM_MB', 2048) > +endif > > > compile_time_cpuflags = [] > diff --git a/config/rte_config.h b/config/rte_config.h > index e9201fd46..086acf74a 100644 > --- a/config/rte_config.h > +++ b/config/rte_config.h > @@ -38,7 +38,6 @@ > #define RTE_MAX_MEM_MB_PER_LIST 32768 > #define RTE_MAX_MEMSEG_PER_TYPE 32768 > #define RTE_MAX_MEM_MB_PER_TYPE 65536 > -#define RTE_MAX_MEM_MB 524288 > #define RTE_MAX_MEMZONE 2560 > #define RTE_MAX_TAILQ 32 > #define RTE_LOG_DP_LEVEL RTE_LOG_INFO > -- > 2.25.1 >