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=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no 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 527D0C11F66 for ; Wed, 14 Jul 2021 06:13:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 39135613A9 for ; Wed, 14 Jul 2021 06:13:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238035AbhGNGQn (ORCPT ); Wed, 14 Jul 2021 02:16:43 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:6813 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237958AbhGNGQm (ORCPT ); Wed, 14 Jul 2021 02:16:42 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4GPn9h5mkvzXsvb; Wed, 14 Jul 2021 14:08:08 +0800 (CST) Received: from dggpemm500005.china.huawei.com (7.185.36.74) 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.2176.2; Wed, 14 Jul 2021 14:13:43 +0800 Received: from [10.69.30.204] (10.69.30.204) by dggpemm500005.china.huawei.com (7.185.36.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Wed, 14 Jul 2021 14:13:42 +0800 Subject: Re: [PATCH rfc v4 4/4] net: hns3: support skb's frag page recycling based on page pool To: Denis Kirjanov CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , References: <1626168272-25622-1-git-send-email-linyunsheng@huawei.com> <1626168272-25622-5-git-send-email-linyunsheng@huawei.com> From: Yunsheng Lin Message-ID: <61d984ae-bfdd-3552-ca87-8e099aae5427@huawei.com> Date: Wed, 14 Jul 2021 14:13:42 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.69.30.204] X-ClientProxiedBy: dggeme705-chm.china.huawei.com (10.1.199.101) To dggpemm500005.china.huawei.com (7.185.36.74) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/7/13 19:42, Denis Kirjanov wrote: > On 7/13/21, Yunsheng Lin wrote: >> This patch adds skb's frag page recycling support based on >> the elevated refcnt support in page pool. >> >> The performance improves above 10~20% with IOMMU disabled. >> The performance improves about 200% when IOMMU is enabled >> and iperf server shares the same cpu with irq/NAPI. > > Could you share workload details? The testcase is simple, using iperf TCP with only one thread. The the iperf server CPU and NAPI softirq CPU is pinned to the same CPU, the performance improves from 14Gbit to 33Gbit when SMMU is in strict mode, so the above state is not accurate, it should be "improves to about 200% when IOMMU is in strict mode" > >>