From owner-freebsd-xen@FreeBSD.ORG Wed May 18 12:18:30 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 4FBA9106566C for ; Wed, 18 May 2011 12:18:30 +0000 (UTC) (envelope-from laurent.cligny@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id CA4458FC13 for ; Wed, 18 May 2011 12:18:29 +0000 (UTC) Received: by ewy1 with SMTP id 1so639221ewy.13 for ; Wed, 18 May 2011 05:18:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=IAspzRIEY68ivC2x+SKiBY2gfnnSUNOO2/QPrJPKfs8=; b=AQ6S6tiN5/NKf86O9c2PHt/uHp66zuNgrFuaOYgqPiLAd3v7fx32ZDoN5Xy5UkeOkB 0yw7NCQTNuTqFGwgCg2enKTwp1f+YLIfpHzOgGKG5PiFLRiZO08xE39DRhfX+EMvm75a k1p6j3r+yHMykBCEbKiQy5WDc+HsTTjiqahpI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=j+LpENIAd2lb34FWYEwwRKEfGz29wZ6yX4S+QcTklsRdDmV+QOZq1HG7Lha3pIuQtY cE3IQPD3MZWOnJktFw/MwcOngYRmAyj8oa8rCdU7kL3O/tqNz0ohOHwti92bZ29sMQAb QOrITPyz/2SMFb1iAfxd5RRFqXtXYT9VsAUO0= Received: by 10.14.52.65 with SMTP id d41mr671759eec.85.1305721108538; Wed, 18 May 2011 05:18:28 -0700 (PDT) Received: from [192.168.1.12] (ARennes-555-1-114-211.w90-49.abo.wanadoo.fr [90.49.97.211]) by mx.google.com with ESMTPS id r12sm1124348eeb.4.2011.05.18.05.18.26 (version=SSLv3 cipher=OTHER); Wed, 18 May 2011 05:18:27 -0700 (PDT) Message-ID: <4DD3B917.9080109@gmail.com> Date: Wed, 18 May 2011 14:18:31 +0200 From: "laurent.cligny@gmail.com" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110402 Iceowl/1.0b2 Icedove/3.1.9 MIME-Version: 1.0 To: freebsd-xen@freebsd.org References: <4DCBEEE0.9060705@steadinet.fr> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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: Wed, 18 May 2011 12:18:30 -0000 Le 12/05/2011 17:48, Janne Snabb a écrit : > On Thu, 12 May 2011, Laurent Cligny wrote: > >> All FreeBSD VM are 8.2 amd64 with XENHVM kernel anf the Linux VM is a >> Paravirtualized Debian amd64. > My suggestion would be to try out the same setup with GENERIC kernel > and the rtl driver (or even better e1000 if your Xen allows it) > which is easy to do to make a simple comparison. I tried it following your idea. I compiled GENERIC kernel on both NAT Vm and Vm behind the NAT, the network perf increased a lot as it is now about 15Mb/s trough NAT and between the VM on the private network. But doing this also eat a lot of CPU on "Sys" context (almost 50% on SMP). So I think it is not a suitable setup for me. > In one of my recent benchmarks the FreeBSD Xen PV network driver > performed very well in one direction, but very badly in the other. > Using rtl or e1000 gave much better TCP throughput if you care > equally about both directions. This benchmark was done only for > internal TCP traffic between a Linux dom0 and FreeBSD dumU, the > traffic never entered a real NIC. In fact I have great troughput between VM on private NIC with XENHVM kernel (50 to 70 Mb/s) and also from NAT VM to Internet on public NIC. The problem appears when I generate traffic from VMs on private network to and from the Internet trough the NAT VM. > This might or might not help in your situation... It has conforted me into the idea that XENHVM kernel doesn't work well with FreeBSD NAT solutions or with the underlying Xen Cloud Platform Dom0. > -- > Janne Snabb / EPIPE Communications > snabb@epipe.com - http://epipe.com/ > _______________________________________________ > 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"