Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp5337155ima; Tue, 5 Feb 2019 10:03:18 -0800 (PST) X-Google-Smtp-Source: AHgI3IYFZqeobNZikbBiHX2yacYxhmpf3ZinmrBYkOc5FVhWoF6R29ZoZhDM8FpCkdYsa1FlmH+v X-Received: by 2002:a63:4a4d:: with SMTP id j13mr5716768pgl.127.1549389798083; Tue, 05 Feb 2019 10:03:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549389798; cv=none; d=google.com; s=arc-20160816; b=VdyG6hipcWjAfc6mmwcmbuONv1r38T64ufb7suLYKZpePrL7DimAKhrc/Mh9Dze7Uz RvKzYfr7j1f4rADY3MKJ92vPI2ShbAQTXQGOj0yy+dgTxkqRuxGBnUrR+8my8AkB/VcH q+cwg5qKBwhPNg30G9wineUEebfgZXes0tMfN4x8dJCs5m2h6yFXv5ahtDoZPssTYw/C gZoCUYRI/h6H+RvbYxBFtbfSnp5KpctWXh/sSHYUg5FbjkAiBmhMZdpmfu5eRRDshbO0 W5LYcXgFC3xAZTx5Vs0mDyCHaIDFclCGGKkw+P1O829u1Lf9pT5Zl4GLmzcYubN/kVVL y7Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=9HbjEquHvPYjk7nKOstiyRPeIIsYizVw4ZLmj6EN9DA=; b=z7LoDcKEW/dII52PMkgYovh/Uw/LmlkalGHZnfQUTmM4urZ2NTE05E1LCOCf/3+RkX PhlB7W06swM0soiMmgHNFhtTOFzxi7Afg197zcYjVDCktPjKGVo9hsUI/5bsXtJpfD/w x/in9P6FPWxQBwJjG/ZQAFBWmkLOUV+C06tmphfXAlZl0oFQX7v3KsqSneus4UH6zjHr UUSl9E8beCer3p9Dgb7RIDX7/GkAxaFRwYn5KJEzPQzC8giFXvTTUBo5d7SqRGc/ts06 4Z2NDRmHKQCuL6IHCbkdCrGgweQaUyRW/3yTuRGTfdHU2lJdfcNU/vOfjdmTR19AZalq a4uw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g187si2949228pgc.26.2019.02.05.10.03.00; Tue, 05 Feb 2019 10:03:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728413AbfBESBl (ORCPT + 99 others); Tue, 5 Feb 2019 13:01:41 -0500 Received: from mga09.intel.com ([134.134.136.24]:42041 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726534AbfBESBk (ORCPT ); Tue, 5 Feb 2019 13:01:40 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Feb 2019 10:01:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,336,1544515200"; d="scan'208";a="124180424" Received: from iweiny-desk2.sc.intel.com ([10.3.52.157]) by orsmga003.jf.intel.com with ESMTP; 05 Feb 2019 10:01:39 -0800 Date: Tue, 5 Feb 2019 10:01:20 -0800 From: Ira Weiny To: lsf-pc@lists.linux-foundation.org, linux-rdma@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: John Hubbard , Jan Kara , Jerome Glisse , Dan Williams , Matthew Wilcox , Dave Chinner , Doug Ledford , Michal Hocko , Jason Gunthorpe Subject: Re: [LSF/MM TOPIC] Discuss least bad options for resolving longterm-GUP usage by RDMA Message-ID: <20190205180120.GC21617@iweiny-DESK2.sc.intel.com> References: <20190205175059.GB21617@iweiny-DESK2.sc.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190205175059.GB21617@iweiny-DESK2.sc.intel.com> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I had an old invalid address for Jason Gunthorpe in my address book... Correcting his email in the thread. On Tue, Feb 05, 2019 at 09:50:59AM -0800, 'Ira Weiny' wrote: > > The problem: Once we have pages marked as GUP-pinned how should various > subsystems work with those markings. > > The current work for John Hubbards proposed solutions (part 1 and 2) is > progressing.[1] But the final part (3) of his solution is also going to take > some work. > > In Johns presentation he lists 3 alternatives for gup-pinned pages: > > 1) Hold off try_to_unmap > 2) Allow writeback while pinned (via bounce buffers) > [Note this will not work for DAX] > 3) Use a "revocable reservation" (or lease) on those pages > 4) Pin the blocks as busy in the FS allocator > > The problem with lease's on pages used by RDMA is that the references to > these pages is not local to the machine. Once the user has been given access > to the page they, through the use of a remote tokens, give a reference to that > page to remote nodes. This is the core essence of RDMA, and like it or not, > something which is increasingly used by major Linux users. > > Therefore we need to discuss the extent by which leases are appropriate and > what happens should a lease be revoked which a user does not respond to. > > As John Hubbard put it: > > "Other filesystem features that need to replace the page with a new one can > be inhibited for pages that are GUP-pinned. This will, however, alter and > limit some of those filesystem features. The only fix for that would be to > require GUP users monitor and respond to CPU page table updates. Subsystems > such as ODP and HMM do this, for example. This aspect of the problem is > still under discussion." > > -- John Hubbard[2] > > The following people have been involved in previous conversations and would be key to > the face to face discussion. > > John Hubbard > Jan Kara > Dave Chinner > Michal Hocko > Dan Williams > Matthew Wilcox > Jason Gunthorpe > > Thank you, > Ira Weiny > > [1] https://linuxplumbersconf.org/event/2/contributions/126/attachments/136/168/LPC_2018_gup_dma.pdf > [2] https://lkml.org/lkml/2019/2/4/7 >