Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2273509imm; Sat, 13 Oct 2018 14:21:01 -0700 (PDT) X-Google-Smtp-Source: ACcGV62rxz+vEUFuiI8XcrhL6IGRVsjpsCSN1KZolqL2T0ZubxpidFkpGoPW8rJXLTW8DisueWO+ X-Received: by 2002:a63:3308:: with SMTP id z8-v6mr10390636pgz.220.1539465661698; Sat, 13 Oct 2018 14:21:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539465661; cv=none; d=google.com; s=arc-20160816; b=LvAZE11qcAtXYQ+wxFe/s7J4Njjsh7/bOXKb7E+i+u9imlEUdSMsBms12g5CkJZkKv IVpfoW5nHmvJJGWIjcvKVu2uh/D7fPNeDrWafXqNbGq2x7MHwOc3Lm8gIthn/Fk+dY/l ngSPEL32PWRIgD7Hh13dKYX8m9I7MQuGrBrX1fzPuECK+xlMrpMC4ywYbXy77ByK9lOi j8qZqcl1oJBsHLnYmiqlkyzIXoHEpISsX+SfZuze6uVn/BURuFi3sYMPplYEDrd9NQQd ZLLQuxCB7WzAKTD4O9zBuuTSBdEXSEW84a6YbBKAg9Fy+Av1uAJ9PlDD+xQlb59yPtqz g/7g== 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=fIOY++3HJ/l6aRCZYvEftRFb/hyqT6DSGFixGDY+my4=; b=eWXoP+R2nWETCOUCgZ+KUxs/q+G8iRiwkFHy6d1GI7HsSHcvxnIxHIgDopN+XrxR25 8jtU69qHUXR4YckBP6r5VzJwhjGvSFSEAdosZEP0nePZrqRP3mSp877dfrlNmRZw2t6X pOR9GvYPHKfEARHlS/fG5TenjtmeQ2vK5zfiwV4LgVsHQopWhoN1bTTduKNjBv3JsJ4K SwEo5EQuKDNbsKtWTemlsf4KlPN8vpZu6qzpHWnWS36yIimYKrSpNIv9whzP3ai6i3MU qkeTZmLOX/QqYG5YEUXbIMPsraoFwu+pMggqN0+/TKUANjSqXaKC5vNeAMr4n9+GWz9M 3Z8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=qUbC9MYm; 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 p4-v6si5273671plr.364.2018.10.13.14.20.33; Sat, 13 Oct 2018 14:21:01 -0700 (PDT) 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=qUbC9MYm; 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 S1726124AbeJNE6c (ORCPT + 99 others); Sun, 14 Oct 2018 00:58:32 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:8803 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725734AbeJNE6c (ORCPT ); Sun, 14 Oct 2018 00:58:32 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Sat, 13 Oct 2018 14:19:58 -0700 Received: from HQMAIL101.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Sat, 13 Oct 2018 14:19:58 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Sat, 13 Oct 2018 14:19:58 -0700 Received: from [10.2.167.215] (172.20.13.39) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sat, 13 Oct 2018 21:19:57 +0000 Subject: Re: [PATCH 4/6] mm: introduce page->dma_pinned_flags, _count To: Christoph Hellwig CC: Dave Chinner , Matthew Wilcox , Michal Hocko , Christopher Lameter , Jason Gunthorpe , Dan Williams , Jan Kara , , Andrew Morton , LKML , linux-rdma , References: <20181012060014.10242-1-jhubbard@nvidia.com> <20181012060014.10242-5-jhubbard@nvidia.com> <20181013035516.GA18822@dastard> <7c2e3b54-0b1d-6726-a508-804ef8620cfd@nvidia.com> <20181013164740.GA6593@infradead.org> From: John Hubbard X-Nvconfidentiality: public Message-ID: <005bc69b-ffa8-ccb4-db0b-3f4c52a54745@nvidia.com> Date: Sat, 13 Oct 2018 14:19:57 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20181013164740.GA6593@infradead.org> X-Originating-IP: [172.20.13.39] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL101.nvidia.com (172.20.187.10) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1539465598; bh=fIOY++3HJ/l6aRCZYvEftRFb/hyqT6DSGFixGDY+my4=; 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=qUbC9MYm/ITHZ7pLL3s8WZRNyNBXx0tSN2TDNrPa5vQxshDqxkb4UeckO5v00H7Si m9vxl68dSCoraFB8YvVVqb9XLhAfSIhHVQXyu+8H+UYB5Gl27FZhK/kbczrhJGSMqW xvl6e0VCtkK/U3UrDiZ7x5WonrsD+BmAjlDgKso16ZDZCVXY8FC7eFRFqBW3pwx0aw 2ivGlB/skQh86+Z245GJii/Ct8W0t8SYlW/LGlSztdulchdHTCBve2eqy/Ey8Yc3X/ iCS33FDqS9FzSX7hyHa6tl9D1yXsF6DjlWD04rw9gWsdCAhZOkeRIosqF/jIb/K4Oe Db2pnjNcpu11w== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/13/18 9:47 AM, Christoph Hellwig wrote: > On Sat, Oct 13, 2018 at 12:34:12AM -0700, John Hubbard wrote: >> In patch 6/6, pin_page_for_dma(), which is called at the end of get_user_pages(), >> unceremoniously rips the pages out of the LRU, as a prerequisite to using >> either of the page->dma_pinned_* fields. >> >> The idea is that LRU is not especially useful for this situation anyway, >> so we'll just make it one or the other: either a page is dma-pinned, and >> just hanging out doing RDMA most likely (and LRU is less meaningful during that >> time), or it's possibly on an LRU list. > > Have you done any benchmarking what this does to direct I/O performance, > especially for small I/O directly to a (fast) block device? Not yet. I can go do that now. If you have any particular test suites, benchmarks, or just programs to recommend, please let me know. So far, I see tools/testing/selftests/vm/gup_benchmark.c -- thanks, John Hubbard NVIDIA