From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Burakov, Anatoly" Subject: Re: [PATCH] EAL: count nr_overcommit_hugepages as available Date: Tue, 19 Mar 2019 13:52:15 +0000 Message-ID: References: <447Z3z1XpYz9d@rere.qmqm.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Thomas Monjalon , Ferruh Yigit To: =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , dpdk-dev Return-path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 09FF62C54 for ; Tue, 19 Mar 2019 14:52:18 +0100 (CET) In-Reply-To: <447Z3z1XpYz9d@rere.qmqm.pl> 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 25-Feb-19 8:57 PM, Michał Mirosław wrote: > From: Michał Mirosław > > With nr_overcommit_hugepages > 0 application may be able to allocate > hugepages even when free_hugepages == 0. Take this into account when > counting available hugepages. > > Signed-off-by: Michał Mirosław > --- Surplus pages go back at least as far as 2009, and as far as i can tell, the patch works under any conditions i thought to throw at it, and doesn't break anything else. So... Reviewed-by: Anatoly Burakov -- Thanks, Anatoly