Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4024582pxf; Tue, 6 Apr 2021 06:19:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcCbmhkW6HpsPn+FV8zaM4/6ujfQ/IH0x62a7iNDwW+4ZzFTZLT2NbGsyWpY8BxtwUP4zN X-Received: by 2002:aa7:c9c8:: with SMTP id i8mr37369254edt.193.1617715181028; Tue, 06 Apr 2021 06:19:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617715181; cv=none; d=google.com; s=arc-20160816; b=AO9WuyGiaxDTRMWZLna6xxr/6vMatmVf1kwXUt9sSbzzlpxe6C2A7MpWh5WWsmXsoV T4xPg90BCMBVb85QrnHexPFtXQCiGhFI5faU3+LkQG5SN0v+vd47BNqGesBlVjamtWn2 JxIxexFkDmgoOndaw8vPk3I7qNeGXl125eCrhDw5Y+oGImIzEW2sc/iRSkLXORfEBPTB M28KOHq1ASaZWyru8jeuV+LkC8jGXb9cBJB0zw4AjKrIHrc23LbIG0vXnhGhZ1tbAZIf JIvBGhpO7jMVsjMp/dzCeU29Y6BlXOhJ55rZZeGSkjiTIFRI13gMlbZ0+AUtfoCOqeVY IESg== 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=JJOS16aOEtmrW7oV+ET1Rfd+vCA3wAUHck1wsvYFFwE=; b=HdrMbyvxu3uQUr7tNeQ942YLA8DiXUirat9yX9rjdEJV9YShGZuiX6a2taA2U9UTE1 vYwgUTXS8xWNjqu87Ca9Ivh23Z41NfxQ/3u+dwNYnPNwAMnqyWMqRkWHW6jFyt0MyAqH Hl+LhtEb+YJEpj4UARjg/PBzlEniQCC1pZGAxmSHDRSBnmldhcn3kOGOfyvCa3EweVGR EfRue3nnG43tJ++1K7NX/BHzhxKxlPlsqxGYGi/HFf1GQA5BfkXkq6j1QlyyUX5AYzvA rYnFC1jLaqv2DJ626nvQPNBPDCwhUHdIRebWEUYObjyKvHJLY1mqZg82okDSU0Cy1PZ1 2k3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YAkOjjj0; 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 cx26si2813180edb.198.2021.04.06.06.19.17; Tue, 06 Apr 2021 06:19:41 -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=YAkOjjj0; 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 S242625AbhDFFJy (ORCPT + 99 others); Tue, 6 Apr 2021 01:09:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:57824 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230073AbhDFFJy (ORCPT ); Tue, 6 Apr 2021 01:09:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E04D2613B8; Tue, 6 Apr 2021 05:09:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617685786; bh=X92KQg3tXG2x2dhtuX1igH+EpubBIGXwmzFmddKebSI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YAkOjjj0GL3XRB09Ij60URoGO7NdIuDIosagpxtfZ9iVq8xjzpRqmg0/f2VeAwevd gCLGwz21lbIWMUVSXSoaqFi0Iru0BxK0GRYMSdNgIrMHK9Yg3XdHCPbe/mFLACsA/X UFvAfStd4Pc48XpaL+1vVCP+pCq8UiEBkUw/DIxk2rU7bNPyvyjyKgmWx+rw14jJw/ p73HiTP8ZGkD/NT+l86ADeas4d0UOfVxF9OY/sGrq+KRIXmDN6hnoJfqvKvFi3f0Bw dXBW8ogvsD7qEJhmTiZTbVWnJi+ud6+yxx8O41YQGlllSDdvvG13vLa6u7yKwxk3MU mcvvXPEGKgaVQ== Date: Tue, 6 Apr 2021 08:09:43 +0300 From: Leon Romanovsky To: Honggang LI Cc: Doug Ledford , Jason Gunthorpe , Adit Ranadive , Anna Schumaker , Ariel Elior , Avihai Horon , Bart Van Assche , Bernard Metzler , Christoph Hellwig , 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> <20210406023738.GB80908@dhcp-128-72.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210406023738.GB80908@dhcp-128-72.nay.redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Apr 06, 2021 at 10:37:38AM +0800, Honggang LI 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 > > Did you test this patchset with CPU does not support relaxed ordering? I don't think so, the CPUs that don't support RO are Intel's fourth/fifth-generation and they are not interesting from performance point of view. > > We observed significantly performance degradation when run perftest with > relaxed ordering enabled over old CPU. > > https://github.com/linux-rdma/perftest/issues/116 The perftest is slightly different, but you pointed to the valid point. We forgot to call pcie_relaxed_ordering_enabled() before setting RO bit and arguably this was needed to be done in perftest too. Thanks > > thanks >