From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Xen network performance analysis and benchmarks / windows pv drivers Date: Tue, 18 Mar 2008 23:29:36 +0200 Message-ID: <20080318212936.GF21162@edu.joroinen.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hello list. I'm forwarding my mail sent to xen-users list because it contains some go= od links for studying the (xen) network performance and issues with it..=20 ----- Forwarded message from Pasi K=E4rkk=E4inen ----- From: Pasi K=E4rkk=E4inen To: Tom Brown Cc: Scott McKenzie , James Harper , xen-users , Emre ERENOGLU Date: Tue, 18 Mar 2008 23:17:45 +0200 Subject: Re: [Xen-users] Re: [Xen-devel] Release 0.8.5 of GPL PV drivers forWindows On Tue, Mar 18, 2008 at 11:02:56PM +0200, Pasi K=E4rkk=E4inen wrote: > On Tue, Mar 18, 2008 at 12:02:52PM -0700, Tom Brown wrote: > > > > > >Isn't these 100 mbps or 1000 mbps speeds funny numbers for today's C= PU > > >power? I mean, somewhere in the design, there's something wrong that= forces > > >us to make possibly too many context switches between DomU, Hypervis= or and > > >Dom0. ??? > > > > > >Emre > >=20 > > what, something like the 1500 byte maximum transmission unit (MTU) fr= om=20 > > back in the days when 10 MILLION bits per second was so insanely fast= we=20 > > connected everything to the same cable!? (remember 1200 baud modems?)= Yes,=20 > > there might be some "design" decisions that don't work all that well=20 > > today. > >=20 > > AFAIK, XEN can't do oversize (jumbo) frames, that would be a big help= for=20 > > a lot of things (iSCSI, ATAoE, local network )... but even so, AFAIK = it=20 > > would only be a relatively small improvement (jumbo frames only going= up=20 > > to about 8k AFAIK). > >=20 >=20 > Afaik Xen itself supports jumbo frames as long as everything in both do= m0 > and domU is configured correctly. Do you have more information about th= e=20 > opposite?=20 >=20 > "Standard" jumbo frames are 9000 bytes..=20 >=20 > Something that might be interesting: http://www.vmware.com/pdf/hypervis= or_performance.pdf >=20 > Especially the "Netperf" section.. >=20 > "VMware ESX Server delivers near native performance for both one- and > two-client tests. The Xen hypervisor, on the other hand, is extremely s= low, > performing at only 3.6 percent of the native performance." >=20 > "VMware ESX Server does very well, too: the throughput for two-client t= ests > goes up 1.9-.2 times compared to the one-client tests. Xen is almost CP= U > saturated for the one-client case, hence it does not get much scaling a= nd > even slows down for the send case." >=20 > "The Netperf results prove that by using its direct I/O architecture > together with the paravirtualized vmxnet network driver approach, VMwar= e ESX > Server can successfully virtualize network I/O intensive datacenter > applications such as Web servers, file servers, and mail servers. The v= ery > poor network performance makes the Xen hypervisor less suitable for any= such > applications." >=20 > It seems VMware used Xen 3.0.3 _without_ paravirtualized drivers (using= QEMU > emulated NIC), so that explains the poor result for Xen..=20 >=20 >=20 > Another test, this time with Xen Enterprise 3.2: http://www.vmware.com/= pdf/Multi-NIC_Performance.pdf >=20 > "With one NIC configured, the two hypervisors were each within a fracti= on of > one percent of native throughput for both cases. Virtualization overhea= d had no effect for this > lightly-loaded configuration." >=20 > "With two NICs, ESX301 had essentially the same throughput as native, b= ut > XE320 was slower by 10% (send) and 12% (receive), showing the effect of= CPU overhead." >=20 > "With three NICs, ESX301 is close to its limit for a uniprocessor virtu= al > machine, with a degradation compared to native of 4% for send and 3% fo= r receive. XE320 is able to > achieve some additional throughput using three NICs instead of two, but= the performance degradation > compared to native is substantial: 30% for send, 34% for receive." >=20 >=20 > So using paravirtualized network drivers with Xen should make a huge di= fference, but > there still seems to be something to optimize.. to catch up with VMware= ESX.=20 >=20 >=20 Replying to myself.. http://xen.org/files/xensummit_4/NetworkIO_Santos.pdf http://xen.org/files/xensummit_fall07/16_JoseRenatoSantos.pdf Papers from last fall about Xen network performance (with analysis and benchmarks) and optimization suggestions..=20 Worth reading.=20 So I guess the summary would be that using PV network drivers you should = be able to get near native performance with at least single CPU/NIC guests.. this is already the case with xensource windows pv network drivers.=20 In the future with netchannel2 performance should scale much higher (10 gigabit). So now it's only about figuring out how to make gplpv windows drivers per= form as well as xensource drivers:) -- Pasi > And some more bencnmark results by xensource: http://www.citrixxenserve= r.com/Documents/hypervisor_performance_comparison_1_0_5_with_esx-data.pdf >=20 > Something I noticed about the benchmark configuration: >=20 > "XenEnterprise 3.2 - Windows: Virtual Network adapters: XenSource Xen T= ools > Ethernet Adapter RTL8139 Family PCI Fast Ethernet NIC, Receive Buffer S= ize=3D64KB" >=20 > Receive buffer size=3D64KB.. is that something that needs to be tweaked= in the > drivers for better performance? Or is that just some benchmarking tool > related setting..=20 >=20 > -- Pasi >=20 ----- End forwarded message -----