Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3130695imj; Mon, 11 Feb 2019 14:34:47 -0800 (PST) X-Google-Smtp-Source: AHgI3IbmJ8qe5Uv/Y7mETcG6xbDNVztejh0hW3Nj8wdbEHuyWkmdh93b6omDcf+XQ28ONXJZH19s X-Received: by 2002:a63:da14:: with SMTP id c20mr500054pgh.233.1549924487467; Mon, 11 Feb 2019 14:34:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549924487; cv=none; d=google.com; s=arc-20160816; b=gb856HdyvklNl8Pv8jAJLGmVQjaHJGy+Qm4uHpuHyukjRAxUbgtTiZW+NIifVdGCG8 V1IwFhPOZJH1oTSKHDAW1pz/iZX2rW5/7KhWWms1OJNy4/CjTktP8GC2izd9WTlS4tkb 2fURPP4UQGnPKHBQl6KOKm0NkHVW10X1WEV/A0/XNyen6L7x81y3LZoK8OG56Ds8j22D aa4VEWDN423PyP8Ddoi2JR4hWE8Vw08ysxIyYlxUrZ1SV+BpwH/VBYg9XBZQ+FzXOVbj kztqdpCK6AAyLq5FRSCJlBzKe+Pqx4ZOWBD57F8gTOV1D//SyEkFJM8CNuwrJR5lI2Fy YMEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=YrcCJUXUeBjmMXB4uAD+t8FoXjzbCfi0g/YDioIq2Sw=; b=xSA/ZEHj/q4MXowHgFWX6Hi/9Dtn4EOZ/F6l9XPMRUmQc8zn+rjqhfhX+Au/MRmrEP Vedlao3x0LZ8Gmlq1XXZxxbfPOeISzs9bl9qVScCFGDzGKjKYD2v0BWqlLESiW/hvGkL QmQFvUYW+jz3w2gTkesqhDhvnrqPVURkBEJQR06X0LwqBz8dZ+/mrsKLOpPLkYR+mDxr 7ZHHEyL+InPBAmlJMF6YcozxNtkwbJLg9gkyL4A3CdrNVAdkPi4rp3rg+LAbNCfMRsSR Jptz7wk0GLheLg4DG0gyiIYgwP3ULMjpznxzj3AcY0eNcEszgt8BzCt/++GOeA/MEHbi pWpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=kXNHhFIl; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2si10564325pgm.154.2019.02.11.14.34.30; Mon, 11 Feb 2019 14:34:47 -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; dkim=pass header.i=@nvidia.com header.s=n1 header.b=kXNHhFIl; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727496AbfBKWdz (ORCPT + 99 others); Mon, 11 Feb 2019 17:33:55 -0500 Received: from hqemgate14.nvidia.com ([216.228.121.143]:11878 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726751AbfBKWdy (ORCPT ); Mon, 11 Feb 2019 17:33:54 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 11 Feb 2019 14:33:56 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Mon, 11 Feb 2019 14:33:54 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Mon, 11 Feb 2019 14:33:54 -0800 Received: from [10.110.48.28] (10.124.1.5) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 11 Feb 2019 22:33:53 +0000 Subject: Re: [LSF/MM TOPIC] Discuss least bad options for resolving longterm-GUP usage by RDMA To: Jason Gunthorpe CC: Ira Weiny , Dan Williams , Jan Kara , Dave Chinner , Christopher Lameter , Doug Ledford , Matthew Wilcox , , linux-rdma , Linux MM , Linux Kernel Mailing List , Jerome Glisse , Michal Hocko References: <01000168c8e2de6b-9ab820ed-38ad-469c-b210-60fcff8ea81c-000000@email.amazonses.com> <20190208044302.GA20493@dastard> <20190208111028.GD6353@quack2.suse.cz> <20190211102402.GF19029@quack2.suse.cz> <20190211180654.GB24692@ziepe.ca> <20190211181921.GA5526@iweiny-DESK2.sc.intel.com> <20190211221247.GI24692@ziepe.ca> From: John Hubbard X-Nvconfidentiality: public Message-ID: <018c1a05-5fd8-886a-573b-42649949bba8@nvidia.com> Date: Mon, 11 Feb 2019 14:33:53 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <20190211221247.GI24692@ziepe.ca> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL104.nvidia.com (172.18.146.11) To HQMAIL101.nvidia.com (172.20.187.10) Content-Type: text/plain; charset="utf-8" Content-Language: en-US-large Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1549924436; bh=YrcCJUXUeBjmMXB4uAD+t8FoXjzbCfi0g/YDioIq2Sw=; h=X-PGP-Universal:Subject:To:CC:References:From:X-Nvconfidentiality: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=kXNHhFIlhXR6pc/L0Z1RTsNAjsVn4a6I560QWLYgQ/t3+67h3c1paRKSx60lQxe0p 96BPi5SdqVdeSYR/Z1X7YmtQLd9GURSz4xtlAI2vtr5b82Vwtn+p/pkGq8RDPYigHU ZuuNEPd5AU2TPsX66w/GQLDFVIcd/DMFAN5TLcnqJeSq81JKez3cfR7HeQNyIGDl2w sprTQRrmmTv/AJ9hWUI7vermVLhyEFMgQtS7EjVnt0mN2KXDkHZaw2ZJc6Lb0ut3cG Jxc14gDufMUn/mJsi0Gk/AZWTUFARxEQnKlobPAEnQoxMnFHz0ogmBMiEDrKK9NRgS R4CnKnY1GNrfw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/11/19 2:12 PM, Jason Gunthorpe wrote: > On Mon, Feb 11, 2019 at 01:22:11PM -0800, John Hubbard wrote: > >> The only way that breaks is if longterm pins imply an irreversible action, such >> as blocking and waiting in a way that you can't back out of or get interrupted >> out of. And the design doesn't seem to be going in that direction, right? > > RDMA, vfio, etc will always have 'long term' pins that are > irreversible on demand. It is part of the HW capability. > Yes, I get that about the HW. But I didn't quite phrase it accurately. What I meant was, irreversible from the kernel code's point of view; specifically, the filesystem while in various writeback paths. But anyway, Jan's proposal a bit earlier today [1] is finally sinking into my head--if we actually go that way, and prevent the caller from setting up a problematic gup pin in the first place, then that may make this point sort of moot. > I think the flag is badly named, it is really more of a > GUP_LOCK_PHYSICAL_ADDRESSES flag. > > ie indicate to the FS that is should not attempt to remap physical > memory addresses backing this VMA. If the FS can't do that it must > fail. > Yes. Duration is probably less important than the fact that the page is specially treated. [1] https://lore.kernel.org/r/20190211102402.GF19029@quack2.suse.cz thanks, -- John Hubbard NVIDIA