From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH v2 2/2] mem: unmap unneeded space Date: Mon, 30 Apr 2018 13:50:36 +0100 Message-ID: <20180430125035.GB100464@bricha3-MOBL.ger.corp.intel.com> References: <73e35ca9ce462ab097c6ca8e7cbfdd5b8bc06c1d.1525086045.git.anatoly.burakov@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Anatoly Burakov Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id CC9A223A for ; Mon, 30 Apr 2018 14:50:40 +0200 (CEST) Content-Disposition: inline In-Reply-To: <73e35ca9ce462ab097c6ca8e7cbfdd5b8bc06c1d.1525086045.git.anatoly.burakov@intel.com> 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 Mon, Apr 30, 2018 at 12:21:43PM +0100, Anatoly Burakov wrote: > When we ask to reserve virtual areas, we usually include > alignment in the mapping size, and that memory ends up > being wasted. Wasting a gigabyte of VA space while trying to > reserve one gigabyte is pretty expensive on 32-bit, so after > we're done mapping, unmap unneeded space. > > Signed-off-by: Anatoly Burakov > --- > > Notes: > v2: > - Split fix for size_t overflow into separate patch > - Improve readability of unmapping code > - Added comment explaining why unmapping is done > Acked-by: Bruce Richardson