There's not enough information to understand the problem. In your "ovs-ofctl dump-flows" command, you have 7309 flows, but you've only shown us six. Also, those six flows are a little confusing, since the last one overlaps with all the other IP-related flows. It doesn't really matter, since they all have the same action, but if you change the actions, the behavior is undefined.
What's the output of "ovs-dpctl show"? It would be interesting to know if lots of flows are missing in the datapath and being sent to userspace. Also, you may want to try 2.3.1, which is the latest version of OVS and is still maintained, unlike 2.1.x. --Justin > On Dec 14, 2014, at 9:02 PM, 李伟 <[email protected]> wrote: > > Hello : > There 10 VMs in openvswitch . these VMs access Internet through NAT > host.therefore There are a lot of internet ipaddr through OVS. > and add flows Following: > ovs-ofctl add-flow br0 "dl_type=0x0800,nw_proto=1 priority=900 > idle_timeout=0,actions=normal" > ovs-ofctl add-flow br0 "dl_type=0x0806 priority=900 > idle_timeout=0,actions=normal" > ovs-ofctl add-flow br0 "dl_type=0x8035 priority=900 > idle_timeout=0,actions=normal" > ovs-ofctl add-flow br0 "dl_type=0x0800,nw_proto=17 priority=900 > idle_timeout=0,actions=normal" > ovs-ofctl add-flow br0 "dl_type=0x0800,nw_proto=6 priority=900 > idle_timeout=0,actions=normal" > ovs-ofctl add-flow br0 "dl_type=0x0800 priority=900 > idle_timeout=0,actions=normal" > > but OVS high load still. How to reduce the OVS load ? thanks. > > > > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > PID USER PR NI VIRT RES SHR S %CPU MEM TIME+ COMMAND > > > 3145 root 20 0 1083m 29m 1608 S 565.7 0.0 21813:37 > /opt/apps/openvswitch/sbin/ovs-vswitchd --pidfile --detach > > [@sh5_44.1 ~]# ovs-dpctl dump-flows |wc -l > 53651 > > [@sh5_44.1 ~]# ovs-ofctl dump-flows br0|wc -l > 7309 > > [@sh5_44.1 ~]# ovs-vsctl get bridge br0 other-config:flow-eviction-threshold > "4000" > > > [@sh5_44.1 ~]# ovs-vsctl --version > ovs-vsctl (Open vSwitch) 2.1.3 > Compiled Nov 3 2014 16:47:48 > > [@sh5_44.1 ~]# uptime > 12:15:04 up 2 days, 19:39, 1 user, load average: 702.12, 711.86, 711.05 > > > > > > > _______________________________________________ > discuss mailing list > [email protected] > http://openvswitch.org/mailman/listinfo/discuss _______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
