Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp633490imu; Tue, 27 Nov 2018 18:54:03 -0800 (PST) X-Google-Smtp-Source: AFSGD/XJgFML9KRZ2aRCdK1KbArcDUHG6geN2p7Hx8bX0RO5FVELm1C16t+Bz8gkxWaYIHaJOw8h X-Received: by 2002:a17:902:4c08:: with SMTP id a8mr35555551ple.74.1543373643464; Tue, 27 Nov 2018 18:54:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543373643; cv=none; d=google.com; s=arc-20160816; b=VMyh4W8gQhmPs+Dodom6TP4Cp7hhI+KFUTTBHLwGlH8210RYeo/oUWGtqH9KOo008P T6pDSKRFhfMRE/YCQZU0IAFBD+OncMUGgaY228fNsCweMorceQNgvTULAjxrW0xCvCxt ay7aHUCM6FWUqRqVpsYqNakPSE5ydf5+pa5tYDuh4Z9FHa7GNQKhAa04U8SxggeZgnL2 289j+Iw89ftcaJcgO/0VGkTUPA2K1ImBp0i0WrnA397vRD5dCiV6+caLqoIQw0Z3AKzr ssf/WB6/b2pk78fjIaV//oFDwRe1qJqLnIqwPjVN4JpIdUhVGdQk/90CYPzQvfQBlgNo ilrA== 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=4/O4KxmkbpQxeGqxvaXxwO9Q+QK3ZAUF6CqEchybL2A=; b=LvKTzup1NdKgsjPLziQJ783GYRe7bQBhZTAuuhSNJTLGTr2478X5AwN8kzi20G1XW4 T3G2s6ra/IS59sjwQLZOsbQamg+wRdm0cCD2s7IcL1ZQm88jZRpRqSg1D1UZxpYh3RMP UVrR/9UYIVq8mYdf9ib3b69BsMlAn9umO1J41JmvCo99rI6pf7I4ykMizzPLJ9uCfjFJ De49BAxRc3owo9Ux2Nh9vk6IYjGQZcAQ9lw5G9KKZoLfBPIAOl7DFi6b5RtPfdI+kc47 Z+TgiIFMjNsxx7rncj+oeUDWMItgKwXO878NvYvu0/hsTzkGzGZ45gs4IfIh39wF9ru4 earQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=flXYav4f; 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 k134si5288203pga.401.2018.11.27.18.53.47; Tue, 27 Nov 2018 18:54:03 -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=flXYav4f; 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 S1727108AbeK1Nw3 (ORCPT + 99 others); Wed, 28 Nov 2018 08:52:29 -0500 Received: from hqemgate15.nvidia.com ([216.228.121.64]:1967 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726548AbeK1Nw3 (ORCPT ); Wed, 28 Nov 2018 08:52:29 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 27 Nov 2018 18:51:51 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 27 Nov 2018 18:52:29 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 27 Nov 2018 18:52:29 -0800 Received: from [10.110.48.28] (172.20.13.39) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 28 Nov 2018 02:52:29 +0000 Subject: Re: [PATCH v2 0/6] RFC: gup+dma: tracking dma-pinned pages To: Tom Talpey , , CC: Andrew Morton , LKML , linux-rdma , References: <20181110085041.10071-1-jhubbard@nvidia.com> <942cb823-9b18-69e7-84aa-557a68f9d7e9@talpey.com> <97934904-2754-77e0-5fcb-83f2311362ee@nvidia.com> <5159e02f-17f8-df8b-600c-1b09356e46a9@talpey.com> <15e4a0c0-cadd-e549-962f-8d9aa9fc033a@talpey.com> From: John Hubbard X-Nvconfidentiality: public Message-ID: <313bf82d-cdeb-8c75-3772-7a124ecdfbd5@nvidia.com> Date: Tue, 27 Nov 2018 18:52:28 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <15e4a0c0-cadd-e549-962f-8d9aa9fc033a@talpey.com> X-Originating-IP: [172.20.13.39] X-ClientProxiedBy: HQMAIL103.nvidia.com (172.20.187.11) To HQMAIL101.nvidia.com (172.20.187.10) Content-Type: text/plain; charset="utf-8" Content-Language: en-US-large Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1543373511; bh=4/O4KxmkbpQxeGqxvaXxwO9Q+QK3ZAUF6CqEchybL2A=; 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=flXYav4fHaJScsfdn+h1Udy38gBvpTJ0HBOSJwCifD8XpD658NmN0z0AR+Wx4//5L 4IdFQjt/zgW6EYndT5qpm00ufgMX1POkfTbwlPe/A+ux06/qBW44I15oQ+lnwsSlMC yVAEKKV4TN9aJ2RLS9vi3xExxWXQ8wZaKRAXVkFysp8nkhbcKyG0SG36oN7TcsmI9A FYL6ka5ZMwna75jK1vFU8oUIz/G5wHfpwiYuJ/C3T2V6k6ZECP8SvFZENX8vJUXxFh HV4X7VnWOoOD+x3weFHvhRydgCct/NkMwSZkIhpyy0ZqZvC2RQT+AirOeJi14GKtmk 0t7zBPCMSGgIA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/27/18 5:21 PM, Tom Talpey wrote: > On 11/21/2018 5:06 PM, John Hubbard wrote: >> On 11/21/18 8:49 AM, Tom Talpey wrote: >>> On 11/21/2018 1:09 AM, John Hubbard wrote: >>>> On 11/19/18 10:57 AM, Tom Talpey wrote: [...] >>> >>> What I'd really like to see is to go back to the original fio parameter= s >>> (1 thread, 64 iodepth) and try to get a result that gets at least close >>> to the speced 200K IOPS of the NVMe device. There seems to be something >>> wrong with yours, currently. >> >> I'll dig into what has gone wrong with the test. I see fio putting data = files >> in the right place, so the obvious "using the wrong drive" is (probably) >> not it. Even though it really feels like that sort of thing. We'll see. >> >>> >>> Then of course, the result with the patched get_user_pages, and >>> compare whichever of IOPS or CPU% changes, and how much. >>> >>> If these are within a few percent, I agree it's good to go. If it's >>> roughly 25% like the result just above, that's a rocky road. >>> >>> I can try this after the holiday on some basic hardware and might >>> be able to scrounge up better. Can you post that github link? >>> >> >> Here: >> >> =C2=A0=C2=A0=C2=A0 git@github.com:johnhubbard/linux (branch: gup_dma_tes= ting) >=20 > I'm super-limited here this week hardware-wise and have not been able > to try testing with the patched kernel. >=20 > I was able to compare my earlier quick test with a Bionic 4.15 kernel > (400K IOPS) against a similar 4.20rc3 kernel, and the rate dropped to > ~_375K_ IOPS. Which I found perhaps troubling. But it was only a quick > test, and without your change. >=20 So just to double check (again): you are running fio with these parameters, right? [reader] direct=3D1 ioengine=3Dlibaio blocksize=3D4096 size=3D1g numjobs=3D1 rw=3Dread iodepth=3D64 > Say, that branch reports it has not had a commit since June 30. Is that > the right one? What about gup_dma_for_lpc_2018? >=20 That's the right branch, but the AuthorDate for the head commit (only) some= how got stuck in the past. I just now amended that patch with a new date and pu= shed=20 it, so the head commit now shows Nov 27: https://github.com/johnhubbard/linux/commits/gup_dma_testing The actual code is the same, though. (It is still based on Nov 19th's f2ce1= 065e767 commit.) thanks, --=20 John Hubbard NVIDIA