Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2503071rdb; Sun, 3 Dec 2023 21:27:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1Qcos0tWwi+ee6sEyU1StJwzitEwsJuXfDkIVwBclFJYv54dy2etIZV0R9hc7TdKriEQj X-Received: by 2002:a05:6a20:6a14:b0:18f:97c:8a1a with SMTP id p20-20020a056a206a1400b0018f097c8a1amr5051458pzk.69.1701667622294; Sun, 03 Dec 2023 21:27:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701667622; cv=none; d=google.com; s=arc-20160816; b=l41ID3IFLEMLlfXf5EMkib/YZ151JHR4SUW2knrLrvBG5ib2Y4MKF/I6Fbbocq/KUQ 1wSfM0wHufwZCiXFpXRMtNtSsfxrwvgbUOkFIjmGL0li3WaXyjW1hVDrc2kM/Jea0QMj IT726DFQbsBYrfNXWLSmp01sCPBXTPaNxbQPDri6HpyF4zSJd1RWeu7zXGvTDZgFVBAW 26ORLi7dbrz43rPQHJTMtQpiLRNPtL+AcRkHgYuR39n3cb3nkMDGxR15Hy9P83xK9TEE urhAX/7ls9OkdB4FvHmWKP0N54EJhSDjsvMFKckAzreDR9XwM5fHTWxwVbOxEM4h0wrW 3AIg== 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:from :references:cc:to:subject:mime-version:date:dkim-signature :message-id; bh=u0n2D/tnKgjpK2IUTwVrFHT+iGyrOIMwpCUFmx4lMTU=; fh=5u+RFP9djoSqFBH9V6Qqt1p94ZAWcvuJXNtEoJjFrto=; b=qbc+6O5670q17TYwf8VFsHDDtOTTMvhQepn2uWTbhWjn+Va6WmcLr89mMwlWsL5KE4 NlIb1DIrX/zY9OXSPdHD6XiCvwBsjzcJcKEa+p498auGU1btT1+DkblXJMo692ellvza GM6ZRPlBOdHnPSmf56yv5hhtpck5ADwNAxDcwSKSR4JaQmUZVrFQucSOSj8RRNp2ismd WPB4uDPldF3KT1e/CssV5NnEg4RKXfYsPj9LMxlpXyXGTs9SmVyXCNanasTPIm76OrX5 Hn6jkcYxj1HkhyaXFa3q5DlgswBV+8ZRQFr3DMFKvrb/1LPS8346jpuU6WmHcrQJF04f WDLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=bnSB12l7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id x4-20020a17090a970400b002868b9efd49si2295614pjo.36.2023.12.03.21.27.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 21:27:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=bnSB12l7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 239CB805F964; Sun, 3 Dec 2023 21:27:01 -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 S234483AbjLDFYf (ORCPT + 99 others); Mon, 4 Dec 2023 00:24:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjLDFYd (ORCPT ); Mon, 4 Dec 2023 00:24:33 -0500 Received: from out-175.mta0.migadu.com (out-175.mta0.migadu.com [IPv6:2001:41d0:1004:224b::af]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34E22E6 for ; Sun, 3 Dec 2023 21:24:39 -0800 (PST) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1701667477; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=u0n2D/tnKgjpK2IUTwVrFHT+iGyrOIMwpCUFmx4lMTU=; b=bnSB12l7yn8qLQ9sVFvz8Gy4jPgIDLSnGlmeiELwTQMNSv1zPVlmP3/sYWhcg+DmjNbscD O3RdF1TahhVPmYdEzaPBJydGbmC7cnj0+U7NKN1bRJDsqS+Dw+7/Gx1FUl6ws6oks+SKNZ H3sKARcUQk0Zw/ORM1cy6Fie+iJhZkA= Date: Mon, 4 Dec 2023 13:24:28 +0800 MIME-Version: 1.0 Subject: Re: [PATCH net-next 2/5] virtio_net: Add page_pool support to improve performance To: Xuan Zhuo 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> <1701394709.904543-1-xuanzhuo@linux.alibaba.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Zhu Yanjun In-Reply-To: <1701394709.904543-1-xuanzhuo@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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]); Sun, 03 Dec 2023 21:27:01 -0800 (PST) 在 2023/12/1 9:38, Xuan Zhuo 写道: > On Thu, 30 Nov 2023 13:30:40 +0800, Zhu Yanjun wrote: >> >> 在 2023/11/30 10:34, Xuan Zhuo 写道: >>> On Wed, 29 Nov 2023 23:29:10 +0800, Zhu Yanjun wrote: >>>> 在 2023/11/29 23:22, Zhu Yanjun 写道: >>>>> 在 2023/11/29 22:59, Michael S. Tsirkin 写道: >>>>>> On Wed, Nov 29, 2023 at 10:50:57PM +0800, Zhu Yanjun wrote: >>>>>>> 在 2023/5/26 13:46, Liang Chen 写道: >>>>>> 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.  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 a lot. From virtnet_probe, big mode and mergeable mode can be found. Zhu Yanjun > > Thanks. > > >> >> Zhu Yanjun >> >> >>> >>> Thanks. >>> >>> >>>> Best Regards, >>>> >>>> Zhu Yanjun >>>> >>>> >>>>> It is interesting. >>>>> >>>>> Zhu Yanjun >>>>>