Hi I am trying to understand the statistics from ovs-dpctl and reconcile that with stats from other tools. I am finding it difficult to make sense of the numbers, perhaps someone can point me to some documentation about how this works? There are numerous links on the web and it is quite confusing as I am not sure which is authoritative.
My setup is as follows: 1. Two machines connected back-to-back via 10G NICs 2. Both machines running RHEL 6.4/ wKVM; Two VMs on each, both running CentOS 6.4 3. OVS 1.10 installed on both; 4. Created bridge (ovsbr0) and connected the VMs via macvtap (bridge mode -allegedly; VMM says bridge mode, but the host cannot VM and vice-versa; VMs can communicate with external hosts/VMs) 1. I also have linux bridges (br0 & br1) on these VMs but they bridge the VMs to different physical ports (p4p1 and em1) 5. Ran netperf (and netserver) between host1-vm1 and host2-vm1successfully; got stats from neperf I have attached the stats outputs from ovs-dpctl, ifconfig -a and ip -s link and I cannot reconcile these: - The port numbers do not match across these, but I can ignore that for now - The Rx packets and bytes from ovs-dpctl (port 2: p4p2) does not match (or come close to) the ipconfig -a p4p2 or 'ip -s link' (for p4p2) - The macvtap ports do show the traffic coming out of the VMs (I see the increments in the same ballpark when I run netperf and observe through ip -s link and ipconfig -a) - Is all traffic going through OVS bridge (ovsbr0)? Does ovs-dpctl count show something? Do I need to enable statistics somewhere? thx, Kishore
[root@lab-sj1-140 ~]# ovs-vsctl show; ovs-dpctl -s show 0f10a9c0-2e52-4930-9da5-9f80ff61e8d4 Bridge "ovsbr0" Port "p4p2" Interface "p4p2" Port "ovsbr0" Interface "ovsbr0" type: internal ovs_version: "1.10.0" system@ovs-system: lookups: hit:216 missed:2738 lost:0 flows: 0 port 0: ovs-system (internal) RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 aborted:0 carrier:0 collisions:0 RX bytes:0 TX bytes:0 port 1: ovsbr0 (internal) RX packets:206 errors:0 dropped:0 overruns:0 frame:0 TX packets:2748 errors:0 dropped:0 aborted:0 carrier:0 collisions:0 RX bytes:12844 (12.5 KiB) TX bytes:170884 (166.9 KiB) port 2: p4p2 RX packets:2748 errors:0 dropped:0 overruns:0 frame:0 TX packets:206 errors:0 dropped:0 aborted:0 carrier:0 collisions:0 RX bytes:170884 (166.9 KiB) TX bytes:12844 (12.5 KiB) [root@lab-sj1-140 ~]# ifconfig -a p4p2 p4p2 Link encap:Ethernet HWaddr AC:16:2D:81:A5:CC inet6 addr: fe80::ae16:2dff:fe81:a5cc/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:6245887 errors:0 dropped:0 overruns:0 frame:0 TX packets:305274698 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:437394952 (417.1 MiB) TX bytes:463379950802 (431.5 GiB) Interrupt:44 Memory:f3000000-f37fffff [root@lab-sj1-140 ~]# ip -s link 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 RX: bytes packets errors dropped overrun mcast 116899442 37694 0 0 0 0 TX: bytes packets errors dropped carrier collsns 116899442 37694 0 0 0 0 2: p4p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000 link/ether ac:16:2d:81:a5:c8 brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 258708 3793 0 0 0 3766 TX: bytes packets errors dropped carrier collsns 251384 3815 0 0 0 0 3: p4p2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000 link/ether ac:16:2d:81:a5:cc brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 437394952 6245887 0 0 0 2575 TX: bytes packets errors dropped carrier collsns 3818450130 305274698 0 0 0 0 4: em1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 90:b1:1c:91:70:b8 brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 343281614 1082790 0 0 0 373850 TX: bytes packets errors dropped carrier collsns 519856685 738525 0 0 0 0 5: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN link/ether 46:f7:e4:80:32:ef brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 0 0 0 0 0 0 TX: bytes packets errors dropped carrier collsns 0 0 0 0 0 0 6: ovsbr0: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN link/ether ac:16:2d:81:a5:cc brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 170884 2748 0 0 0 0 TX: bytes packets errors dropped carrier collsns 12844 206 0 0 0 0 7: br1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN link/ether 90:b1:1c:91:70:b8 brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 309299541 897405 0 0 0 236455 TX: bytes packets errors dropped carrier collsns 501758821 480108 0 0 0 0 8: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN link/ether ac:16:2d:81:a5:c8 brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 31264 682 0 0 0 633 TX: bytes packets errors dropped carrier collsns 900 14 0 0 0 0 11: virbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN link/ether 52:54:00:72:42:7f brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 0 0 0 0 0 0 TX: bytes packets errors dropped carrier collsns 0 0 0 0 0 0 12: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 500 link/ether 52:54:00:72:42:7f brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 0 0 0 0 0 0 TX: bytes packets errors dropped carrier collsns 0 0 0 0 0 0 20: vnet2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 500 link/ether fe:54:00:d7:16:e4 brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 63073 836 0 0 0 0 TX: bytes packets errors dropped carrier collsns 22630365 271214 0 0 0 0 21: vnet3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 500 link/ether fe:54:00:49:98:7b brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 900 14 0 0 0 0 TX: bytes packets errors dropped carrier collsns 116160 1815 0 0 0 0 22: macvtap1@p4p2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UNKNOWN qlen 500 link/ether 52:54:00:96:79:69 brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 15147692 229366 0 0 0 2580 TX: bytes packets errors dropped carrier collsns 2886985322 119677 0 0 0 0 23: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 500 link/ether fe:54:00:e8:47:91 brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 76972 1040 0 0 0 0 TX: bytes packets errors dropped carrier collsns 22612086 271121 0 0 0 0 24: vnet1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 500 link/ether fe:54:00:4a:d9:48 brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 1072 16 0 0 0 0 TX: bytes packets errors dropped carrier collsns 115488 1803 0 0 0 0 25: macvtap0@p4p2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UNKNOWN qlen 500 link/ether 52:54:00:e5:2d:64 brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 809935346 12267008 0 0 0 2550 TX: bytes packets errors dropped carrier collsns 1544969784 7575492 0 0 0 0
_______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev