Patch for domU packet loss

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I've found that dom0 <-> domU begin loss ~ 20% packets on high UDP
traffic (with bridged virtual network setup).
The fix is to increase txqueuelen on vif* interfaces which is very low
(32) by default.
Tested with Centos 6.5, 3.10.23-11.el6.centos.alt.x86_64
xen-4.2.3-26.el6.centos.alt

P.S. This problem widely discussed in the internet, but nobody publish
this fix (why?)

http://serverfault.com/questions/442674/xen-pv-packet-loss
http://lists.xen.org/archives/html/xen-users/2009-01/msg00381.html
...

diff -ur xen-4.2.3.orig/tools/hotplug/Linux/vif-bridge xen-4.2.3/tools/hotplug/Linux/vif-bridge
--- xen-4.2.3.orig/tools/hotplug/Linux/vif-bridge	2013-09-09 16:27:41.000000000 +0400
+++ xen-4.2.3/tools/hotplug/Linux/vif-bridge	2013-12-15 21:17:53.537741152 +0400
@@ -86,6 +86,7 @@
         if [ -n "$mtu" ] && [ "$mtu" -gt 0 ]
         then
                 ip link set $dev mtu $mtu || :
+                ip link set $dev txqueuelen 1000 || :
         fi
         add_to_bridge "$bridge" "$dev"
         ;;
_______________________________________________
CentOS-virt mailing list
CentOS-virt@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos-virt

[Index of Archives]     [CentOS Users]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Linux USB]

  Powered by Linux