William, thank you for your test, it is one of solutions to OVS DPDK issues
in OVS Conference :-), this is a kind of very cheap improving way, the
performance isn't that bad, it is basically acceptable for common use cases
which don't expect high network performance.

-----邮件原件-----
发件人: dev [mailto:ovs-dev-boun...@openvswitch.org] 代表 William Tu
发送时间: 2019年12月7日 12:19
收件人: yang_y...@163.com
抄送: ovs-dev <ovs-dev@openvswitch.org>
主题: [openvswitch.org代发]Re: [ovs-dev] [PATCH] Use batch process recv for
tap and raw socket in netdev datapath

On Thu, Dec 5, 2019 at 11:09 PM <yang_y...@163.com> wrote:
>
> From: Yi Yang <yangy...@inspur.com>
>
> Current netdev_linux_rxq_recv_tap and netdev_linux_rxq_recv_sock just 
> receive single packet, that is very inefficient, per my test case 
> which adds two tap ports or veth ports into OVS bridge
> (datapath_type=netdev) and use iperf3 to do performance test between 
> two ports (they are set into different network name space).
>
> The result is as below:
>
>   tap:  295 Mbits/sec
>   veth: 207 Mbits/sec
>
> After I change netdev_linux_rxq_recv_tap and 
> netdev_linux_rxq_recv_sock to use batch process, the performance is 
> boosted by about 7 times, here is the result:
>
>   tap:  1.96 Gbits/sec
>   veth: 1.47 Gbits/sec
>
> Undoubtedly this is a huge improvement although it can't match OVS 
> kernel datapath yet.
>
> FYI: here is thr result for OVS kernel datapath:
>
>   tap:  37.2 Gbits/sec
>   veth: 36.3 Gbits/sec
>
> Note: performance result is highly related with your test machine , 
> you shouldn't expect the same results on your test machine.

Hi Yi Yang,

Thanks for the patch, it's amazing with so much performance improvement.
I haven't reviewed the code but Yifeng and I applied and tested this patch.
Using netdev-afxdp + tap port, we do see performance improves from 300Mbps
to 2Gbps in our testbed!

Will add more feedback next week.
William
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to