Re: [PATCH net-next] vhost_net: batch used ring update in rx

2018-01-10 Thread David Miller
From: Jason Wang Date: Tue, 9 Jan 2018 18:27:45 +0800 > This patch tries to batched used ring update during RX. This is pretty > fit for the case when guest is much faster (e.g dpdk based > backend). In this case, used ring is almost empty: > > - we may get serious cache line misses/contending

Re: [PATCH net-next] vhost_net: batch used ring update in rx

2018-01-09 Thread Michael S. Tsirkin
On Tue, Jan 09, 2018 at 06:27:45PM +0800, Jason Wang wrote: > This patch tries to batched used ring update during RX. This is pretty > fit for the case when guest is much faster (e.g dpdk based > backend). In this case, used ring is almost empty: > > - we may get serious cache line misses/contendi

[PATCH net-next] vhost_net: batch used ring update in rx

2018-01-09 Thread Jason Wang
This patch tries to batched used ring update during RX. This is pretty fit for the case when guest is much faster (e.g dpdk based backend). In this case, used ring is almost empty: - we may get serious cache line misses/contending on both used ring and used idx. - at most 1 packet could be deque