From owner-freebsd-xen@FreeBSD.ORG Thu May 12 18:20:52 2011 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8D5F106564A for ; Thu, 12 May 2011 18:20:52 +0000 (UTC) (envelope-from gs@omegacube.fr) Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by mx1.freebsd.org (Postfix) with ESMTP id 488148FC12 for ; Thu, 12 May 2011 18:20:52 +0000 (UTC) X-Originating-IP: 217.70.178.137 Received: from mfilter8-d.gandi.net (mfilter8-d.gandi.net [217.70.178.137]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id AFE8B172081 for ; Thu, 12 May 2011 20:20:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter8-d.gandi.net Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mfilter8-d.gandi.net (mfilter8-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id WrpRNFtFwpqU for ; Thu, 12 May 2011 20:20:38 +0200 (CEST) X-Originating-IP: 209.85.220.182 Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) (Authenticated sender: gs@omegacube.fr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 65C45172095 for ; Thu, 12 May 2011 20:20:38 +0200 (CEST) Received: by vxc34 with SMTP id 34so1819818vxc.13 for ; Thu, 12 May 2011 11:20:37 -0700 (PDT) Received: by 10.220.193.69 with SMTP id dt5mr152150vcb.93.1305224437209; Thu, 12 May 2011 11:20:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.203.137 with HTTP; Thu, 12 May 2011 11:20:17 -0700 (PDT) In-Reply-To: References: <4DCBEEE0.9060705@steadinet.fr> <4DCBF681.7070106@ntelecom.com.br> <4DCC1097.4080003@gmail.com> From: Guillaume Seigneuret Date: Thu, 12 May 2011 20:20:17 +0200 Message-ID: To: Michael MacLeod Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-xen@freebsd.org Subject: Re: [FreeBSD 8.2 amd64 XENHVM] DomU terrible network performance trought NAT X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2011 18:20:53 -0000 I think you should try totally disable the window sizing both parts to isolate it doesn't come from here : On your FreeBSD VM : sysctl net.inet.tcp.rfc1323=3D0 On your Linux box : sysctl net.ipv4.tcp_window_scaling=3D0 Then if the rate is hugely better, try some settings to increase the compatibility. You can also try an *iperf *test with TCP and UDP packets to see if the behavior is generalized, and see what latency you have both part of the network. Cordialement, *Guillaume Seigneuret* *Network and System Security Architect Mobile : +33.6.15.37.35.67 Web : http://www.omegacube.fr Address :* H=F4tel Technologique Marseille Innovation - BP 100 45 rue Frederic Joliot Curie Technop=F4le de Ch=E2teau Gombert 13382 Marseille Cedex 13 2011/5/12 Michael MacLeod > Try -rxcsum as well. I have both disabled on my domU. > > On Thu, May 12, 2011 at 12:53 PM, laurent.cligny@gmail.com < > laurent.cligny@gmail.com> wrote: > > > Le 12/05/2011 17:02, Tobias P. Santos a =E9crit : > > > Try this: > > > > > > ifconfig xn1 -txcsum > > > > > > Best regards, > > > Tobias. > > Hello Tobias, > > > > Unfortunately ifconfig xn1 -txcsum didn't give me lot of result. > > Doing this my network perf through NAT is about 7KiB/s (that is better > > than before, but still unworkable). > > > > Thanks for the idea, maybe we are not that far away from the solution. > > > > > > > > > > > Laurent Cligny wrote: > > >> Hello all, > > >> > > >> I want to setup a FreeBSD DomU VM as a network NAT gateway in order = to > > >> provide Internet access to other FreeBSD and Linux DomU VMs. > > >> My Dom0 is Xen Cloud Platform 1.0 on a Dell Poweredge 210 with 8 > cores, > > >> 16GiB RAM and one NIC. > > >> > > >> All FreeBSD VM are 8.2 amd64 with XENHVM kernel anf the Linux VM is = a > > >> Paravirtualized Debian amd64. > > >> > > >> The NAT gateway is a two-NIC box, with one (xn0) configured with a > > >> public Internet address and the other (xn1) configured with a class = A > > >> private address (10.0.0.254). > > >> The Internet traffic is very good from my FreeBSD NAT gateway to the > > >> Internet (~ 50MiB/s) and also between other VMs on the private netwo= rk > > >> (~ 70MiB/s trough scp) after applying the patch here > > >> (http://www.mail-archive.com/freebsd-xen@freebsd.org/msg00855.html) > > >> fixing the "too many frags" problem. > > >> > > >> Here is a schema of my setup with the observed net speed on it: > > >> > > >> ---------- --------------- ---------------------- > > >> |Internet|---xn0---|FBSD DomU NAT|---xn1---|FBSD and Linux DomUs| > > >> ---------- --------------- ---------------------- > > >> <-------> <-------> > > >> 50MiB/s 70MiB/s > > >> > > >> <-------------------------------> > > >> 0KiB/s > >> > > >> [...] > > > _______________________________________________ > > > freebsd-xen@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-xen > > > To unsubscribe, send any mail to "freebsd-xen-unsubscribe@freebsd.org= " > > > > _______________________________________________ > > freebsd-xen@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-xen > > To unsubscribe, send any mail to "freebsd-xen-unsubscribe@freebsd.org" > > > _______________________________________________ > freebsd-xen@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-xen > To unsubscribe, send any mail to "freebsd-xen-unsubscribe@freebsd.org" >