Received: by 10.223.185.116 with SMTP id b49csp1124366wrg; Tue, 20 Feb 2018 13:50:35 -0800 (PST) X-Google-Smtp-Source: AH8x227TGj19CwSe1aW+eRpUga7iV6sVbZnkmpM4f7pRcadYO17tGI0O7c2Ck67jaNo+4azPa3ZH X-Received: by 10.98.36.217 with SMTP id k86mr986698pfk.137.1519163435406; Tue, 20 Feb 2018 13:50:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519163435; cv=none; d=google.com; s=arc-20160816; b=OzAmHwi6ZSvXlesUuUSRA71M9WnQtfIr16sUwcXllfkg1/iD+KiBmMnqia6IxJ4NMz t347B89eYGdoEDV9QO5NL5j3m/o+nViiA51zuqYjZl3Q9+SsY37IIeSJZK1H5CV5A2Zk +LT/k96G3RYHsINbNrC3s5aGchdLEEZKPBjK+6jaKDfCehPrfpsfs49Ky+I6ij+iwi7c tUO8vPzBQj5FCIuYw1CP22N6DceLGA6jVOS/H9bkbIKvUVVnS40hZUA3tdBDFb6mw6Mm cR4BcSofUkJ3FZJdAfELrfR3DzjOYPZRiZ7ISdqs7F89JKaC/TG+6Sgm87nH9q06FC5X xvTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature:arc-authentication-results; bh=2ajw32csPdcpAlfTo2YmBI0XOO+wbQmdcSRrSE54UHY=; b=PRqiwl4nxPgrjbOJXKGtL0TUXtjOKntYMaeVBSfzlFHuD8SKWu68wfyz1S+659rJ0f UE5BW65kKPukzsyRwG5yJN8758lxLmvT/Cf3ypML5xukoJUxSd5qFOiclSdLdGaUjAAU ZeEV27wfwWMNV4nObbCimVLfdxmdL9ENSMTZZEN+eFTc1N+X8fhshbRwfBpgXdhSDmvs K7MnfX3B3n9Qgkn3wanWiQBB7nEtUzk1BNxk4TpN1ISyJlbfxYVTxW+oTrRYYUELE5D0 kv5sVEcYZ8wRKjBWSpyUoSVgu5D8s7CAm8wFjwyqt5JLmcvMFlFNvfcIs1UQq08u4vFy yv/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=SOBW9ZKB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 14-v6si168918plb.444.2018.02.20.13.50.21; Tue, 20 Feb 2018 13:50:35 -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; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=SOBW9ZKB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751683AbeBTVry (ORCPT + 99 others); Tue, 20 Feb 2018 16:47:54 -0500 Received: from aserp2120.oracle.com ([141.146.126.78]:51912 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750985AbeBTVrv (ORCPT ); Tue, 20 Feb 2018 16:47:51 -0500 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w1KLkxRc048593; Tue, 20 Feb 2018 21:47:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=corp-2017-10-26; bh=2ajw32csPdcpAlfTo2YmBI0XOO+wbQmdcSRrSE54UHY=; b=SOBW9ZKBr+ah6vZvRrQqlb6eP8yyM1UQGME25aefVrSB0j0n7u9wxzOWurSACMt+53GG fDKBzPjzcuO1EaH69adxqtr/OBzSPZ02jl4pqwg1KhAI5khOQFGQf2zde1ZOla7bD5ac f4k0CqgFEsrxWzA4Fkwru2HfV3tbFSvuu+roFSiPDqp5QJaBnNN45kAKTlcnmrb2HgAT YRWnG1IQxZyER9n0U5+GOZcgdMIkjO057uZML5+Tsd0AFqCeMnOKPKBSPosu7ynUIMd3 3Ig1bhhe8g81P7dqMsuTwBeokmv+yK9moa4aolCG1F0i3pJU0jhEoqy6EPMXd6nCG9b5 OQ== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp2120.oracle.com with ESMTP id 2g8tjf0d2s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Feb 2018 21:47:35 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w1KLlYcM005379 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 20 Feb 2018 21:47:34 GMT Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w1KLlXt3025240; Tue, 20 Feb 2018 21:47:33 GMT Received: from anon-dhcp-171.1015granger.net (/68.61.232.219) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 20 Feb 2018 13:47:33 -0800 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: [PATCH] RDMA/core: reduce IB_POLL_BATCH constant From: Chuck Lever In-Reply-To: <1519161268.3737.12.camel@wdc.com> Date: Tue, 20 Feb 2018 16:47:31 -0500 Cc: "jgg@ziepe.ca" , "arnd@arndb.de" , "dledford@redhat.com" , "linux-kernel@vger.kernel.org" , "leonro@mellanox.com" , "linux-rdma@vger.kernel.org" , "sagi@grimberg.me" Content-Transfer-Encoding: quoted-printable Message-Id: References: <20180220205924.2035765-1-arnd@arndb.de> <1519161268.3737.12.camel@wdc.com> To: Bart Van Assche X-Mailer: Apple Mail (2.3445.5.20) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8810 signatures=668675 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=659 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1802200259 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Feb 20, 2018, at 4:14 PM, Bart Van Assche = wrote: >=20 > On Tue, 2018-02-20 at 21:59 +0100, Arnd Bergmann wrote: >> /* # of WCs to poll for with a single call to ib_poll_cq */ >> -#define IB_POLL_BATCH 16 >> +#define IB_POLL_BATCH 8 >=20 > The purpose of batch polling is to minimize contention on the cq = spinlock. > Reducing the IB_POLL_BATCH constant may affect performance negatively. = Has > the performance impact of this change been verified for all affected = drivers > (ib_srp, ib_srpt, ib_iser, ib_isert, NVMeOF, NVMeOF target, SMB = Direct, NFS > over RDMA, ...)? Only the users of the DIRECT polling method use an on-stack array of ib_wc's. This is only the SRP drivers. The other two modes have use of a dynamically allocated array of ib_wc's that hangs off the ib_cq. These shouldn't need any reduction in the size of this array, and they are the common case. IMO a better solution would be to change ib_process_cq_direct to use a smaller on-stack array, and leave IB_POLL_BATCH alone. -- Chuck Lever