[dpdk-dev] [PATCH v4] kni: fix possible rx_q mbuf leaks and speed up alloc_q release
Ferruh Yigit
ferruh.yigit at intel.com
Fri May 4 14:46:05 CEST 2018
On 4/19/2018 4:12 AM, Yangchao Zhou wrote:
> rx_q fifo can only be released by kernel thread. There may be
> mbuf leaks in rx_q because kernel threads are randomly stopped.
>
> When the kni is released and netdev is unregisterd, convert the
> physical address mbufs in rx_q to the virtual address in free_q.
> By the way, alloc_q can be processed together to speed up the
> release rate in userspace.
>
> In my test, it is improved from 300-500ms with a mempool that has
> 131072 mbufs to 10ms(regardless of the specifications).
>
> Signed-off-by: Yangchao Zhou <zhouyates at gmail.com>
> Suggested-by: Ferruh Yigit <ferruh.yigit at intel.com>
> ---
> v4:
> * Add improve performance description.
Acked-by: Ferruh Yigit <ferruh.yigit at intel.com>
More information about the dev
mailing list