Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp730510rdb; Thu, 30 Nov 2023 17:39:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IHYPFjhRwE8sZbu2subIqjDpuswSh42qBOt3POEAr77H2Zj/J3BDl1rkHvr/GzLE48YWphc X-Received: by 2002:a05:6830:1c6:b0:6bd:1059:8212 with SMTP id r6-20020a05683001c600b006bd10598212mr1504218ota.26.1701394781487; Thu, 30 Nov 2023 17:39:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701394781; cv=none; d=google.com; s=arc-20160816; b=nDhgyoTpkIJ0T+ySrBXHkDa6BUtZ6dZstxi7QsF82+jMMl+8qlteGPFP9cvAr7f7kB T2BS6mPOPOEY2dEIXZfat6vMvCIIeZ+b2Mxk9JFZZck+T1I24ZSKt4ARdBmwAv35AXZO b156djoBoJiGiLCaT9sMYlo3CQiSy8ypIzunNvk3Bidv2TizCVRpk6cyOEbVQnRpuO+i CHsMXgdgBwVU5qNzi+qT2S7fTfatpvr0tUIfMU4EAJkkJ9Ex8w7X2dz/wH2KqQAVnd0H Gdu0OkOFZsFnYHUF983VTjOSzw5mJfQW2BKjnBqVAx9ToSAaoBvLv6wQp2aAzMNSioHp 5EgA== 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:references :cc:to:from:date:subject:message-id; bh=raPC5vO8qVIM9InfQQimqXzEnzk0vEjslV2kDuNANjQ=; fh=U4a9AzdXs61wy91hoAgE7aheEDIXaem27/hD6UcxOO4=; b=Uxe37H0hqgYCrQQH7TPe6l4ZmDN/rfH1RBFH+QPRBiFTAwXNi47VphDX8Ex9VlypBx M3encei/rMGJonMl4VwAG1MqHTdJ7nxun6/6gCw3h2KMUQowkdvsq84unNStiXAMqsg6 6rDSuAxebMhCXmqF/Adl8/jgRfJIKcofLxmi6QVfqsIRVrWarQIHz1r7GhWWSjga/hIL 7k/ctwkpysiecoUkjUNuMHg+SlxE3iByzpTnn8KSF0mKhW7jjYd4q4XhPSz7CMggYmkM 33D2kmjivat+rRS78uBv3wr97HHw/BI4ruwDcfkkIUsrVVhgR05jAYEHaDEKKOfEW6C1 XdOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id g10-20020a656cca000000b005855f67e491si2642051pgw.696.2023.11.30.17.39.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 17:39:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 19B9C801F12B; Thu, 30 Nov 2023 17:39:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229982AbjLABjX (ORCPT + 99 others); Thu, 30 Nov 2023 20:39:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbjLABjW (ORCPT ); Thu, 30 Nov 2023 20:39:22 -0500 Received: from out30-113.freemail.mail.aliyun.com (out30-113.freemail.mail.aliyun.com [115.124.30.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3691410E2; Thu, 30 Nov 2023 17:39:27 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R741e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=xuanzhuo@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VxSqLQK_1701394764; Received: from localhost(mailfrom:xuanzhuo@linux.alibaba.com fp:SMTPD_---0VxSqLQK_1701394764) by smtp.aliyun-inc.com; Fri, 01 Dec 2023 09:39:24 +0800 Message-ID: <1701394709.904543-1-xuanzhuo@linux.alibaba.com> Subject: Re: [PATCH net-next 2/5] virtio_net: Add page_pool support to improve performance Date: Fri, 1 Dec 2023 09:38:29 +0800 From: Xuan Zhuo To: Zhu Yanjun Cc: Liang Chen , jasowang@redhat.com, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kuba@kernel.org, edumazet@google.com, davem@davemloft.net, pabeni@redhat.com, alexander.duyck@gmail.com, "Michael S. Tsirkin" References: <20230526054621.18371-1-liangchen.linux@gmail.com> <20230526054621.18371-2-liangchen.linux@gmail.com> <20231129095825-mutt-send-email-mst@kernel.org> <0c2efe49-03db-4616-a4e5-26ff0434e323@linux.dev> <1701311694.1163726-1-xuanzhuo@linux.alibaba.com> In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 30 Nov 2023 17:39:39 -0800 (PST) On Thu, 30 Nov 2023 13:30:40 +0800, Zhu Yanjun wrote: > > =E5=9C=A8 2023/11/30 10:34, Xuan Zhuo =E5=86=99=E9=81=93: > > On Wed, 29 Nov 2023 23:29:10 +0800, Zhu Yanjun w= rote: > >> =E5=9C=A8 2023/11/29 23:22, Zhu Yanjun =E5=86=99=E9=81=93: > >>> =E5=9C=A8 2023/11/29 22:59, Michael S. Tsirkin =E5=86=99=E9=81=93: > >>>> On Wed, Nov 29, 2023 at 10:50:57PM +0800, Zhu Yanjun wrote: > >>>>> =E5=9C=A8 2023/5/26 13:46, Liang Chen =E5=86=99=E9=81=93: > >>>> what made you respond to a patch from May, now? > >>> I want to apply page_pool to our virtio_net. This virtio_net works on > >>> our device. > >>> > >>> I want to verify whether page_pool on virtio_net with our device can > >>> improve the performance or not. > >>> > >>> And I found that ethtool is wrong. > >>> > >>> I use virtio_net on our device. I found that page member variable in > >>> rq is not used in recv path. > >>> > >>> When virtio_net is modprobe, I checked page member variable in rq with > >>> kprobe or crash tool.=C2=A0 page member variable in rq is always NULL. > >>> > >>> But sg in recv path is used. > >>> > >>> So how to use page member variable in rq? If page member variable in > >>> rq is always NULL, can we remove it? > >>> > >>> BTW, I use ping and iperf tool to make tests with virtio_net. In the > >>> tests, page member variable in rq is always NULL. > >> > >> And I replaced page member variable in rq with page_pool, but the > >> statistics of page_pool are always 0. > >> > >> It is interesting that page_pool member variable in rq is not used in > >> ping and iperf tests. > >> > >> I am not sure what tests can make page member variable not NULL. ^_^ > > Do you mean rq->pages? > > > > That is for big mode. > > Hi, Xuan > > Got it. What is big mode? Do you mean big packet size? I run iperf with > the packet size 2^23. > > The rq->pages is still NULL. > > It is interesting. You may need to check the code of virtnet_probe(). Thanks. > > Zhu Yanjun > > > > > > Thanks. > > > > > >> Best Regards, > >> > >> Zhu Yanjun > >> > >> > >>> It is interesting. > >>> > >>> Zhu Yanjun > >>>