From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E53A8C10F11 for ; Wed, 24 Apr 2019 16:57:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A954C206A3 for ; Wed, 24 Apr 2019 16:57:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="yLnsHDhm" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732995AbfDXQ5u (ORCPT ); Wed, 24 Apr 2019 12:57:50 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:41346 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731724AbfDXQ5u (ORCPT ); Wed, 24 Apr 2019 12:57:50 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x3OGmxlx194946; Wed, 24 Apr 2019 16:57:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=CzrGqWyByxCO3VHVFSL9geXMlNlYC1QHj41ZS1p54Pk=; b=yLnsHDhm36qd539kknUGc2ypUGa+Tfv70qgPgq95U/tZBflZVvyoqpP5hH/hGQsWbRXy Coe43uYOfqeBu6atbNIAygtXZx5ENRkZ7UC3P//bldxOjTFf95N2qkGdP7ej16akg9QX +iDh9kV+Q1F0MrkI6Ygm8Yg0YsjGSDxe0BNNnfKq7eeUMLL1vfVvKPZaPgrhpbAncyTl PZD1m6StU6nCY+WVh6hMySYghgD1qIE3y011/DWnpbTgdkXWGw7YXiMxzzaqBEFEfoPT hhPz592j1iyEzqdnOHRduHsfjMSpDuq3J7tTcBdoIGKKdhz96wMRzOudNH03WjtepOP5 UA== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 2rytut3pbk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 24 Apr 2019 16:57:43 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x3OGukNn183607; Wed, 24 Apr 2019 16:57:42 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3020.oracle.com with ESMTP id 2s0dwexyv6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 24 Apr 2019 16:57:42 +0000 Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x3OGvf2D006455; Wed, 24 Apr 2019 16:57:41 GMT Received: from [10.209.243.127] (/10.209.243.127) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 24 Apr 2019 09:57:41 -0700 Subject: Re: [PATCH 1/1] net: rds: exchange of 8K and 1M pool To: Zhu Yanjun , davem@davemloft.net, netdev@vger.kernel.org, linux-rdma@vger.kernel.org References: <20190424065642.28630-1-yanjun.zhu@oracle.com> From: Santosh Shilimkar Organization: Oracle Corporation Message-ID: Date: Wed, 24 Apr 2019 09:59:42 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190424065642.28630-1-yanjun.zhu@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9237 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904240126 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9237 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904240126 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 4/23/2019 11:56 PM, Zhu Yanjun wrote: > Before the commit 490ea5967b0d ("RDS: IB: move FMR code to its own file"), > when the dirty_count is greater than 9/10 of max_items of 8K pool, > 1M pool is used, Vice versa. After the commit 490ea5967b0d ("RDS: IB: move > FMR code to its own file"), the above is removed. When we make the > following tests. > > Server: > rds-stress -r 1.1.1.16 -D 1M > > Client: > rds-stress -r 1.1.1.14 -s 1.1.1.16 -D 1M > > The following will appear. > " > connecting to 1.1.1.16:4000 > negotiated options, tasks will start in 2 seconds > Starting up..header from 1.1.1.166:4001 to id 4001 bogus > .. > tsks tx/s rx/s tx+rx K/s mbi K/s mbo K/s tx us/c rtt us > cpu % > 1 0 0 0.00 0.00 0.00 0.00 0.00 -1.00 > 1 0 0 0.00 0.00 0.00 0.00 0.00 -1.00 > 1 0 0 0.00 0.00 0.00 0.00 0.00 -1.00 > 1 0 0 0.00 0.00 0.00 0.00 0.00 -1.00 > 1 0 0 0.00 0.00 0.00 0.00 0.00 -1.00 > ... > " > So this exchange between 8K and 1M pool is added back. > > Fixes: commit 490ea5967b0d ("RDS: IB: move FMR code to its own file") > Signed-off-by: Zhu Yanjun > --- Acked-by: Santosh Shilimkar