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 A1A3FA0567; Fri, 13 Mar 2020 10:59:45 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5B1F91C02D; Fri, 13 Mar 2020 10:59:44 +0100 (CET) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id 2D7601C028 for ; Fri, 13 Mar 2020 10:59:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1584093582; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JXULl8Mh8q0mbzmM3tXWh108aDlzCPdYR3//u6VwXzU=; b=MwObqKHN1x23qjMqx7uRgUQai2WQQ8lqBNy3Rqvie5kez4oXS2pAMHQJttHTc2Fes34lDL 9zo8pQOf5/6Pd7PMPWgTZjz6tHzrxcm6DFNwI6Ha5VNytl1woLoznvpsTWsQivoGpndQVX BI2C2DtE6k+ZqIc7iah5s0RRSBI4pb4= Received: from mail-vs1-f71.google.com (mail-vs1-f71.google.com [209.85.217.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-426-TMpCTWbuNXKLB57lEfWBTQ-1; Fri, 13 Mar 2020 05:59:40 -0400 X-MC-Unique: TMpCTWbuNXKLB57lEfWBTQ-1 Received: by mail-vs1-f71.google.com with SMTP id 184so903464vsm.5 for ; Fri, 13 Mar 2020 02:59:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Env41sjOXWWc6JUZC2TkTEO6t9qalJOZCX+xg9f6kNw=; b=iidn10pbub8GlOFhR0kBSmnNaIM8e3ognrIZ2toaMePPty+Q6ACaV0zLWnguGpi/uR x9gWX/uGDhzrLIfAhuGcfx3i/aR+93BbzdcMOkorNBH80PaTPHFvKTNCHa3LClE+SvUo qhMZEzh3TKepc5fuY6xxz2HXE9yQfYZU3Uy+GfuP4WR/hLX1MJw7O7SZ8jW967uNXQhZ gRHjjg49zneFE9fiYgVP1dCrPrFRjvMR3GcX7SwkU3zxeII1PzfP3YHwoOTV6x65LXsm 3LBjYUJdRnhmSbsVknPKzPCJ1QeCMbcx236MZ5wnxefgjo3hBYyOpnvqxUHf46stg7lU lE4g== X-Gm-Message-State: ANhLgQ21g6UqjDsYlJykwhdYGc5PuupEzTcgHrnJZFS5ilBRIdcxUxgG 6UXglYkf+HGdHpHsoCbkPy778lXmhW3LHpxUNaLS+fvTSiXBjmXkOM+9MU3ftQ7UKXMofsG3zNO S1B5z55KifQ47w55RumE= X-Received: by 2002:a05:6102:30ba:: with SMTP id y26mr8438663vsd.198.1584093580177; Fri, 13 Mar 2020 02:59:40 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu7+5fbw4B/0Za0sUqndOQ9G/6V5zKR/uy4Gegr/Wxpf9DBXy+sp9h8xIQce7RJe/cfe14K5+JlN/NHaqfurRg= X-Received: by 2002:a05:6102:30ba:: with SMTP id y26mr8438651vsd.198.1584093579953; Fri, 13 Mar 2020 02:59:39 -0700 (PDT) MIME-Version: 1.0 References: <20200309145442.28926-1-david.marchand@redhat.com> In-Reply-To: <20200309145442.28926-1-david.marchand@redhat.com> From: David Marchand Date: Fri, 13 Mar 2020 10:59:29 +0100 Message-ID: To: dev Cc: Eelco Chaudron , Aaron Conole , Maxime Coquelin , dpdk stable , Andrea Arcangeli , Anatoly Burakov X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [dpdk-stable] [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 Mon, Mar 9, 2020 at 3:55 PM David Marchand w= rote: > > 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 Reviewed-by: Maxime Coquelin Acked-by: Aaron Conole Acked-by: Anatoly Burakov Applied. --=20 David Marchand