Re: [PATCH net-next 2/5] virtio_net: Add page_pool support to improve performance

From: Zhu Yanjun
Date: Wed Nov 29 2023 - 10:29:22 EST



在 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. ^_^

Best Regards,

Zhu Yanjun



It is interesting.

Zhu Yanjun