Re: [PATCH net-next 0/9] TX used ring batched updating for vhost

2018-07-21 Thread David Miller
From: Jason Wang Date: Fri, 20 Jul 2018 08:15:12 +0800 > This series implement batch updating of used ring for TX. This help to > reduce the cache contention on used ring. The idea is first split > datacopy path from zerocopy, and do only batching for datacopy. This > is because zercopy had

[PATCH net-next v6 4/4] net: vhost: add rx busy polling in tx path

2018-07-21 Thread xiangxia . m . yue
From: Tonghao Zhang This patch improves the guest receive performance. On the handle_tx side, we poll the sock receive queue at the same time. handle_rx do that in the same way. We set the poll-us=100us and use the netperf to test throughput and mean latency. When running the tests, the

[PATCH net-next v6 3/4] net: vhost: factor out busy polling logic to vhost_net_busy_poll()

2018-07-21 Thread xiangxia . m . yue
From: Tonghao Zhang Factor out generic busy polling logic and will be used for in tx path in the next patch. And with the patch, qemu can set differently the busyloop_timeout for rx queue. Signed-off-by: Tonghao Zhang --- drivers/vhost/net.c | 114

[PATCH net-next v6 2/4] net: vhost: replace magic number of lock annotation

2018-07-21 Thread xiangxia . m . yue
From: Tonghao Zhang Use the VHOST_NET_VQ_XXX as a subclass for mutex_lock_nested. Signed-off-by: Tonghao Zhang Acked-by: Jason Wang --- drivers/vhost/net.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index

[PATCH net-next v6 1/4] net: vhost: lock the vqs one by one

2018-07-21 Thread xiangxia . m . yue
From: Tonghao Zhang This patch changes the way that lock all vqs at the same, to lock them one by one. It will be used for next patch to avoid the deadlock. Signed-off-by: Tonghao Zhang Acked-by: Jason Wang Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 24 +++- 1

[PATCH net-next v6 0/4] net: vhost: improve performance when enable busyloop

2018-07-21 Thread xiangxia . m . yue
From: Tonghao Zhang This patches improve the guest receive performance. On the handle_tx side, we poll the sock receive queue at the same time. handle_rx do that in the same way. For more performance report, see patch 4. v5->v6: rebase the codes. Tonghao Zhang (4): net: vhost: lock the vqs