Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp676550pxb; Tue, 2 Feb 2021 15:13:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVJYpQN8BAtBX3E/Fl1EL/WhFprgB2fGOJSuq/dgkXzSLHwFh7BOK88eFVNgWD2TIkhhfB X-Received: by 2002:a17:906:3f97:: with SMTP id b23mr331441ejj.306.1612307621829; Tue, 02 Feb 2021 15:13:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612307621; cv=none; d=google.com; s=arc-20160816; b=zmEMzwLsabgjTtOefsC44G+0zBbmAHAF0bqgUagqERzHDMYuJ0OL7ZsMYM4TB80d8B 4tPEY985eyaxlGtqx1fM7uHwRNCUhDFF0F9bsLfr6fT1MHNfwVnj/5FFO3lM3AYHvp+G +fm87qr1ye/Ybmag8T7n3lEdTRZzGaTSvYZzQbVYS2/U5x+spsW7T+XeYrsAezyr33pm SpLSr8EK1+v1i1uA8U3S9EUkvvL93q7bWj/UABykE0QNWEGjU5elebe/BB97Bi5FL5Wq irqM4+2aC9Z33qmEYcfHyKX2ZWtrAYVAb+Y0QLvo/wO85o+hjcBPkSuotgMF8LT7PYdd L4Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GHt+58lpMeN8FS8Vy0xXsKPAH5qjP5k97xDYxNly/mc=; b=FQm9AomoYr2vaRGMcq/D59PgV7uKSuXmdnyujESuI9oQ15XYQXVAQe2zEfwWZGJ/ow dB4nNRS5w2LiLI/nt7mVBtQWM8cxe1S5b4vVcwmStzaEWQzy28S6GYRyx0PB0dFAwncG pQeb5JLzFWbAImhVESK6OPclhmmURtQb38+/jBLu51sSGpAw3YYWBVaqLLTiatg0k2la 1zO2zt7f/5BClSh+k0zPlHCxihs0u+/25R11uDuHt9ci6oVw5LRxRq5XGrEABAMxtfKL xNeKip80LoHYesoowSmNaUmvXmDZTY6sOwshetGZ8Z5OlRqFSE6YSu/6xh8wkg3iETgV 1Shw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=Gqa1+92O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z20si118370edb.95.2021.02.02.15.13.17; Tue, 02 Feb 2021 15:13:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=Gqa1+92O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236338AbhBBQr1 (ORCPT + 99 others); Tue, 2 Feb 2021 11:47:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236808AbhBBQpD (ORCPT ); Tue, 2 Feb 2021 11:45:03 -0500 Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4667C061788 for ; Tue, 2 Feb 2021 08:44:22 -0800 (PST) Received: by mail-qv1-xf35.google.com with SMTP id a1so10151484qvd.13 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=EfrGr6t2olFPymTakYMXWv0JnzVK2PNpMhzvUjl7xiAoaHihyjGxS5NBKFcCP7qpwX J0sUO1JgBwzeO5TWr09l2ObrODiYPp4DiDsP9jqINWjrJQqakZzt562CDWYfREv31u2h 9gR0CX1CyPNBMh9aiJ8TnRI3LDLWq1lloiuxjWOafroIQYuDLshbCwZ8r4JMHNRsYuui LksmBTEpW0w6fyFWrk8I8TY5Wg8e9LvMGSwsph/XH4gResYA1QG1W0NfSMCIhic8dIzG tniOwgssE+vE77wVX/3mUThU0t+bWue9skeb0Oh0TxIQz7bOQNf89oktz0t1QiQSAS7g xXsw== X-Gm-Message-State: AOAM533n9Qs50BtDhk4OxCGpYIWhUr+kRMM+8jOxrBcRTXGBEzLyISIl 2eqwf3+CcoW5za9McnKPCUV7qw== 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> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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