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=-8.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable 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 91D7DC43463 for ; Thu, 17 Sep 2020 20:19:07 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 0EACE208B6 for ; Thu, 17 Sep 2020 20:19:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="nyoerkUl" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0EACE208B6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nvidia.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 290D88E0001; Thu, 17 Sep 2020 16:19:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 240E66B005A; Thu, 17 Sep 2020 16:19:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 157D08E0001; Thu, 17 Sep 2020 16:19:06 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0005.hostedemail.com [216.40.44.5]) by kanga.kvack.org (Postfix) with ESMTP id F329C6B0003 for ; Thu, 17 Sep 2020 16:19:05 -0400 (EDT) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id B3B93363D for ; Thu, 17 Sep 2020 20:19:05 +0000 (UTC) X-FDA: 77273667450.20.smell11_480e0ee27125 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin20.hostedemail.com (Postfix) with ESMTP id 94D4E180C07A3 for ; Thu, 17 Sep 2020 20:19:05 +0000 (UTC) X-HE-Tag: smell11_480e0ee27125 X-Filterd-Recvd-Size: 4646 Received: from hqnvemgate25.nvidia.com (hqnvemgate25.nvidia.com [216.228.121.64]) by imf01.hostedemail.com (Postfix) with ESMTP for ; Thu, 17 Sep 2020 20:19:04 +0000 (UTC) Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 17 Sep 2020 13:18:20 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 17 Sep 2020 13:19:03 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 17 Sep 2020 13:19:03 -0700 Received: from [10.2.52.182] (172.20.13.39) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 17 Sep 2020 20:19:03 +0000 Subject: Re: [PATCH 1/4] mm: Trial do_wp_page() simplification To: Jason Gunthorpe , Linus Torvalds CC: Peter Xu , 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 References: <20200915213330.GE2949@xz-x1> <20200915232238.GO1221970@ziepe.ca> <20200916174804.GC8409@ziepe.ca> <20200916184619.GB40154@xz-x1> <20200917112538.GD8409@ziepe.ca> <20200917181411.GA133226@xz-x1> <20200917190332.GB133226@xz-x1> <20200917200638.GM8409@ziepe.ca> From: John Hubbard Message-ID: <24b8ad6b-4e4c-4651-86e6-bc2232fce772@nvidia.com> Date: Thu, 17 Sep 2020 13:19:02 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200917200638.GM8409@ziepe.ca> X-Originating-IP: [172.20.13.39] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1600373900; bh=zJdwNYAMx90ir5RMJ1DLuiQztq3J/XgFvjEA6+/wCH8=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=nyoerkUlDkmYju8FLrprAmhFwQ2yQ14beGJqSa/ebssucj/MOaDQ8TlVyNJyCcTbr HVn0czbJOxKuW86+K2B7KNDFD/gWfMVnbM39MsyrQf6Le7ItzRkuOtPuS1ZrOa11i5 0MAuMVfw+0ebfVFZfSybhpd+BDBAJlB2mHRS8Ay5Hmz6CxaC1HoX7Dhs2IX4vTeFaE BB+9RH5wbrhH0VpBrASXC93Sna9D1yGhaE6AUFsSHl8t1SQgEb8DgXS9f1gPukvo6I /oAwpjV3RhBI+XcQwZrgTMHokp/LtyixkCfwwpvHySIj9RHMtKHUpSWoDKM42coCPZ 3jMy4K3ZPxhhQ== 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 9/17/20 1:06 PM, Jason Gunthorpe wrote: > On Thu, Sep 17, 2020 at 12:42:11PM -0700, Linus Torvalds wrote: ... >> Is there possibly somethign else we can filter on than just >> GUP_PIN_COUNTING_BIAS? Because it could be as simple as just marking >> the vma itself and saying "this vma has had a page pinning event done >> on it". > > We'd have to give up pin_user_pages_fast() to do that as we can't fast > walk and get vmas? oops, yes. I'd forgotten about that point. Basically all of the O_DIRECT callers need _fast. This is a big problem. thanks, -- John Hubbard NVIDIA > > Hmm, there are many users. I remember that the hfi1 folks really > wanted the fast version for some reason.. > >> Because if we only start copying the page *iff* the vma is marked by >> that "this vma had page pinning" _and_ the page count is bigger than >> GUP_PIN_COUNTING_BIAS, than I think we can rest pretty easily knowing >> that we aren't going to hit some regular old-fashioned UNIX server >> cases with a lot of forks.. > > Agree > > Given that this is a user visible regression, it is nearly rc6, what > do you prefer for next steps? > > Sorting out this for fork, especially if it has the vma change is > probably more than a weeks time. > > Revert this patch and try again next cycle? > > Thanks, > Jason >