Re: [PATCH v4 1/3] virtio: cache indirect desc for split

2021-11-09 Thread Xuan Zhuo
On Tue, 9 Nov 2021 08:09:42 -0500, Michael S. Tsirkin wrote: > On Mon, Nov 08, 2021 at 07:49:49PM +0800, Xuan Zhuo wrote: > > In the case of using indirect, indirect desc must be allocated and > > released each time, which increases a lot of cpu overhead. > > > > Here, a cache is added for indirec

Re: [PATCH v4 1/3] virtio: cache indirect desc for split

2021-11-09 Thread Michael S. Tsirkin
On Mon, Nov 08, 2021 at 07:49:49PM +0800, Xuan Zhuo wrote: > In the case of using indirect, indirect desc must be allocated and > released each time, which increases a lot of cpu overhead. > > Here, a cache is added for indirect. If the number of indirect desc to be > applied for is less than desc

[PATCH v4 1/3] virtio: cache indirect desc for split

2021-11-08 Thread Xuan Zhuo
In the case of using indirect, indirect desc must be allocated and released each time, which increases a lot of cpu overhead. Here, a cache is added for indirect. If the number of indirect desc to be applied for is less than desc_cache_thr, the desc array with the size of desc_cache_thr is fixed a