From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Burakov, Anatoly" Subject: Re: [PATCH 3/3] mem: improve autodetection of hugepage counts on 32-bit Date: Fri, 20 Apr 2018 16:12:25 +0100 Message-ID: References: <231a97e7fa536d4f3c6bbe2a645a71ed64b5b9cd.1524235066.git.anatoly.burakov@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: dev@dpdk.org Return-path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 5F669CF66 for ; Fri, 20 Apr 2018 17:12:28 +0200 (CEST) In-Reply-To: <231a97e7fa536d4f3c6bbe2a645a71ed64b5b9cd.1524235066.git.anatoly.burakov@intel.com> Content-Language: en-US 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 20-Apr-18 3:41 PM, Anatoly Burakov wrote: > For non-legacy mode, we are preallocating space for hugepages, so > we know in advance which pages we will be able to allocate, and > which we won't. However, the init procedure was using hugepage > counts gathered from sysfs and paid no attention to hugepage > sizes that were actually available for reservation, and failed > on attempts to reserve unavailable pages. > > Fix this by limiting total page counts by number of pages > actually preallocated. > > Signed-off-by: Anatoly Burakov > --- Oops, didn't update the patch after fixing build. -- Thanks, Anatoly