[ovs-discuss] ovs userspace mode datapath performance on loop actions

Ben Pfaff blp at nicira.com
Mon Feb 17 20:19:04 UTC 2014


On Mon, Feb 17, 2014 at 07:27:46PM +0100, yimeng zhao wrote:
> I am new to ovs, and I am trying to use userspace datapath. I would like to
> measure time cost of different actions on flows. So for easy start, I
> install one rule to let datapath to loop 1000 times of mod_dl_src action,
> command like:
>  'ovs-ofctl add-flow s1
> priority=1,in_port=1,actions=mod_dl_src=00:00:00:00:00:01,mod_dl_src=00:00:00:00:00:02,...(loop
> here).....,output:2'
> 
> I hope there is a performance degradation that can be used to calculate the
> time cost. But after tests in Mininet, I find no performance difference
> compared with no loop. That is WHY?

Open vSwitch optimizes duplicate actions into single ones, to avoid
wasting time.



More information about the discuss mailing list