From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bart Van Assche Subject: Re: [LSF/MM TOPIC] Filesystem-DAX, page-pinning, and RDMA Date: Thu, 25 Jan 2018 04:01:43 +0000 Message-ID: <1516852902.3724.4.camel@wdc.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Language: en-US Content-ID: <421B4EAE84F4C14BB9A74F1146530B6F-+cFlbfsKLD6cE4WynfumptQqCkab/8FMAL8bYrjMMd8@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-nvdimm-bounces-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org Sender: "Linux-nvdimm" To: "dan.j.williams-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org" , "lsf-pc-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org" Cc: "linux-nvdimm-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org" , "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "mhocko-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org" , "hch-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org" , "linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org" , "jgg-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org" List-Id: linux-rdma@vger.kernel.org On Wed, 2018-01-24 at 19:56 -0800, Dan Williams wrote: > The get_user_pages_longterm() api was recently added as a stop-gap > measure to prevent applications from growing dependencies on the > ability to to pin DAX-mapped filesystem blocks for RDMA indefinitely > with no ongoing coordination with the filesystem. This 'longterm' > pinning is also problematic for the non-DAX VMA case where the core-mm > needs a time bounded way to revoke a pin and manipulate the physical > pages. While existing RDMA applications have already grown the > assumption that they can pin page-cache pages indefinitely, the fact > that we are breaking this assumption for filesystem-dax presents an > opportunity to deprecate the 'indefinite pin' mechanisms and move to a > general interface that supports pin revocation. > > While RDMA may grow an explicit Infiniband-verb for this 'memory > registration with lease' semantic, it seems that this problem is > bigger than just RDMA. At LSF/MM it would be useful to have a > discussion between fs, mm, dax, and RDMA folks about addressing this > problem at the core level. > > Particular people that would be useful to have in attendance are > Michal Hocko, Christoph Hellwig, and Jason Gunthorpe (cc'd). Is on demand paging sufficient as a solution for your use case or do you perhaps need something different? See also https://www.openfabrics.org/images/eventpresos/workshops2013/2013_Workshop_Tues_0930_liss_odp.pdf Thanks, Bart.