Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp288123pxv; Thu, 8 Jul 2021 21:21:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYg7e2YWAnmo7RVFJGYqO/KN+Lh4tehy6xQ2pcGmZH7mzOAos9GG5GknB3Z29UECkawH3A X-Received: by 2002:a92:c083:: with SMTP id h3mr7605809ile.73.1625804509682; Thu, 08 Jul 2021 21:21:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625804509; cv=none; d=google.com; s=arc-20160816; b=qjth4ObQN6rrZjbfWsQWhtppzdZe13zikB2FoYc77AeWunYNZs0o0TTU64kbXKASvT PBoS8ZuWeeeY2jCKOE0XkX4gL5vRFKjAOAyvW3AX5QlkAgxu2zjTwR6TKo3UbHJf2vqh IHhD7wpF4awAAuDAc/V2NUjh6WkFEzu3v/X+nCgFV7km32/dvi99YnrYLEyLUh/xVaok zM3Qsl7aZ8nekvOkmYTcQQZ3DhpJynh96jAZRc6CEXK7TgasscGZYyf2DoWp76kAQoRb 23sOCFFX5mrL+z1HAYVrQ9Nn86noJzMSgJpfctu3wt7+d2lsQllg4XgS4N4wbWKw4xx2 5Kog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:dkim-filter; bh=7YN2MB1o16HhRHqHTGbU97I3iPMBzy7xhI6gkzcCu0w=; b=S8fsdfiT/zqfF42RCs8k1TH3spUWkciTq46FGLvurBCiAjmbOPjp0bZGlvzYNgKuIy s3v0ZFRJnR16PS7IovAC/SZhjrKfybeF+WQbRxb23SNPqzkTwPhCwSlAeesISdp7gW2p VMPhyV2v0m7bSPvuC9OpNav86vbEa3KhXyHUcTakiTO6AJwixjOwQDCg2ula50DPQtM+ qh+wz5ztUMatVQiRa4MbRoK+cqaEhl1h5uTKhgbFp9X0YVoWc5WY0NsP4B9NvlZ7WByI CRhryi9kpjoOmJod+v3LRD7nFNcATKrB/q29uR/gh2Hb2KV+6dtvcdIkf74O5pkm5YTx Sqpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=qjAIcxU3; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d21si3862642jak.25.2021.07.08.21.21.24; Thu, 08 Jul 2021 21:21:49 -0700 (PDT) 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; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=qjAIcxU3; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229597AbhGIETN (ORCPT + 99 others); Fri, 9 Jul 2021 00:19:13 -0400 Received: from linux.microsoft.com ([13.77.154.182]:33314 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbhGIETM (ORCPT ); Fri, 9 Jul 2021 00:19:12 -0400 Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by linux.microsoft.com (Postfix) with ESMTPSA id 334F320B7178; Thu, 8 Jul 2021 21:16:29 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 334F320B7178 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1625804189; bh=7YN2MB1o16HhRHqHTGbU97I3iPMBzy7xhI6gkzcCu0w=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=qjAIcxU35cVdxuaBVKYVcDcj1mBtSyY9zOlFCNabzWRdVFAza31D36kjyq2xN0asx BLbk7kKINgI/ODL8EoYCUSiwhRcqx2eF/gZ84xHnTmbUt02zvzR+uhR3vt70KUWDo3 1fyMoeXWCtnY16YtCDLpgiQk4TrtcsQSxIJocTrQ= Received: by mail-pg1-f175.google.com with SMTP id y4so6188455pgl.10; Thu, 08 Jul 2021 21:16:29 -0700 (PDT) X-Gm-Message-State: AOAM530bq5emnfh5NK0tUDHTJsGKy6X6rSEWLxme/9fDVaAS8EaPelVK xARTDDnS2eeXfFBnig+jEFtbK0r0bcK4coBjY8U= X-Received: by 2002:a63:fe41:: with SMTP id x1mr4010513pgj.272.1625804178026; Thu, 08 Jul 2021 21:16:18 -0700 (PDT) MIME-Version: 1.0 References: <1625044676-12441-1-git-send-email-linyunsheng@huawei.com> <20210702153947.7b44acdf@linux.microsoft.com> <20210706155131.GS22278@shell.armlinux.org.uk> In-Reply-To: From: Matteo Croce Date: Fri, 9 Jul 2021 06:15:42 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH net-next RFC 0/2] add elevated refcnt support for page pool To: Marcin Wojtas Cc: "Russell King (Oracle)" , Yunsheng Lin , Sven Auhagen , David Miller , Jakub Kicinski , linuxarm@openeuler.org, yisen.zhuang@huawei.com, salil.mehta@huawei.com, Thomas Petazzoni , Jesper Dangaard Brouer , Ilias Apalodimas , Alexei Starovoitov , Daniel Borkmann , John Fastabend , Andrew Morton , Peter Zijlstra , Will Deacon , Matthew Wilcox , Vlastimil Babka , Fenghua Yu , Roman Gushchin , Peter Xu , feng.tang@intel.com, Jason Gunthorpe , Matteo Croce , Hugh Dickins , Jonathan Lemon , Alexander Lobakin , Willem de Bruijn , wenxu , Cong Wang , Kevin Hao , Aleksandr Nogikh , Marco Elver , netdev@vger.kernel.org, Linux Kernel Mailing List , bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 7, 2021 at 6:50 PM Marcin Wojtas wrote: > > Hi, > > > =C5=9Br., 7 lip 2021 o 01:20 Matteo Croce na= pisa=C5=82(a): > > > > On Tue, Jul 6, 2021 at 5:51 PM Russell King (Oracle) > > wrote: > > > > > > On Fri, Jul 02, 2021 at 03:39:47PM +0200, Matteo Croce wrote: > > > > On Wed, 30 Jun 2021 17:17:54 +0800 > > > > Yunsheng Lin wrote: > > > > > > > > > This patchset adds elevated refcnt support for page pool > > > > > and enable skb's page frag recycling based on page pool > > > > > in hns3 drvier. > > > > > > > > > > Yunsheng Lin (2): > > > > > page_pool: add page recycling support based on elevated refcnt > > > > > net: hns3: support skb's frag page recycling based on page pool > > > > > > > > > > drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 79 +++++++= - > > > > > drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 3 + > > > > > drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 1 + > > > > > drivers/net/ethernet/marvell/mvneta.c | 6 +- > > > > > drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 +- > > > > > include/linux/mm_types.h | 2 +- > > > > > include/linux/skbuff.h | 4 +- > > > > > include/net/page_pool.h | 30 ++- > > > > > net/core/page_pool.c | 215 > > > > > +++++++++++++++++---- 9 files changed, 285 insertions(+), 57 > > > > > deletions(-) > > > > > > > > > > > > > Interesting! > > > > Unfortunately I'll not have access to my macchiatobin anytime soon,= can > > > > someone test the impact, if any, on mvpp2? > > > > > > I'll try to test. Please let me know what kind of testing you're > > > looking for (I haven't been following these patches, sorry.) > > > > > > > A drop test or L2 routing will be enough. > > BTW I should have the macchiatobin back on friday. > > I have a 10G packet generator connected to 10G ports of CN913x-DB - I > will stress mvpp2 in l2 forwarding early next week (I'm mostly AFK > this until Monday). > I managed to to a drop test on mvpp2. Maybe there is a slowdown but it's below the measurement uncertainty. Perf top before: Overhead Shared O Symbol 8.48% [kernel] [k] page_pool_put_page 2.57% [kernel] [k] page_pool_refill_alloc_cache 1.58% [kernel] [k] page_pool_alloc_pages 0.75% [kernel] [k] page_pool_return_skb_page after: Overhead Shared O Symbol 8.34% [kernel] [k] page_pool_put_page 4.52% [kernel] [k] page_pool_return_skb_page 4.42% [kernel] [k] page_pool_sub_bias 3.16% [kernel] [k] page_pool_alloc_pages 2.43% [kernel] [k] page_pool_refill_alloc_cache Regards, --=20 per aspera ad upstream