Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1245383pxb; Fri, 21 Jan 2022 13:14:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJxm9Ov6uC+IAf9905spnbq8/jj91ljXdJytimjGhEwV1XLNl/jXSmBf7D4eb3iIjq5oSyMK X-Received: by 2002:a63:750b:: with SMTP id q11mr4097603pgc.349.1642799662908; Fri, 21 Jan 2022 13:14:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642799662; cv=none; d=google.com; s=arc-20160816; b=uKv9Rsoth8pZ38+Gqfkpg7rQqxIfBu+zqXvT4zjbaoJqEESqYVGzl1jdR4Zivz0x4Z Catnd/AZJ5M4od2HSYevuoVRyMxS6K3ljk116qCW6EkvR2gztsJryPxPJK6iso1Ckp0A AXzZfqE4KVz7ZwEv34iMbrVu0CBFNP4sXePo1fxkExbSUE3SjTSAgmJQbQSuzuacSOSk Rop4xx+8XLIR3sXwTmme8ZuJCKCb083ZtgpztNPFwcFwoc0VFfOTESP5hNRomXrnTFgO n5Iqp2q2U+jGzrjEcsMRJSyTXUJp4k59+H87JuHq2hPytP0xbKm4/mPf65GBCAG9A7tE xsNA== 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:reply-to:message-id:subject:cc:to:from:date; bh=sDiKhAZKYNoMS/adj1DP2Hz9+9ZtT/ftwKr7foiucdk=; b=ofGaQsmCRP73Q5ZmlBTuSyscQFhyshZlyHZR4GsK11V0+/IROUBi7Ux/56JVwi7raX AA4jgzWDmHKdBf45kU29cbJNnf/EZ9kUDLLvqZRO+525eCc+MAB5osvb9vwDPrQg6OR6 eJ/hYDTSP7hnnGOn8P+PEauV0cXwjxkOEjiSY7APNJNDjirtppl2Gf84eTUHRTOO50f2 GBtVh7Rs+NUkQmf/i68qPy9Uu00rwsUI+U/7F+pDhd0wiFXVxoTQrDFR5fKFUI3ZXsBf nj6856uYHwVZtgXoowsZQiIz2YnssepSkSHDeN0Japdvw/UII2P0Dl55u/LBFn9x937T LTEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b1si7641304plh.538.2022.01.21.13.14.11; Fri, 21 Jan 2022 13:14:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359565AbiATJvo (ORCPT + 99 others); Thu, 20 Jan 2022 04:51:44 -0500 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:1252 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237302AbiATJvn (ORCPT ); Thu, 20 Jan 2022 04:51:43 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R801e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=dust.li@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0V2Lw80i_1642672291; Received: from localhost(mailfrom:dust.li@linux.alibaba.com fp:SMTPD_---0V2Lw80i_1642672291) by smtp.aliyun-inc.com(127.0.0.1); Thu, 20 Jan 2022 17:51:31 +0800 Date: Thu, 20 Jan 2022 17:51:30 +0800 From: "dust.li" To: Guangguan Wang , kgraul@linux.ibm.com, davem@davemloft.net, kuba@kernel.org Cc: linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH net-next] net/smc: Introduce receive queue flow control support Message-ID: <20220120095130.GB41938@linux.alibaba.com> Reply-To: dust.li@linux.alibaba.com References: <20220120065140.5385-1-guangguan.wang@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220120065140.5385-1-guangguan.wang@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 20, 2022 at 02:51:40PM +0800, Guangguan Wang wrote: >This implement rq flow control in smc-r link layer. QPs >communicating without rq flow control, in the previous >version, may result in RNR (reveive not ready) error, which >means when sq sends a message to the remote qp, but the >remote qp's rq has no valid rq entities to receive the message. >In RNR condition, the rdma transport layer may retransmit >the messages again and again until the rq has any entities, >which may lower the performance, especially in heavy traffic. >Using credits to do rq flow control can avoid the occurrence >of RNR. I'm wondering if SRQ can be used to solve this problem ? One of my concern on credit-base flow control is if the RTT is a bit longer, we may have to wait RTT/2 for peer to grant us credit before we can really send more data. That may decrease the maximium bandwidth we can achive in this case.