From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 25EE6A0566; Tue, 10 Mar 2020 17:27:04 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 081AA1BFFF; Tue, 10 Mar 2020 17:27:04 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 4CA9D1BFFA; Tue, 10 Mar 2020 17:27:02 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Mar 2020 09:27:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,537,1574150400"; d="scan'208";a="234397668" Received: from aburakov-mobl.ger.corp.intel.com (HELO [10.252.15.61]) ([10.252.15.61]) by fmsmga007.fm.intel.com with ESMTP; 10 Mar 2020 09:26:59 -0700 To: David Marchand , dev@dpdk.org Cc: echaudro@redhat.com, aconole@redhat.com, maxime.coquelin@redhat.com, stable@dpdk.org, Andrea Arcangeli References: <20200309145442.28926-1-david.marchand@redhat.com> From: "Burakov, Anatoly" Message-ID: <88daf308-e774-598d-4341-c6b6d4e161eb@intel.com> Date: Tue, 10 Mar 2020 16:26:58 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200309145442.28926-1-david.marchand@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] mem: mark pages as not accessed when reserving VA 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" On 09-Mar-20 2:54 PM, David Marchand wrote: > When the memory allocator reserves virtual addresses, it still does not > know what they will be used for. > Besides, huge areas are reserved for memory hotplug in multiprocess > setups. But most of the pages are unused in the whole life of the > processes. > > Change protection mode to PROT_NONE when only reserving VA. > The memory allocator already switches to the right mode when making use > of it. > > It also has the nice effect of getting those pages skipped by the kernel > when calling mlockall() or when a coredump gets generated. > > Cc: stable@dpdk.org > > Suggested-by: Andrea Arcangeli > Signed-off-by: David Marchand > --- Acked-by: Anatoly Burakov -- Thanks, Anatoly