From owner-freebsd-xen@FreeBSD.ORG Thu May 12 15:17:51 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 EEC52106564A for ; Thu, 12 May 2011 15:17:51 +0000 (UTC) (envelope-from tobias@ntelecom.com.br) Received: from mail.ntelecom.com.br (mail2.ntelecom.com.br [189.1.176.233]) by mx1.freebsd.org (Postfix) with ESMTP id B06078FC08 for ; Thu, 12 May 2011 15:17:51 +0000 (UTC) Received: from [172.16.16.100] (mailgw.ntelecom.com.br [189.1.176.249]) by mail.ntelecom.com.br (Postfix) with ESMTPA id B798525886AC for ; Thu, 12 May 2011 12:02:25 -0300 (BRT) Message-ID: <4DCBF681.7070106@ntelecom.com.br> Date: Thu, 12 May 2011 12:02:25 -0300 From: "Tobias P. Santos" User-Agent: Thunderbird 2.0.0.18 (X11/20081105) MIME-Version: 1.0 To: freebsd-xen@freebsd.org References: <4DCBEEE0.9060705@steadinet.fr> In-Reply-To: <4DCBEEE0.9060705@steadinet.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97 at mail.ntelecom.com.br X-Virus-Status: Clean 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 15:17:52 -0000 Try this: ifconfig xn1 -txcsum Best regards, Tobias. 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 network > (~ 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 > [...]