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

2021-11-02 Thread Xuan Zhuo
On Sun, 31 Oct 2021 10:46:12 -0400, Michael S. Tsirkin wrote: > On Thu, Oct 28, 2021 at 06:49:17PM +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 indire

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

2021-11-02 Thread Xuan Zhuo
On Tue, 02 Nov 2021 14:35:39 +0800, Xuan Zhuo wrote: > On Sun, 31 Oct 2021 10:46:12 -0400, Michael S. Tsirkin > wrote: > > On Thu, Oct 28, 2021 at 06:49:17PM +0800, Xuan Zhuo wrote: > > > In the case of using indirect, indirect desc must be allocated and > > > released each time, which increase

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

2021-11-02 Thread Xuan Zhuo
On Sun, 31 Oct 2021 10:46:12 -0400, Michael S. Tsirkin wrote: > On Thu, Oct 28, 2021 at 06:49:17PM +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 indire

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

2021-11-01 Thread Michael S. Tsirkin
On Thu, Oct 28, 2021 at 06:49:17PM +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 VIRT

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

2021-10-31 Thread Michael S. Tsirkin
On Thu, Oct 28, 2021 at 06:49:17PM +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 VIRT

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

2021-10-28 Thread Xuan Zhuo
On Fri, 29 Oct 2021 10:20:04 +0800, Jason Wang wrote: > On Thu, Oct 28, 2021 at 6:49 PM 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 nu

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

2021-10-28 Thread Jason Wang
On Thu, Oct 28, 2021 at 6:49 PM 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 VIRT_QUEUE_C

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

2021-10-28 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 VIRT_QUEUE_CACHE_DESC_NUM, the desc array with the size of VIRT_QUEUE_CAC