From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0ACF4C433DB for ; Tue, 2 Feb 2021 16:44:25 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 7DFE664F64 for ; Tue, 2 Feb 2021 16:44:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7DFE664F64 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E160D6B0070; Tue, 2 Feb 2021 11:44:23 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DC65D6B0072; Tue, 2 Feb 2021 11:44:23 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C8E606B0073; Tue, 2 Feb 2021 11:44:23 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0081.hostedemail.com [216.40.44.81]) by kanga.kvack.org (Postfix) with ESMTP id AF0646B0070 for ; Tue, 2 Feb 2021 11:44:23 -0500 (EST) Received: from smtpin30.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 7162B1EE6 for ; Tue, 2 Feb 2021 16:44:23 +0000 (UTC) X-FDA: 77773900806.30.soup15_3008c92275cc Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin30.hostedemail.com (Postfix) with ESMTP id 32B57180B3C83 for ; Tue, 2 Feb 2021 16:44:23 +0000 (UTC) X-HE-Tag: soup15_3008c92275cc X-Filterd-Recvd-Size: 4526 Received: from mail-qv1-f43.google.com (mail-qv1-f43.google.com [209.85.219.43]) by imf05.hostedemail.com (Postfix) with ESMTP for ; Tue, 2 Feb 2021 16:44:22 +0000 (UTC) Received: by mail-qv1-f43.google.com with SMTP id l14so10191913qvp.2 for ; Tue, 02 Feb 2021 08:44:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=GHt+58lpMeN8FS8Vy0xXsKPAH5qjP5k97xDYxNly/mc=; b=Gqa1+92O2XoVdq5h3WJwvIe53CWAcsJ+UBuSqLqbDzVZ+B5OJ6z9mbaF+Xd1pE2kyO ZBiqehKbCvYFUZD45B4RDBY991mbJDTkTw5RkQDmAbLoyKorJeVh5cNFAtaJHLUDs5fh hbXuNCWCieD5tiGjGAu8tLxyHEkHSHRlFdIssg2sybQn6sncjLZ5zxoRlvzhpvk00wR9 yBYD/Pf/9PSePO1vuzYkrYvFohsWUMGgVf6mpwnbvQoh1YOpAI91LkjUTXmjz5cn8grM ZBoH+vb74KN38ud6Zu/jDqu00YHifhJXrI3RJoW/bcaK1WRlthg4Dv3JM0ZlzfZDVymB EPzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=GHt+58lpMeN8FS8Vy0xXsKPAH5qjP5k97xDYxNly/mc=; b=NgEpeJ4eEL4B7E25Fo/jtO8Y8tXIv109iY+sZtVFY17zVRBqGkRf+ZlRkJio9zOwtL 3q/C80r6sh2/swpojGt2XV3HClgwKcvOlKbgu4awOJ0mee8TjzhzYnAFIgkE5lNhkK0K 2Yeyf3DxlKgCYByNgmI5fbFqxcaepEepUvcwZtSFdBg6zV0Eya07hObeyVyINy2kkF4G gkyjq8Q8JwJZQY+k2/gCIaziS/qM2R/jcoYXUJX1LZrFfHKzSUJFaEOAd7knhiu1z68U 48mJM+fphbIcKkDmBIBnIX5JQhq6b2iHekY54kxgKrRa1XB6SHBwhWJxFTn5+0bLl6Yu p5RQ== X-Gm-Message-State: AOAM533c9IyFih9M+/N7jTnB/ul6gvw6m6opyYZyBhVgbBAs/l448oLB lu8sPL/0Sf1BE1+nhaDWByjFMg== X-Google-Smtp-Source: ABdhPJzpFtBa8bHhZ4cLgismUjbOWGsHslkWVqUIkLdMBKjip8QuQAUNewHD8Wr7QA7C49wzM3jfAQ== X-Received: by 2002:a0c:a9c7:: with SMTP id c7mr7444088qvb.53.1612284262005; Tue, 02 Feb 2021 08:44:22 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-162-115-133.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.115.133]) by smtp.gmail.com with ESMTPSA id 133sm17669457qkg.38.2021.02.02.08.44.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Feb 2021 08:44:21 -0800 (PST) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1l6ymq-002bgU-0u; Tue, 02 Feb 2021 12:44:20 -0400 Date: Tue, 2 Feb 2021 12:44:20 -0400 From: Jason Gunthorpe To: Peter Xu Cc: 20200918161902.GX8409@ziepe.ca, Linus Torvalds , John Hubbard , Leon Romanovsky , Linux-MM , Linux Kernel Mailing List , "Maya B . Gokhale" , Yang Shi , Marty Mcfadden , Kirill Shutemov , Oleg Nesterov , Jann Horn , Jan Kara , Kirill Tkhai , Andrea Arcangeli , Christoph Hellwig , Andrew Morton , "Zhang, Wei" Subject: Re: [PATCH 1/4] mm: Trial do_wp_page() simplification Message-ID: <20210202164420.GL4718@ziepe.ca> References: <27564187-4a08-f187-5a84-3df50009f6ca@amazon.com> <20210202163127.GD6468@xz-x1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210202163127.GD6468@xz-x1> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Feb 02, 2021 at 11:31:27AM -0500, Peter Xu wrote: > On Tue, Feb 02, 2021 at 04:40:33PM +0200, Gal Pressman wrote: > > Hi Peter & Jason, > > Hi, Gal, Jason, > > > > > It seems the hugetlb part was overlooked? > > We're testing if the RDMA fork MADV_DONTFORK stuff can be removed on appropriate > > kernels, but our tests still fail due to lacking explicit huge pages support [1]. > > I didn't think it high priority only because I think most hugetlbfs users > should be using it shared, but maybe I'm wrong.. Then it got lost indeed. It turns out people are doing this: mmap(NULL, SEND_BUFF_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB, -1, 0) Which makes some sense... Gal, you could also MADV_DONTFORK this range if you are explicitly allocating them via special mmap. Jason