Re: [PATCH 3/3] virtio-net: enable virtio indirect cache

2021-10-27 Thread Jason Wang
On Thu, Oct 28, 2021 at 9:59 AM Xuan Zhuo wrote: > > On Wed, 27 Oct 2021 08:55:28 -0700, Jakub Kicinski wrote: > > On Wed, 27 Oct 2021 14:19:13 +0800 Xuan Zhuo wrote: > > > +static bool virtio_desc_cache = true; > > > module_param(csum, bool, 0444); > > > module_param(gso, bool, 0444); > > > m

Re: [PATCH 3/3] virtio-net: enable virtio indirect cache

2021-10-27 Thread Xuan Zhuo
On Wed, 27 Oct 2021 08:55:28 -0700, Jakub Kicinski wrote: > On Wed, 27 Oct 2021 14:19:13 +0800 Xuan Zhuo wrote: > > +static bool virtio_desc_cache = true; > > module_param(csum, bool, 0444); > > module_param(gso, bool, 0444); > > module_param(napi_tx, bool, 0644); > > +module_param(virtio_desc_

[PATCH 3/3] virtio-net: enable virtio indirect cache

2021-10-26 Thread Xuan Zhuo
If the VIRTIO_RING_F_INDIRECT_DESC negotiation succeeds, and the number of sgs used for sending packets is greater than 1. We must constantly call __kmalloc/kfree to allocate/release desc. In the case of extremely fast package delivery, the overhead cannot be ignored: 27.46% [kernel] [k] virt