Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp1049836ima; Wed, 6 Feb 2019 12:49:53 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia2N+xkWpZQU90IPqynZCZPquja2T8j9Sgw2Baa6CBIoWDufxm/n6qU1RH+sGcwQwIXxx67 X-Received: by 2002:a17:902:14b:: with SMTP id 69mr12305978plb.120.1549486193699; Wed, 06 Feb 2019 12:49:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549486193; cv=none; d=google.com; s=arc-20160816; b=msVcZ1GbUgkKEIUlLynz2j0/xODe/MO+pR1pBiG/RpET1iy4RWY2W/owaBWks8cOOq frK4+2dYvhnDflqyco7ol/Vrbi+ReO3Nzpsji9FxRoAbK3xXUbidtxbW6znjczkcwFKb vtAT68dGzh3QMGlwmKZSthe2GQI9zCT+L3mPRYbJiZUVRADH+W9As74iDPJ91aV2Iz8b 7rUDlXMLvji4RTRfcwKlsppegxa1QfaKRG47nCxAHrTI3y+Xx8J+9BwQtLpYzMoIJDoE 5CWH93xAwsX+wosDqftAX3RMyYtZJskwDcQJovRQePA1aiiAIhzef87T6pACLCzrSg/g fOfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:organization :references:in-reply-to:date:cc:to:from:subject:message-id; bh=2YxGeMIws+59fN/fDtm5Ge77uqAKKFfWrDJfhqFp2H4=; b=r1l80ygRyYJotqeJw2sGUvXBun+sREqoZQz+dmi1B6+xofKFC5ot3tJsiZnQBbpR0L TPxSkQbcl+AIe0SICsmm++NS3exulsBPtIw+ZG+dpYMJAQJZQFDaNIzXakr8gvblrVBj gH+FfE7FwzZjRdb6gusOzOjZDIz7UyMK86W601rdowC/42edz8Nr8+sCiJZQ2ugr8P/j VkC74vnbRcliTBoYDSMF54zXMR11lpzeDkxKJvcDaSLlmq5//S1BuPTrGMbTvq5ouSYp ra0b8VbI0qvSwUqaX5q3H5SOE7B99N70n0mF4zKmIuRXD+c6ZHBeXe8Wgo7c7OIoaJ2G AMuQ== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11si6043561pgo.11.2019.02.06.12.49.36; Wed, 06 Feb 2019 12:49:53 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726822AbfBFUr7 (ORCPT + 99 others); Wed, 6 Feb 2019 15:47:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46430 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726001AbfBFUr7 (ORCPT ); Wed, 6 Feb 2019 15:47:59 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3FFAF804F4; Wed, 6 Feb 2019 20:47:58 +0000 (UTC) Received: from haswell-e.nc.xsintricity.com (ovpn-112-17.rdu2.redhat.com [10.10.112.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CECC55C1B2; Wed, 6 Feb 2019 20:47:55 +0000 (UTC) Message-ID: Subject: Re: [LSF/MM TOPIC] Discuss least bad options for resolving longterm-GUP usage by RDMA From: Doug Ledford To: Matthew Wilcox Cc: Christopher Lameter , Jason Gunthorpe , Jan Kara , Ira Weiny , lsf-pc@lists.linux-foundation.org, linux-rdma@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, John Hubbard , Jerome Glisse , Dan Williams , Dave Chinner , Michal Hocko Date: Wed, 06 Feb 2019 15:47:53 -0500 In-Reply-To: <20190206204128.GR21860@bombadil.infradead.org> References: <20190205175059.GB21617@iweiny-DESK2.sc.intel.com> <20190206095000.GA12006@quack2.suse.cz> <20190206173114.GB12227@ziepe.ca> <20190206175233.GN21860@bombadil.infradead.org> <47820c4d696aee41225854071ec73373a273fd4a.camel@redhat.com> <01000168c43d594c-7979fcf8-b9c1-4bda-b29a-500efe001d66-000000@email.amazonses.com> <20190206194055.GP21860@bombadil.infradead.org> <20190206202021.GQ21860@bombadil.infradead.org> <20190206204128.GR21860@bombadil.infradead.org> Organization: Red Hat, Inc. Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-v2GlgXLGc1VDjmRb7kC5" User-Agent: Evolution 3.30.4 (3.30.4-1.fc29) Mime-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Wed, 06 Feb 2019 20:47:58 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-v2GlgXLGc1VDjmRb7kC5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2019-02-06 at 12:41 -0800, Matthew Wilcox wrote: > On Wed, Feb 06, 2019 at 03:28:35PM -0500, Doug Ledford wrote: > > On Wed, 2019-02-06 at 12:20 -0800, Matthew Wilcox wrote: > > > On Wed, Feb 06, 2019 at 03:16:02PM -0500, Doug Ledford wrote: > > > > On Wed, 2019-02-06 at 11:40 -0800, Matthew Wilcox wrote: > > > > > On Wed, Feb 06, 2019 at 07:16:21PM +0000, Christopher Lameter wro= te: > > > > > > though? If we only allow this use case then we may not have to = worry about > > > > > > long term GUP because DAX mapped files will stay in the physica= l location > > > > > > regardless. > > > > >=20 > > > > > ... except for truncate. And now that I think about it, there wa= s a > > > > > desire to support hot-unplug which also needed revoke. > > > >=20 > > > > We already support hot unplug of RDMA devices. But it is extreme. = How > > > > does hot unplug deal with a program running from the device (someth= ing > > > > that would have returned ETXTBSY)? > > >=20 > > > Not hot-unplugging the RDMA device but hot-unplugging an NV-DIMM. > > >=20 > > > It's straightforward to migrate text pages from one DIMM to another; > > > you remove the PTEs from the CPU's page tables, copy the data over an= d > > > pagefaults put the new PTEs in place. We don't have a way to do simi= lar > > > things to an RDMA device, do we? > >=20 > > We don't have a means of migration except in the narrowly scoped sense > > of queue pair migration as defined by the IBTA and implemented on some > > dual port IB cards. This narrowly scoped migration even still involves > > notification of the app. > >=20 > > Since there's no guarantee that any other port can connect to the same > > machine as any port that's going away, it would always be a > > disconnect/reconnect sequence in the app to support this, not an under > > the covers migration. >=20 > I don't understand you. We're not talking about migrating from one IB > card to another, we're talking about changing the addresses that an STag > refers to. You said "now that I think about it, there was a desire to support hot- unplug which also needed revoke". For us, hot unplug is done at the device level and means all connections must be torn down. So in the context of this argument, if people want revoke so DAX can migrate from one NV-DIMM to another, ok. But revoke does not help RDMA migrate. If, instead, you mean that you want to support hot unplug of an NV-DIMM that is currently the target of RDMA transfers, then I believe Christoph's answer on this is correct. It all boils down to which device you are talking about doing the hot unplug on. --=20 Doug Ledford GPG KeyID: B826A3330E572FDD Key fingerprint =3D AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD --=-v2GlgXLGc1VDjmRb7kC5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEErmsb2hIrI7QmWxJ0uCajMw5XL90FAlxbR/kACgkQuCajMw5X L91T8Q//aNjsSFtXDnw9aQVHjEgaDUPAYp2QhT6rVK0ClhXiUiaP32FB0XYzeCCR zXGaQydIteslRpddKI444p3f5lf8ysE/xVFqilSCJOIt2XypGyMk/pIRyGriERXD rf8vljgMPGUiI5tCLx/AmSIlNSDkeRI5RbAsJlvFu15Mybgyj8+zeBz+eif7d20p 7lwAX9xSXJ6t9aQKM2P/wbrttXrIZDoKGvqm8eyy7wgzldnKgoemmMIdWqpj+vqJ fus9lfFLjvt+3IsI7tbvT2hGAoRdSDHWnR0BxDhoWpwIdsJ+0cbwKCju9F+sdWg2 kjD6Fi4XpqgIl/K+4zgGxIPNl2LJ04FfXv/sfgI3ut3zO++J1QZYbKLMQ+wjykhg 6HVDIKCbe8kN3kT+vrUNzzxKQRFApZ9xrF+khoTTxYH2zaShIWi/3hzobtXIhpBh jpoAiYr+iI0oOrHBgeWhjkuTDJ09H/MaokkL0PqLAp8tS+ZHz6muMOHS5imAID0w ZuSNSKPJrmuMQp7Ze761NwI+/ABvM3XhT+JZGfrrjJb+UQZwVVW5mLK7bkgG1ZCv aaZzo8UY6TBK2QOpdENbBVra8JnVy7+QdklWtUObatYTg05lwHtiJ8cz3jqY/+rA yigK1CEB/QbkTp705ydzbiEUl2uRG3STxqKmaCiilOiqD/olhwU= =lD5/ -----END PGP SIGNATURE----- --=-v2GlgXLGc1VDjmRb7kC5--