Re: [ovs-dev] 答复: [PATCH v6] Use TPACKET_V3 to accelerate veth for userspace datapath

2020-03-17 Thread William Tu
On Tue, Mar 17, 2020 at 7:00 PM Yi Yang (杨燚)-云服务集团 wrote: > > By the way, with tpacket_v3, zero copy optimization and is_pmd=true, the > performance is much better, 3.77Gbps, (3.77-1.34)/1.34 = 1.81 , i.e. 181% > improvement, here is the performance data. > Can you send out the tpacket_v3 patch

Re: [ovs-dev] 答复: [PATCH v6] Use TPACKET_V3 to accelerate veth for userspace datapath

2020-03-17 Thread William Tu
On Tue, Mar 17, 2020 at 2:08 AM Yi Yang (杨燚)-云服务集团 wrote: > > Hi, William > > Finally, my highend server is available and so I can do performance > comparison again, tpacket_v3 obviously has big performance improvement, here > is my data. By the way, in order to get stable performance data,

Re: [ovs-dev] 答复: [PATCH v6] Use TPACKET_V3 to accelerate veth for userspace datapath

2020-03-14 Thread William Tu
On Fri, Mar 13, 2020 at 9:45 PM Yi Yang (杨燚)-云服务集团 wrote: > > Io_uring is a feature brought in by Linux kernel 5.1, so it can't be used on > Linux system with kernel version < 5.1. tpacket_v3 is only one way to avoid > system call on almost all the Linux kernel versions, it is unique from this

Re: [ovs-dev] 答复: [PATCH v6] Use TPACKET_V3 to accelerate veth for userspace datapath

2020-03-13 Thread Ben Pfaff
On Fri, Mar 13, 2020 at 05:47:54PM +0100, Ilya Maximets wrote: > On 3/13/20 5:22 PM, William Tu wrote: > > On Fri, Mar 13, 2020 at 8:57 AM Ben Pfaff wrote: > >> > >> On Fri, Mar 13, 2020 at 01:04:07AM +, Yi Yang (杨燚)-云服务集团 wrote: > >>> Per my understanding, Ben meant a build system (which

Re: [ovs-dev] 答复: [PATCH v6] Use TPACKET_V3 to accelerate veth for userspace datapath

2020-03-13 Thread William Tu
On Fri, Mar 13, 2020 at 9:48 AM Ilya Maximets wrote: > > On 3/13/20 5:22 PM, William Tu wrote: > > On Fri, Mar 13, 2020 at 8:57 AM Ben Pfaff wrote: > >> > >> On Fri, Mar 13, 2020 at 01:04:07AM +, Yi Yang (杨燚)-云服务集团 wrote: > >>> Per my understanding, Ben meant a build system (which isn't

Re: [ovs-dev] 答复: [PATCH v6] Use TPACKET_V3 to accelerate veth for userspace datapath

2020-03-13 Thread Ilya Maximets
On 3/13/20 5:22 PM, William Tu wrote: > On Fri, Mar 13, 2020 at 8:57 AM Ben Pfaff wrote: >> >> On Fri, Mar 13, 2020 at 01:04:07AM +, Yi Yang (杨燚)-云服务集团 wrote: >>> Per my understanding, Ben meant a build system (which isn't Linux >>> probably, it doesn't have include/linux/if_packet.h) should

Re: [ovs-dev] 答复: [PATCH v6] Use TPACKET_V3 to accelerate veth for userspace datapath

2020-03-13 Thread William Tu
On Fri, Mar 13, 2020 at 8:57 AM Ben Pfaff wrote: > > On Fri, Mar 13, 2020 at 01:04:07AM +, Yi Yang (杨燚)-云服务集团 wrote: > > Per my understanding, Ben meant a build system (which isn't Linux > > probably, it doesn't have include/linux/if_packet.h) should be able to > > build tpacket_v3 code in

Re: [ovs-dev] 答复: [PATCH v6] Use TPACKET_V3 to accelerate veth for userspace datapath

2020-03-13 Thread Ben Pfaff
On Fri, Mar 13, 2020 at 01:04:07AM +, Yi Yang (杨燚)-云服务集团 wrote: > Per my understanding, Ben meant a build system (which isn't Linux > probably, it doesn't have include/linux/if_packet.h) should be able to > build tpacket_v3 code in order that built-out binary can work on Linux > system with

[ovs-dev] 答复: [PATCH v6] Use TPACKET_V3 to accelerate veth for userspace datapath

2020-03-12 Thread 杨燚
Hi, Ben, can you help double confirm if include/linux/if_packet.h in ovs is necessary? William, let me paster Ben's comments here. Original comments link is https://mail.openvswitch.org/pipermail/ovs-dev/2020-January/367085.html. In addition, based on the fact tpacket_v3 isn't so good

[ovs-dev] 答复: [PATCH v6] Use TPACKET_V3 to accelerate veth for userspace datapath

2020-03-11 Thread 杨燚
Thanks William, replies inline. -邮件原件- 发件人: William Tu [mailto:u9012...@gmail.com] 发送时间: 2020年3月12日 1:51 收件人: Yi Yang (杨燚)-云服务集团 抄送: yang_y...@163.com; ovs-dev@openvswitch.org 主题: Re: [ovs-dev] [PATCH v6] Use TPACKET_V3 to accelerate veth for userspace datapath On Tue, Mar 10, 2020 at