[ovs-discuss] Performance degrade from ovs 1.7 to 2.0?

Wuchenglin (Alex) alexander.wu at huawei.com
Thu Nov 7 08:41:28 UTC 2013


We've tested the performance of ovs 1.7 and 2.0, but the performance of 2.0
 is much worse than 1.7. Is it true? Or could I configure ovs 2.0 to make it
 faster than 1.7?

HOST-OS(XEN): SUSE11SP2 IP:192.168.1.2
  CPU: 6U 2.4GHZ
  MEM: 6G

A VM-OS: SUSE11SP1 IP:192.168.1.11
B VM-OS: SUSE11SP1 IP:192.168.1.21

Test cmd(TCP):
A:  netperf -H 192.168.1.11 -t TCP_STREAM -l 10000 -- -m 1460
B:  netserver

OVS 1.7:
  TCP: 9.4G
  UDP: 1.8G

OVS 2.0:
  TCP: 6.5G
  UDP: 1.8G

Here're the details of 2.0.
--
linux-loEozP:~ # ifconfig
br-1      Link encap:Ethernet  HWaddr 90:E2:BA:13:0B:EC  
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::9c3b:31ff:fe12:c995/64 Scope:Link
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:484087 errors:0 dropped:0 overruns:0 frame:0
          TX packets:262687 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:442749418 (422.2 Mb)  TX bytes:15296773 (14.5 Mb)

eth0      Link encap:Ethernet  HWaddr 08:19:A6:D0:E8:72  
          inet addr:130.10.3.102  Bcast:130.10.255.255  Mask:255.255.0.0
          inet6 addr: fe80::a19:a6ff:fed0:e872/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2829815 errors:0 dropped:549 overruns:0 frame:0
          TX packets:8869906 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:211188614 (201.4 Mb)  TX bytes:12403511756 (11828.9 Mb)

eth1      Link encap:Ethernet  HWaddr 08:19:A6:D0:E8:73  
          inet addr:129.9.55.200  Bcast:129.9.255.255  Mask:255.255.0.0
          inet6 addr: fe80::a19:a6ff:fed0:e873/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1765200 errors:0 dropped:107 overruns:0 frame:0
          TX packets:118 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:186219306 (177.5 Mb)  TX bytes:6404 (6.2 Kb)

eth3      Link encap:Ethernet  HWaddr 90:E2:BA:21:DA:6D  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

eth4      Link encap:Ethernet  HWaddr 90:E2:BA:13:0B:EC  
          inet6 addr: fe80::92e2:baff:fe13:bec/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1600  Metric:1
          RX packets:62646431 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1364555443 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:16805332358 (16026.8 Mb)  TX bytes:1629557597951 (1554067.2 Mb)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:467 errors:0 dropped:0 overruns:0 frame:0
          TX packets:467 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:46402 (45.3 Kb)  TX bytes:46402 (45.3 Kb)

vif3.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF  
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:36478904 errors:0 dropped:0 overruns:0 frame:0
          TX packets:281391842 errors:0 dropped:379 overruns:0 carrier:0
          collisions:0 txqueuelen:64 
          RX bytes:8484432892 (8091.3 Mb)  TX bytes:1395288008470 (1330650.3 Mb)

vif3.1    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF  
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:89342 errors:0 dropped:3 overruns:0 carrier:0
          collisions:0 txqueuelen:64 
          RX bytes:1632 (1.5 Kb)  TX bytes:10781424 (10.2 Mb)

vif4.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF  
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1082910760 errors:0 dropped:0 overruns:0 frame:0
          TX packets:96454136 errors:0 dropped:22 overruns:0 carrier:0
          collisions:0 txqueuelen:64 
          RX bytes:2987146112839 (2848764.5 Mb)  TX bytes:25436245891 (24257.8 Mb)

vif4.1    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF  
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13832 errors:0 dropped:0 overruns:0 frame:0
          TX packets:75570 errors:0 dropped:3 overruns:0 carrier:0
          collisions:0 txqueuelen:64 
          RX bytes:4535080 (4.3 Mb)  TX bytes:6081272 (5.7 Mb)


linux-loEozP:~ # ovs-dpctl show
system at ovs-system:
        lookups: hit:696602952 missed:19237 lost:0
        flows: 8
        port 4096: vxlan2 (gre: df_default=false, ttl=0)
        port 0: ovs-system (internal)
        port 1: br-1 (internal)
        port 2: eth4
        port 3: vif3.1
        port 4: vif3.0
        port 5: vif4.0
        port 6: vif4.1

linux-loEozP:~ # ovs-vsctl show
87b6f4ab-0fd3-49ca-9583-981a4372fe21
    Bridge "br-1"
        Port "vif4.1"
            tag: 0
            Interface "vif4.1"
                type: system
        Port "eth4"
            Interface "eth4"
                type: system
        Port "vif3.1"
            tag: 0
            Interface "vif3.1"
                type: system
        Port "vif3.0"
            tag: 0
            Interface "vif3.0"
                type: system
        Port "vif4.0"
            tag: 0
            Interface "vif4.0"
                type: system
        Port "br-1"
            tag: 0
            Interface "br-1"
                type: internal

linux-loEozP:~ # ovs-ofctl --protocol=OpenFlow13 dump-flows br-1
OFPST_FLOW reply (OF1.3) (xid=0x2):
 cookie=0x0, duration=2634.541s, table=0, n_packets=93506652, n_bytes=850200637544, actions=NORMAL

