Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3261014imu; Thu, 29 Nov 2018 19:15:03 -0800 (PST) X-Google-Smtp-Source: AFSGD/UfcAXdCDO1ZIruQRIPy0RFiXOSttB2iamEVO8x/BOMHZncZAZxwpGSHUNLDbbpXmnRhkkK X-Received: by 2002:a17:902:5066:: with SMTP id f35mr4063667plh.78.1543547703266; Thu, 29 Nov 2018 19:15:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543547703; cv=none; d=google.com; s=arc-20160816; b=vWjGxumd5SKW8rkuNOsov1/JF/dd0pt7Gcvjkz4bTgmHwcQhnPAyoieTQWarDfRTJ+ +cKnt3m4pAUPQEJf762zHYUiLzMPvoeiBRqZWV/HNWB50LYDW+XXzRk/R7k2UPNVamXg 9vQBr/lxKss/iFp9KVnHBWk+SAmSrPWrTWBjxaSrb2yC6SgGc2xSPiEVYxkjO6v1glVI AHQA9Tcr9CmHJEsIa7N6R0h01kuVbP8hksaMtM2aVzElLB7aqGqVK5KUWBSHMw3xc8mB FU6WKIq8f6JUS5al8zxURDrUeN904VjjuyLr655U6Vr/enWGyFogLIy082o7b2aC42on PAvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=eRvyqoNF82NqgTVT0Tc6F22iRPfjQjKrAFCr8BvaTac=; b=xOFFW9BGKESqh5gx3Sqxp5carBwuSmSXrF1MYImhzlzQORgFHtY28TDLhKTRwEoebQ asxj4Yhv8hmjnQZOHfFoAFEzTpu11Px95j/93tvFJqxtHhjb+wNlDBxJZe4DA008LYQg nToy/AyezkFTx9fssZy6eo1DkcfSqkMS5vL2G+3UtHRk/JZW2g/4ggRMc6Bs/Z5Ojbjr YOef9dD1M9BrwwadTmb7Bl+rQukJSq3W9riJ2R/Gslp7wrDb9bg3erPtUDjGSxdh4Mc0 rd1nWgnYoUwOecIEomVhYB23wf9xGHxoocC4mJluUdSx+/M37mXaPFBIxDC/VwBHgcvw 1hAg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bg7si3900282plb.149.2018.11.29.19.14.48; Thu, 29 Nov 2018 19:15: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726615AbeK3OV7 (ORCPT + 99 others); Fri, 30 Nov 2018 09:21:59 -0500 Received: from p3plsmtpa11-05.prod.phx3.secureserver.net ([68.178.252.106]:54443 "EHLO p3plsmtpa11-05.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726387AbeK3OV7 (ORCPT ); Fri, 30 Nov 2018 09:21:59 -0500 Received: from [192.168.0.55] ([24.218.182.144]) by :SMTPAUTH: with ESMTPSA id SZFqg4k93AqHTSZFrgGwZY; Thu, 29 Nov 2018 20:14:11 -0700 Subject: Re: [PATCH v2 0/6] RFC: gup+dma: tracking dma-pinned pages To: John Hubbard , john.hubbard@gmail.com, linux-mm@kvack.org Cc: Andrew Morton , LKML , linux-rdma , linux-fsdevel@vger.kernel.org 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> <313bf82d-cdeb-8c75-3772-7a124ecdfbd5@nvidia.com> <2aa422df-d5df-5ddb-a2e4-c5e5283653b5@talpey.com> <7a68b7fc-ff9d-381e-2444-909c9c2f6679@nvidia.com> <1939f47a-eaec-3f2c-4ae7-f92d9fba7693@talpey.com> <0f093af1-dee9-51b6-0795-2c073a951fed@nvidia.com> <04c18816-e15d-bffd-e8be-eceefae77197@nvidia.com> From: Tom Talpey Message-ID: <79d1ee27-9ea0-3d15-3fc4-97c1bd79c990@talpey.com> Date: Thu, 29 Nov 2018 22:14:11 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <04c18816-e15d-bffd-e8be-eceefae77197@nvidia.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfLl4s2Kh4rjShZybL1Zd74cIbTB7KNle0FBc/ds3QYL1RKxFMzYx5OxLF5r3gyjGAMWVj/4FsC3DpMS5IB4RNe2LrZ/AaJaUDwL2ySsnyj8Yr/41xjEU zNj+D4iFYaa2PofC2o+MvNRy/Zqa4TNG33U/IlxVo4Kmnq8W6T24tOiCk+ydWd+yn5VqT3xNZuufes/300lE2wbs/YuLPVMGlFag0Da7Kyxc5sIz7fwcHOwJ 26eWAsneVln+12Jn1R+z+VT98L4fGewXqZrtgU+C1e5/40fe9TgeGsNeFzzKyKqHvAbBLpQ5sf0QfBEIyopJjk7haADD1S+26eELy9lZay/M7UvmeBuA2PHb EI4Y2cuAv2nAppxCbvvU/L0yi7cOymuDxdDM+owRhZ85LsoseaQ= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/29/2018 10:00 PM, John Hubbard wrote: > On 11/29/18 6:30 PM, Tom Talpey wrote: >> On 11/29/2018 9:21 PM, John Hubbard wrote: >>> On 11/29/18 6:18 PM, Tom Talpey wrote: >>>> On 11/29/2018 8:39 PM, John Hubbard wrote: >>>>> On 11/28/18 5:59 AM, Tom Talpey wrote: >>>>>> On 11/27/2018 9:52 PM, John Hubbard wrote: >>>>>>> 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: >>>>>>> [...] >>>> Excerpting from below: >>>> >>>>> Baseline 4.20.0-rc3 (commit f2ce1065e767), as before: >>>>>       read: IOPS=193k, BW=753MiB/s (790MB/s)(1024MiB/1360msec) >>>>>      cpu          : usr=16.26%, sys=48.05%, ctx=251258, majf=0, minf=73 >>>> >>>> vs >>>> >>>>> With patches applied: >>>>>       read: IOPS=193k, BW=753MiB/s (790MB/s)(1024MiB/1360msec) >>>>>      cpu          : usr=16.26%, sys=48.05%, ctx=251258, majf=0, minf=73 >>>> >>>> Perfect results, not CPU limited, and full IOPS. >>>> >>>> Curiously identical, so I trust you've checked that you measured >>>> both targets, but if so, I say it's good. >>>> >>> >>> Argh, copy-paste error in the email. The real "before" is ever so slightly >>> better, at 194K IOPS and 759 MB/s: >> >> Definitely better - note the system CPU is lower, which is probably the >> reason for the increased IOPS. >> >>>     cpu          : usr=18.24%, sys=44.77%, ctx=251527, majf=0, minf=73 >> >> Good result - a correct implementation, and faster. >> > > Thanks, Tom, I really appreciate your experience and help on what performance > should look like here. (I'm sure you can guess that this is the first time > I've worked with fio, heh.) No problem, happy to chip in. Feel free to add my Tested-By: Tom Talpey I know, that's not the personal email I'm posting from, but it's me. I'll be hopefully trying the code with the Linux SMB client (cifs.ko) next week, Long Li is implementing direct io in that and we'll see how it helps. Mainly, I'm looking forward to seeing this enable RDMA-to-DAX. Tom. > > I'll send out a new, non-RFC patchset soon, then. > > thanks, >