Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3807144pxf; Tue, 6 Apr 2021 00:14:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHTzog+31o3Mbor6xn2jQDZ+WeqMvTv9Kggb1huB4L4XoE5/1HnSqDWFSysQaKsIzAEOhC X-Received: by 2002:a92:c7b4:: with SMTP id f20mr8922435ilk.170.1617693248012; Tue, 06 Apr 2021 00:14:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617693248; cv=none; d=google.com; s=arc-20160816; b=qMviE7T+HmEMEHPdKJLz/rA/FcmRtnSeAbcHWSCkMU7yJsDTrp4Fx8vmiun9ndnJEO 5dxx3QGl34JXFp+Eb+1rJg2Dv6P8JD0zvPNo/LOThiDa2jzcVhRZEdqkApgNMpkLB+rU lyCrTsMPnLyeIR37V9OXO2kk9nnLO6LnuO3vKmrQF+q32HYjm0sq41zxPHEts8VONqjA IAqWlSkHrsX8ee0d25Df3o9t/lF6P9wpv5XS7780UOrm575iDsG9eCtMMZOFuh5QPHgJ ACjAqj8IGYhzcgc2U6l78rdxZK5oIp5nuomTtiNS17QrIxPePqLj6Ys4ihB8uLX6lFnJ rklw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=eZjwjftwK2ZA+IKOB1uDK9e0ESyka/gQPCXnEGxc18s=; b=FUFYIoNErQonpAY09Os3LJvGjI/R80WnthDAumRt7u0FjO/I9h0AcpqEhyXj2fJkS9 NWoIKAatFoJRwKeVJJx1btW/VtDwtTNIH5rhT92plwcq+mQbLIboFoM9/4zqYW+N2/f9 GIePmfnT62RSvXG9JGHwm1Yagxj97ocQhCY2JYPiUK571Xy6JsgP5NC44/mUaHHKBmxE 3OnGPc0C+JMFYQ60BwcARXGFbziYzt1ol6veNAP9YVtR/owYajovgSq48b9/aDE5fDdQ p8irncjWxhp4eOmtGb/o+VHF3JME1RcqBvSu0+OXy+JjCi7HnqUOoa/B3DyY+H2Gn0c/ ajAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n10si16913182ili.79.2021.04.06.00.13.44; Tue, 06 Apr 2021 00:14:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234382AbhDERym (ORCPT + 99 others); Mon, 5 Apr 2021 13:54:42 -0400 Received: from p3plsmtpa06-03.prod.phx3.secureserver.net ([173.201.192.104]:42318 "EHLO p3plsmtpa06-03.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232076AbhDERyl (ORCPT ); Mon, 5 Apr 2021 13:54:41 -0400 Received: from [192.168.0.116] ([71.184.94.153]) by :SMTPAUTH: with ESMTPSA id TTQklDwIKlaXaTTQklPVrj; Mon, 05 Apr 2021 10:54:34 -0700 X-CMAE-Analysis: v=2.4 cv=eKjWMFl1 c=1 sm=1 tr=0 ts=606b4eda a=vbvdVb1zh1xTTaY8rfQfKQ==:117 a=vbvdVb1zh1xTTaY8rfQfKQ==:17 a=IkcTkHD0fZMA:10 a=Ikd4Dj_1AAAA:8 a=Yaz6U4fXJU-nSkCjVyEA:9 a=QEXdDO2ut3YA:10 X-SECURESERVER-ACCT: tom@talpey.com Subject: Re: [PATCH rdma-next 00/10] Enable relaxed ordering for ULPs To: Leon Romanovsky , Christoph Hellwig Cc: Doug Ledford , Jason Gunthorpe , Adit Ranadive , Anna Schumaker , Ariel Elior , Avihai Horon , Bart Van Assche , Bernard Metzler , Chuck Lever , "David S. Miller" , Dennis Dalessandro , Devesh Sharma , Faisal Latif , Jack Wang , Jakub Kicinski , "J. Bruce Fields" , Jens Axboe , Karsten Graul , Keith Busch , Lijun Ou , linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-nvme@lists.infradead.org, linux-rdma@vger.kernel.org, linux-s390@vger.kernel.org, Max Gurtovoy , Max Gurtovoy , "Md. Haris Iqbal" , Michael Guralnik , Michal Kalderon , Mike Marciniszyn , Naresh Kumar PBS , netdev@vger.kernel.org, Potnuri Bharat Teja , rds-devel@oss.oracle.com, Sagi Grimberg , samba-technical@lists.samba.org, Santosh Shilimkar , Selvin Xavier , Shiraz Saleem , Somnath Kotur , Sriharsha Basavapatna , Steve French , Trond Myklebust , VMware PV-Drivers , Weihang Li , Yishai Hadas , Zhu Yanjun References: <20210405052404.213889-1-leon@kernel.org> <20210405134115.GA22346@lst.de> From: Tom Talpey Message-ID: <0aa2dfc1-58e4-ac54-4ac7-3229039d9c7d@talpey.com> Date: Mon, 5 Apr 2021 13:54:30 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfHeFvch9CXwEtdZ0IkSfSvDfJ61kGmHt9NGJgHNYQrySGqVVDuJ9ps49cslZGA73vKwNzEnCWV3k2oacgtBjOJFQVLAEGLod/GadB5w/PafttQ7Fq1jG hE+lbXhi2AOywYITjKNx1X1H/Wi9V5phrjJT9rYrPKyn8tmtMiOsfCwXSRUf4ZiRBPXg2e3M1oDqs3m37DE92cVI9vaW/dpSZGTLmHJmfNtQb3+k4QF8RcLP iyUJ6lm9LN8mw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LSG/eUxiYtJwWzhSSGGnPxp6tpPXwhHRCR2fS3hPunOc/BB4XDYAoRNbRQ8S9geX74vBfjR+7Mo/kEO+Ff1j/N/Pw/dPaSqM+s75erYzNEXE4uNr2yPjuFe RxZ54qOcm0eN4Kz/3MkrXc1qXWQIgqa8rMSPNIzcFXnHPXarf4r3mpzRtKaHqFVFd9+Ppmq8pTawFgx22hfqH6+2PrdpujOg9rLE1PSz4utM9m1qJ3ah/GrF dS3+E8jo80U5VFYoGJkRiSV7nEssBN/EHCDhggTQ8ObvhQpVhar3n28oCi5V4opOGfwPWz7BSvpdt/3wO6pKkM+X3oG5V4UjNkVXQ71Hxa9Mvjd4Q+1Ss96U yrrp3sVVys39o+RqZfQzme+urxFYVMYtau+xDORmNQy8ens2+eIIizgbX4qf8PnTbYwMX5GJWnF4VvFtqsrPU+co2qKDliR0AH4h73z5MIRf/29FBdxwZcnJ 2RY7d4Chv6V4B8lPxXoM8mypwKNqsD98EHFTJFfHQz3IHKpl8Ot6wKjTnOV1YELuQXDFm9K3JLqPHY7ARmRiIponvY2zNyT40SrjkJ/UZEtgkuYSO6Wp/RjQ JE39Fg== Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 4/5/2021 10:08 AM, Leon Romanovsky wrote: > On Mon, Apr 05, 2021 at 03:41:15PM +0200, Christoph Hellwig wrote: >> On Mon, Apr 05, 2021 at 08:23:54AM +0300, Leon Romanovsky wrote: >>> From: Leon Romanovsky >>> >>> >From Avihai, >>> >>> Relaxed Ordering is a PCIe mechanism that relaxes the strict ordering >>> imposed on PCI transactions, and thus, can improve performance. >>> >>> Until now, relaxed ordering could be set only by user space applications >>> for user MRs. The following patch series enables relaxed ordering for the >>> kernel ULPs as well. Relaxed ordering is an optional capability, and as >>> such, it is ignored by vendors that don't support it. >>> >>> The following test results show the performance improvement achieved >>> with relaxed ordering. The test was performed on a NVIDIA A100 in order >>> to check performance of storage infrastructure over xprtrdma: >> >> Isn't the Nvidia A100 a GPU not actually supported by Linux at all? >> What does that have to do with storage protocols? > > This system is in use by our storage oriented customer who performed the > test. He runs drivers/infiniband/* stack from the upstream, simply backported > to specific kernel version. > > The performance boost is seen in other systems too. We need to see more information about this test, and platform. What correctness testing was done, and how was it verified? What PCI bus type(s) were tested, and with what adapters? What storage workload was generated, and were all possible RDMA exchanges by each ULP exercised? >> Also if you enable this for basically all kernel ULPs, why not have >> an opt-out into strict ordering for the cases that need it (if there are >> any). > > The RO property is optional, it can only improve. In addition, all in-kernel ULPs > don't need strict ordering. I can be mistaken here and Jason will correct me, it > is because of two things: ULP doesn't touch data before CQE and DMA API prohibits it. +1 on Christoph's comment. I woud hope most well-architected ULPs will support relaxed ordering, but storage workloads, in my experience, can find ways to cause failure in adapters. I would not suggest making this the default behavior without extensive testing. Tom.