linux-loEozP:~ # ovs-appctl dpif/dump-megaflows br-1
skb_priority=0x6,ip,in_port=LOCAL,vlan_tci=0x0000/0x1fff,dl_src=90:e2:ba:13:0b:ec,dl_dst=00:16:3e:1d:25:63,nw_frag=no, n_subfacets:2, used:1.066s, Datapath actions: 4
skb_priority=0,ip,in_port=4,vlan_tci=0x0000/0x1fff,dl_src=00:16:3e:1d:25:64,dl_dst=00:16:3e:1d:25:63,nw_frag=no, n_subfacets:1, used:0.250s, Datapath actions: 4
skb_priority=0,ip,in_port=4,vlan_tci=0x0000/0x1fff,dl_src=00:16:3e:1d:25:64,dl_dst=90:e2:ba:13:0b:ec,nw_frag=no, n_subfacets:1, used:1.754s, Datapath actions: 1
skb_priority=0x6,ip,in_port=LOCAL,vlan_tci=0x0000/0x1fff,dl_src=90:e2:ba:13:0b:ec,dl_dst=00:16:3e:1d:25:64,nw_frag=no, n_subfacets:1, used:1.754s, Datapath actions: 5
skb_priority=0,ip,in_port=3,vlan_tci=0x0000/0x1fff,dl_src=00:16:3e:1d:25:63,dl_dst=90:e2:ba:13:0b:ec,nw_frag=no, n_subfacets:2, used:1.066s, Datapath actions: 1
skb_priority=0,ip,in_port=5,vlan_tci=0x0000/0x1fff,dl_src=00:16:3e:2c:25:64,dl_dst=ff:ff:ff:ff:ff:ff,nw_frag=no, n_subfacets:1, used:1.114s, Datapath actions: 1,2,3,4,5
skb_priority=0,ip,in_port=3,vlan_tci=0x0000/0x1fff,dl_src=00:16:3e:1d:25:63,dl_dst=00:16:3e:1d:25:64,nw_frag=no, n_subfacets:1, used:0.250s, Datapath actions: 5

linux-loEozP:~ # ovs-dpctl dump-flows 
in_port(4),eth(src=00:16:3e:1d:25:63,dst=00:16:3e:1d:25:64),eth_type(0x0800),ipv4(src=192.168.1.11,dst=192.168.1.21,proto=6,tos=0,ttl=64,frag=no),tcp(src=42875,dst=59356), packets:6357150, bytes:419705580, used:0.000s, flags:., actions:5
in_port(4),eth(src=00:16:3e:1d:25:63,dst=90:e2:ba:13:0b:ec),eth_type(0x0800),ipv4(src=192.168.1.11,dst=192.168.1.2,proto=6,tos=0x10,ttl=64,frag=no),tcp(src=22,dst=43853), packets:1695, bytes:1201658, used:4.268s, flags:P., actions:1
skb_priority(0x6),in_port(1),eth(src=90:e2:ba:13:0b:ec,dst=00:16:3e:1d:25:63),eth_type(0x0800),ipv4(src=192.168.1.2,dst=192.168.1.11,proto=6,tos=0x10,ttl=64,frag=no),tcp(src=43849,dst=22), packets:516, bytes:29176, used:0.496s, flags:P., actions:4
in_port(5),eth(src=00:16:3e:1d:25:64,dst=00:16:3e:1d:25:63),eth_type(0x0800),ipv4(src=192.168.1.21,dst=192.168.1.11,proto=6,tos=0,ttl=64,frag=no),tcp(src=59356,dst=42875), packets:7644224, bytes:459093475380, used:0.000s, flags:P., actions:4
in_port(5),eth(src=00:16:3e:1d:25:64,dst=90:e2:ba:13:0b:ec),eth_type(0x0800),ipv4(src=192.168.1.21,dst=192.168.1.2,proto=6,tos=0x10,ttl=64,frag=no),tcp(src=22,dst=50962), packets:825, bytes:1117494, used:3.276s, flags:P., actions:1
in_port(4),eth(src=00:16:3e:1d:25:63,dst=90:e2:ba:13:0b:ec),eth_type(0x0800),ipv4(src=192.168.1.11,dst=192.168.1.2,proto=6,tos=0x10,ttl=64,frag=no),tcp(src=22,dst=43849), packets:491, bytes:177666, used:0.500s, flags:P., actions:1
skb_priority(0x6),in_port(1),eth(src=90:e2:ba:13:0b:ec,dst=00:16:3e:1d:25:63),eth_type(0x0800),ipv4(src=192.168.1.2,dst=192.168.1.11,proto=6,tos=0x10,ttl=64,frag=no),tcp(src=43853,dst=22), packets:771, bytes:41682, used:4.272s, flags:P., actions:4
skb_priority(0x6),in_port(1),eth(src=90:e2:ba:13:0b:ec,dst=00:16:3e:1d:25:64),eth_type(0x0800),ipv4(src=192.168.1.2,dst=192.168.1.21,proto=6,tos=0x10,ttl=64,frag=no),tcp(src=50962,dst=22), packets:598, bytes:32292, used:3.276s, flags:., actions:5



More information about the discuss mailing list