From mboxrd@z Thu Jan 1 00:00:00 1970 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) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Apr 2018 08:12:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,302,1520924400"; d="scan'208";a="193071646" Received: from aburakov-mobl.ger.corp.intel.com (HELO [10.252.23.81]) ([10.252.23.81]) by orsmga004.jf.intel.com with ESMTP; 20 Apr 2018 08:12:26 -0700 To: dev@dpdk.org References: <231a97e7fa536d4f3c6bbe2a645a71ed64b5b9cd.1524235066.git.anatoly.burakov@intel.com> From: "Burakov, Anatoly" Message-ID: Date: Fri, 20 Apr 2018 16:12:25 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <231a97e7fa536d4f3c6bbe2a645a71ed64b5b9cd.1524235066.git.anatoly.burakov@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 3/3] mem: improve autodetection of hugepage counts 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: Fri, 20 Apr 2018 15:12:32 -0000 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