[ovs-discuss] How to set a hard max flow limit in OVS

Ben Pfaff blp at ovn.org
Tue Sep 24 17:32:57 UTC 2019


The name has to have a hyphen instead of an underscore in this case:
sudo ovs-vsctl --no-wait set Open_vSwitch . other_config:flow-limit=1500

(Yes, this is terrible.)

On Tue, Sep 24, 2019 at 12:49:00PM -0400, Adel Belkhiri wrote:
> Thank you Ben for your reply.
> 
> Actually, I tried that (many times) but it didn't work. I tried :
> sudo ovs-vsctl --no-wait set Open_vSwitch . other_config:flow_limit=1500
> and :
> sudo ovs-appctl upcall/set-flow-limit 1500
> 
> but neither one has an impact on the number of flows cached by the kernel
> datapath. This number is checked using the commands :
> sudo ovs-appctl upcall/show
> and :
> sudo ovs-dpctl dump-flows|wc -l
> 
> My Openvswitch version is 2.11.90.
> 
> Any other suggestions in this regards ?
> 
> Thank you.
> 
> 
> Le ven. 20 sept. 2019 à 20:44, Ben Pfaff <blp at ovn.org> a écrit :
> 
> > On Fri, Sep 20, 2019 at 12:18:33PM -0400, Adel Belkhiri wrote:
> > > Hello everybody,
> > >
> > > Does anyone know how to set a hard limit for the number of flows that can
> > > be installed by ovs-vswitchd in the datapath ?
> > >
> > > I tried this command "ovs-appctl upcall/set-flow-limit   number" (where
> > > number is between 1000 and 200000) but it doesn't have any impact. This
> > > command indicates that the number is set successfully but when I use the
> > > command "sudo ovs-appctl upcall/show" I can see that the limit increases
> > > beyond the one that is set.
> > >
> > > Any idea how to set this limit ?
> >
> > Set other-config:flow-limit in the Open_vSwitch table using the
> > database, as documented in ovs-vswitchd.conf.db(5).
> >


More information about the discuss mailing list