Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp684737pxk; Thu, 17 Sep 2020 13:20:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybPf3HBUJr/OgESLKiheeNu6UwExFgX4L9HlytbFejah9BMgdKgl7tQ3ed44IAn3g0ui3l X-Received: by 2002:aa7:c2d6:: with SMTP id m22mr34660634edp.311.1600374043179; Thu, 17 Sep 2020 13:20:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600374043; cv=none; d=google.com; s=arc-20160816; b=PDeVEPq5fq4nZqo5eKsWReFEgU7yJ8v2C0YnXcXGgvYXjxuj+iXHnjlVH8FWVBMSQy 7DEoG0PfhPsNncaKiim4Gghj3irn5pyUsLBf8H3fxfyR3Jp20qxhHh6tBG9boz5T1AcS DSz6ZbjewIDgXmPgB/UNYI/8DvXzTyIL8X77JRAGw5vbNjGFxHbdDuKyvkucfqWMwAMA qfmMX/Wju/gXa4V3JxtRgV78F1qRIB7+cm1jj234tcN7EYNEPzjmAKAHFGA4yvi8BE1o WF4Xs99hOuvhC+QcWA+yydqKJa41EvHmwb0eP41PouVnvQekxpZhfoe227RhZSYOhg5l Rfpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=zJdwNYAMx90ir5RMJ1DLuiQztq3J/XgFvjEA6+/wCH8=; b=rqyF18ACcb5GFfYfJ+J84p3Zt9ed1xPT/bbT2L2+V4HIx9+BRvyp/2DUblKEEj12VZ GnyWgcOUCjbtLDsM/w6x4tataeP1yMib9sESFcCCDGvgCEuxvviupCNYKindA3c61bA/ sQcWiwckXqYKv5eyuJlKTaNd1hCbIBkOBLGaeDtpJjYyiEHGOghH1y/QimTtWTitN4K/ UFdx/T1RDaRO30zYn8w7aJAKaaqfCF0ybyJwqp2Y/SsLYjspXmJk+l0AVohZIn+7RJTC iTXYxofh91p4UiezsMUNwd1HaElxpil0qxS3Dx9+lRM2pTwqdDZ6H3puPdCsdEgIazV4 YyuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=nyoerkUl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t23si677905ejf.457.2020.09.17.13.20.19; Thu, 17 Sep 2020 13:20:43 -0700 (PDT) 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=@nvidia.com header.s=n1 header.b=nyoerkUl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726401AbgIQUTE (ORCPT + 99 others); Thu, 17 Sep 2020 16:19:04 -0400 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:9204 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726216AbgIQUTE (ORCPT ); Thu, 17 Sep 2020 16:19:04 -0400 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== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 >