Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5188583rwb; Wed, 21 Sep 2022 04:35:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6W7nnEQvmbRf0VjvGxaIV8PSLG/K0oKHDW0y+RcuauIk/xvEH0/42hbfw4/v+FS83iWJW4 X-Received: by 2002:a17:90b:2786:b0:202:8ad9:f36e with SMTP id pw6-20020a17090b278600b002028ad9f36emr9138720pjb.83.1663760114054; Wed, 21 Sep 2022 04:35:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663760114; cv=none; d=google.com; s=arc-20160816; b=IXV+xC0EPNnGS0m2pTWv6uwm/95OxNwN2BbV0oabTOEW5wpIgW98ZUERuBMmPSocp+ H80y1KYn8HGHBNs0Qcz0dUubmGtuUd3IZ6QacAn54Mnq3N/P7AwTj9Lp5AYxr+gr88DW hqnId1RfXrxIcXBoAy94pHlt3CuM47znZ2Z6JL9uROlIoyV+hs89RLtS+4qcMwpUxKO2 xUNJPnf9dRn2xPcX3fsiZkG7nTf8hI/byLb54dxCWF4nh9erq9ytpCn9cWqiKP3XXMIu 02B2+TlP2yJFq0KniV+qJvv6wH/h5+F14UF/xCCB2x9TsMouMorWuEsJGLcU62uZbJOP 151g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=ShYUKc06DY3gwaQ1FcT8BPb9yb5UxzqaX6Cwhta5vbE=; b=dnzGZRzKVzCIDf2qPlZmfggJQ4wzMTzGDLFSWvNcdrC9OREXlhzV6BZ80ACdALVbUJ WXqt17L6ENw9ODfABudXeOyBZ6aOWoush8PAIb0egfoeKGkbtPPnH94yebGq8LP8CP1Y 2E0mMg4J0PNwNY5OFqE/Ye54WcO1qIHCdMqrwiILukjYAQyOqIDniiR3GUcbo9wN/HiN bzMrS+jyKcZDf/6coENxEJp7A3Q32NKGgcY2kP6SwT/DB+FqnyjFLR4coJcLP43U84zl QMY5r1as3WmQJM5ABqRXh2eWMF5ttpHusN5czw0LpiRbQLrGweXhwHdumUMkI67BDe1F A2XQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w9-20020a170902a70900b001713df0c8b2si2255376plq.213.2022.09.21.04.35.01; Wed, 21 Sep 2022 04:35:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229845AbiIUKyM (ORCPT + 99 others); Wed, 21 Sep 2022 06:54:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229738AbiIUKyI (ORCPT ); Wed, 21 Sep 2022 06:54:08 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F90A7CAA0 for ; Wed, 21 Sep 2022 03:54:06 -0700 (PDT) Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MXZtl1XHMzmWL9; Wed, 21 Sep 2022 18:50:07 +0800 (CST) Received: from kwepemm600017.china.huawei.com (7.193.23.234) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 21 Sep 2022 18:54:02 +0800 Received: from [10.67.101.149] (10.67.101.149) by kwepemm600017.china.huawei.com (7.193.23.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 21 Sep 2022 18:54:02 +0800 Subject: Re: [PATCH v2] iommu/iova: Optimize alloc_iova with rbtree_augmented To: Peng Zhang , , References: <20220824095139.66477-1-zhangpeng.00@bytedance.com> <42909903-5b6c-efe8-9ed3-3ac012f1a421@huawei.com> CC: , , , , From: "wangjie (L)" Message-ID: <36ce6959-a4ed-bf33-9e7c-f35a63bf9434@huawei.com> Date: Wed, 21 Sep 2022 18:54:01 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.101.149] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600017.china.huawei.com (7.193.23.234) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tested-by: Jie Wang On 2022/9/21 11:55, Peng Zhang wrote: >> This patch seems to solve the performance issues i have. Currently my >> nic's rx performance is unstable in large-capacity scenarios. I >> applied this patch to 5.19 rc4 and tested 8 times rx performance in >> these scenes. Here are test results, "before" row is the result of >> 5.19 rc4. "after" row means 5.19 rc4 with this patch, the unit is Mbits/s >> >> 1 2 3 4 5 6 7 8 >> before 55430 76701 84194 77560 88292 90106 >> 87770 77273 >> after 92770 92767 92792 92764 92742 92696 >> 92781 92756 >> >> Obviously, after using this patch, the performance is stable. > > Thank you for your test. Can you add a "Tested-by" token? > I plan to update the commit message in the next version. > . >