Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3496732pxf; Mon, 5 Apr 2021 13:48:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwE4UtNNgRHPU+Jj0os9ajku9jThwVLLKlvpLt9aoDZFrwDopeqMDtW+FifAgk4/xyitv1U X-Received: by 2002:a05:6e02:504:: with SMTP id d4mr21496884ils.125.1617655706396; Mon, 05 Apr 2021 13:48:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617655706; cv=none; d=google.com; s=arc-20160816; b=lll0SWQDWiVXbnQAVuO4HkQkLkLA2U6nrDr3/si87/lmXVwAo4jFhJ4YOcSgQQTol5 a/rhfI/OYXwwFSuWYcb8/pOrXjC/2JlIOA0lHVg+Nccx/RZH1GCMPYDsiR/Z/BhQw4gb iNnR1EqWKWWjKkPItr4znMRRaIxqitU5miELLnuCGj6eMhenYYJkAiY9DBx2qhnuLz/9 eGR0/uZfQo3IKjrA3bEzJI7nWatWwt4QlWeLWnZc1Sm/Pk1y6G8eSnU8OZR2XY25MLh9 2kYsVuIuiQqxiEhKhO5Mv/roUPzoPJ8CfqEfZTlVGpdwy/mwm1d+KLt1r0go/MjJucja /LaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xMtwfqdkvYDs8AATzK2Fhu90LrMVQmosINEAB/mosmg=; b=Z62lcKUm5LEtNcDIZtgy+X8CNWP/wxrIFz1mhzoAQiRnHV8tNqLEeqs1n/Btef7tqq a13qKIS28uJdLXMd6B88h1ikZOY2PCgMgIzUW12RtEwaoFK7tY8Dp+TMbWlIHhDeb8p1 w4emJLe0ajkWkmQl6Dxc8GCFZ02pThiK0HBgRI4d6SW+MqadplzTwoBck9byEqgcVOpu /ONjHPJEi1uVEVovV6hVfWCDQQeRLeFb65KM1HScU6UIwE139egMP/bZPkiIX2IRf3IC TyZwABzY2f56cZ9S94Kw3OgAAvCy8fu61D3OKb8kWyJRB6Muw3crWsFManuPhvbUbM6t 1yRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I6k7K+Gu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q3si16331442jaj.22.2021.04.05.13.48.12; Mon, 05 Apr 2021 13:48:26 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I6k7K+Gu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241265AbhDEOIn (ORCPT + 99 others); Mon, 5 Apr 2021 10:08:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:55574 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237431AbhDEOIn (ORCPT ); Mon, 5 Apr 2021 10:08:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8D99C613B1; Mon, 5 Apr 2021 14:08:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617631717; bh=LF0+zRsEi7jGYk/Bg8vQa1eqOiMQAgaqbYGUkXrouMw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=I6k7K+GugdLkntOIS/XDUjVAG89FAmzBko1fER7cc3uE9NDtxEXpfu2Xnwtq/0NxL ckDn8FJGtmNFigRJklJ7KJ88kfm6kTIfkzu3K1al8GZ7hrG/NbQzaebZPrLuRPMKeV AptGe6e5kFiM39xIw5oZeLhyTwrYwxKuFNMZKvbh6T+PyVEguwKyGNPBgMTiuZrCtk 1J4xCIyRWGlQcLyexllVaPJpVxprEGXSRehfPLV3q2bRKrFBLmzp+wrTu00d0Soctr YYj1Q6Vs4W+Ds4QlJ6sIRBcayMiU899q/lysRyhZ5ut6I4xryD2Pm4kvUfyk5iXnMH E6a7i+TLCgJHQ== Date: Mon, 5 Apr 2021 17:08:33 +0300 From: Leon Romanovsky To: 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 Subject: Re: [PATCH rdma-next 00/10] Enable relaxed ordering for ULPs Message-ID: References: <20210405052404.213889-1-leon@kernel.org> <20210405134115.GA22346@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210405134115.GA22346@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org 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. > > 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. Thanks