From mboxrd@z Thu Jan 1 00:00:00 1970 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) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Mar 2019 06:52:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,498,1544515200"; d="scan'208";a="143294122" Received: from aburakov-mobl1.ger.corp.intel.com (HELO [10.237.220.83]) ([10.237.220.83]) by orsmga002.jf.intel.com with ESMTP; 19 Mar 2019 06:52:16 -0700 To: =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , dpdk-dev Cc: Thomas Monjalon , Ferruh Yigit References: <447Z3z1XpYz9d@rere.qmqm.pl> From: "Burakov, Anatoly" Message-ID: Date: Tue, 19 Mar 2019 13:52:15 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 In-Reply-To: <447Z3z1XpYz9d@rere.qmqm.pl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH] EAL: count nr_overcommit_hugepages as available 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: Tue, 19 Mar 2019 13:52:19 -0000 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id E54FFA00E6 for ; Tue, 19 Mar 2019 14:52:20 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B388D2C60; Tue, 19 Mar 2019 14:52:20 +0100 (CET) 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) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Mar 2019 06:52:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,498,1544515200"; d="scan'208";a="143294122" Received: from aburakov-mobl1.ger.corp.intel.com (HELO [10.237.220.83]) ([10.237.220.83]) by orsmga002.jf.intel.com with ESMTP; 19 Mar 2019 06:52:16 -0700 To: =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , dpdk-dev Cc: Thomas Monjalon , Ferruh Yigit References: <447Z3z1XpYz9d@rere.qmqm.pl> From: "Burakov, Anatoly" Message-ID: Date: Tue, 19 Mar 2019 13:52:15 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 In-Reply-To: <447Z3z1XpYz9d@rere.qmqm.pl> Content-Type: text/plain; charset="UTF-8"; format="flowed" Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH] EAL: count nr_overcommit_hugepages as available 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190319135215.Rv2-ydb-jMi-A_CPsqoyvfCMH-J9CvVkIOl_sDsYlT0@z> 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