<div><span style="line-height: 1.5;">I'am sorry for made typo.</span></div><div><div><pre style="line-height: normal;">If we create kthreads for datapath to poll the NIC, is there still a huge difference of performance between datapath and ovs+dpdk?</pre><pre style="line-height: normal;">---------------------------------------------------------------------------------------------------------</pre></div><div><pre style="line-height: normal;">Hi Justin,

Thanks for the response. </pre><pre style="line-height: normal;">Tests for bridging (only L2 forwarding) in the article,packets processed by datapath can be sent to the NIC directly and dose not need to enter networking stack. If we create kthreads for datapath to poll the NIC, is there still a huge difference between datapath and ovs+dpdk?</pre></div><div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b>&nbsp;"Justin Pettit";&lt;jpettit@ovn.org&gt;;</div><div><b>发送时间:</b>&nbsp;2016年12月9日(星期五) 下午4:21</div><div><b>收件人:</b>&nbsp;"Benq Wu"&lt;59466980@qq.com&gt;; <wbr></div><div><b>抄送:</b>&nbsp;"ovs-discuss"&lt;ovs-discuss@openvswitch.org&gt;; <wbr></div><div><b>主题:</b>&nbsp;Re: [ovs-discuss] some questions about ovs datapath performace</div></div><div><br></div><br>&gt; On Dec 8, 2016, at 10:00 PM, Benq Wu &lt;59466980@qq.com&gt; wrote:<br>&gt; <br>&gt; hello~<br>&gt; <br>&gt; &nbsp; openvswitch.org/support/ovscon2014/18/1600-ovs_perf.pptx<br>&gt; &nbsp; &lt;OpenVswitch Performance measurements &amp; analysis&gt; written by Madhu Challa, shows some tests that datapath forwarding performance is lower than ovs+dpdk. <br>&gt;                         STANDARD-OVS        DPDK-OVS        LINUX-BRIDGE<br>&gt; Gbits / sec                1.159                        9.9                        1.04<br>&gt; Mpps                        1.72                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; 14.85                1.55<br>&gt; <br>&gt; 1) What is the main reason for the lower performance of datapath compared with ovs+dpdk? <br><br>The kernel provides a number of services as the packet traverses the kernel--whether they're needed or not.&nbsp; With DPDK, the packet is handed directly to userspace from the NIC, and any service that's needed on the packet needs to be written in userapce for DPDK.&nbsp; Both approaches are working on improvements: the DPDK folks are adding additional services that DPDK applications can use, and the kernel folks are reducing the overhead needed to process packets.&nbsp; Each approach has pluses and minuses depending on what you're trying to accomplish.<br><br>&gt; 2) If we create some kthreads for datapath to poll the NIC,and running datapath in the kthreads, how about the performance compared with ovs+dpdk? That should not be lower than ovs+dpdk in theory, I guess.<br><br>There's a fair amount of overhead in processing the packet in the kernel as it traverses the networking stack that simply doesn't happen in DPDK due to bypassing the kernel.<br><br>--Justin<br><br></div></div>