From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id C583E6CCF for ; Wed, 25 Apr 2018 15:28:01 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Apr 2018 06:28:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,326,1520924400"; d="scan'208";a="219278407" Received: from irsmsx101.ger.corp.intel.com ([163.33.3.153]) by orsmga005.jf.intel.com with ESMTP; 25 Apr 2018 06:27:59 -0700 Received: from irsmsx111.ger.corp.intel.com (10.108.20.4) by IRSMSX101.ger.corp.intel.com (163.33.3.153) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 25 Apr 2018 14:27:58 +0100 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.211]) by irsmsx111.ger.corp.intel.com ([169.254.2.167]) with mapi id 14.03.0319.002; Wed, 25 Apr 2018 14:27:58 +0100 From: "Pattan, Reshma" To: "Burakov, Anatoly" , "dev@dpdk.org" CC: "Parthasarathy, JananeeX M" Thread-Topic: [PATCH v3 2/3] mem: improve memory preallocation on 32-bit Thread-Index: AQHT27W9iMMCm8E7RUy8LFlx7zTRkKQRet4Q Date: Wed, 25 Apr 2018 13:27:58 +0000 Message-ID: <3AEA2BF9852C6F48A459DA490692831F2A2C9B4A@irsmsx110.ger.corp.intel.com> References: <9bd2877ea94d32f99ea6d17afb6e5f16f4340649.1524564892.git.anatoly.burakov@intel.com> In-Reply-To: <9bd2877ea94d32f99ea6d17afb6e5f16f4340649.1524564892.git.anatoly.burakov@intel.com> 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 Subject: Re: [dpdk-dev] [PATCH v3 2/3] mem: improve memory preallocation on 32-bit 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: , X-List-Received-Date: Wed, 25 Apr 2018 13:28:02 -0000 > -----Original Message----- > From: Burakov, Anatoly > Sent: Tuesday, April 24, 2018 11:19 AM > To: dev@dpdk.org > Cc: Pattan, Reshma > Subject: [PATCH v3 2/3] mem: improve memory preallocation on 32-bit >=20 > Previously, if we couldn't preallocate VA space on 32-bit for one page si= ze, we > simply bailed out, even though we could've tried allocating VA space with > other page sizes. >=20 > For example, if user had both 1G and 2M pages enabled, and has asked DPDK > to allocate memory on both sockets, DPDK would've tried to allocate VA > space for 1x1G page on both sockets, failed and never tried again, even > though it could've allocated the same 1G of VA space for 512x2M pages. >=20 > Fix this by retrying with different page sizes if VA space reservation fa= iled. >=20 > Signed-off-by: Anatoly Burakov > --- > lib/librte_eal/common/eal_common_memory.c | 42 > +++++++++++++++++++++++++------ > 1 file changed, 35 insertions(+), 7 deletions(-) >=20 Tested-by: Jananee Parthasarathy