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 35B2EA0567 for ; Fri, 13 Mar 2020 10:59:44 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 29F641C00E; Fri, 13 Mar 2020 10:59:44 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by dpdk.org (Postfix) with ESMTP id E7F561C00E for ; Fri, 13 Mar 2020 10:59:42 +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-349-bByCJXoxNJaecyLtVMiOfQ-1; Fri, 13 Mar 2020 05:59:40 -0400 X-MC-Unique: bByCJXoxNJaecyLtVMiOfQ-1 Received: by mail-vs1-f71.google.com with SMTP id 127so900671vsh.3 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=uDCTu3XCvd7XqLkbNZPcTPdi3/koY2eCbgOGCZcoTsMOvJianKDUc+czrksXBB3lZh 0wnJ0A+Uk+HF9bw2FaoJYTNGQgqgc6KA74/jwyp3Jwu0gutk7ZENVS8EGt5M0PSeFOO7 H0QE9SGRdEdmIcD6X5DIU+niMd2A9xO7lrKbXA6HXY2o7PIsUlQ5vp42qMBAURvdIU8o sHj0FlQi4jSeOQjeYUQW0uHVTaW9TYqfTA0OsyeWGUr0yNbEgtLDrSutpHo1BMtu7Jwr /M6zFbNxphPALKUKlHik+ytJBZ0duWMnzvYkNqYsuEWuMiPVGTsPL69FfBoE0HJp1p+u C3pQ== X-Gm-Message-State: ANhLgQ2yZzGnHCCDiDtjRaXt6K7h3TPidGoGCEKNRDX1o481iwRLW9Gv 3Fj36vahE7Nc7lKVHQuiogdQetz3xsKML1kcEZ9Zxc2lo6U3Li9j/MOgsCrRLEzDB+xF+sUU9Ty v8uJZ1alOFdsoY8VjDGEQOks= X-Received: by 2002:a05:6102:30ba:: with SMTP id y26mr8438659vsd.198.1584093580176; 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-stable] [PATCH] mem: mark pages as not accessed when reserving VA X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" 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