Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp26514rdb; Wed, 29 Nov 2023 18:35:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IHbbwkcPCPqzp7dk/msBHRmVxixV0x4mmc2gTntZp/kZ/Q7ReTYyjSTSB/LaHBseVvSKyhb X-Received: by 2002:a05:6e02:1aae:b0:35d:3911:a724 with SMTP id l14-20020a056e021aae00b0035d3911a724mr1517855ilv.22.1701311744612; Wed, 29 Nov 2023 18:35:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701311744; cv=none; d=google.com; s=arc-20160816; b=VFUWdRJmA9grfJgMVjaaD+vsiA1LNL+Pv9vpbOxpi5hM4CKlI3Cee/00XWj6ZHi+do 2t6cweUqJftTqpeRoGEHwmdgW5hSZWnuRCZd/Oiz3bxTLaSh2OVxNuAxGqLHuxcUpmhu MZ82xUvMJpf7mhSaWfegXlH3QUAHcAA0hWDu+pzjqSimFEY2hi8CVZvAd5/LRLtkdjxw 996YkcfWvzP9BPcQpSYBtYM+Z3mK+pa7eMM7q7M1pUPEwjK04gtrgQfTlktcVlTW3uz0 vwWryAfEdZQ3w8JiqPAHWH1j7sbRDL8uhl7OX2B9IN0StdJSw/B+X1REuY51oI+SbOzJ uAuQ== 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=05uS5Y0NI4Mbc2SN7DhBJwE1zzKyyVV1+oDkP1RziWg=; fh=U4a9AzdXs61wy91hoAgE7aheEDIXaem27/hD6UcxOO4=; b=c0wThqOxLyopaFjbNuVTxKbizZeuEo0WpubxcJat2QWkpNe/rgOKyp5XoMSJ99ynBZ cSCW6m87GKjIZFY9Zhhk/02GO4lkbttU/3ZRRM7xKfTnd4ERtPMda93oDQL8d4SsUH6R uFTpvUD9Sva0jNA/mx6x5tWKaXBJ70rDhMLK02c25Bhg2u8Gful7UxRs4NnXC51aB2w5 mFh8WhRQF5KPSWE/0uGFi8LLjeTBJpyCrYvkT/XpYQefCqATxlVg5D5SlhHACSW8k4IX 06bubpiAH7D39Odog53ErtHepCXpWfnqlQhZaKKNkH84ESsL/YmbAuFyWcxZWilMwN0X fufQ== 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:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id t11-20020a056a0021cb00b006cddc776c74si174396pfj.324.2023.11.29.18.35.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 18:35:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 73ECB802AF1B; Wed, 29 Nov 2023 18:35:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344119AbjK3Cfc (ORCPT + 99 others); Wed, 29 Nov 2023 21:35:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231644AbjK3Cfb (ORCPT ); Wed, 29 Nov 2023 21:35:31 -0500 Received: from out30-100.freemail.mail.aliyun.com (out30-100.freemail.mail.aliyun.com [115.124.30.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 226ACD7F; Wed, 29 Nov 2023 18:35:36 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=xuanzhuo@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VxPkUUK_1701311734; Received: from localhost(mailfrom:xuanzhuo@linux.alibaba.com fp:SMTPD_---0VxPkUUK_1701311734) by smtp.aliyun-inc.com; Thu, 30 Nov 2023 10:35:34 +0800 Message-ID: <1701311694.1163726-1-xuanzhuo@linux.alibaba.com> Subject: Re: [PATCH net-next 2/5] virtio_net: Add page_pool support to improve performance Date: Thu, 30 Nov 2023 10:34:54 +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> In-Reply-To: <0c2efe49-03db-4616-a4e5-26ff0434e323@linux.dev> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 29 Nov 2023 18:35:43 -0800 (PST) On Wed, 29 Nov 2023 23:29:10 +0800, Zhu Yanjun wrote: > > =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. Thanks. > > Best Regards, > > Zhu Yanjun > > > > > > It is interesting. > > > > Zhu Yanjun > > > >>