WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Linux DomU vs Bare Metal performance issues

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Linux DomU vs Bare Metal performance issues
From: Mark Watts <m.watts@xxxxxxxxxxxxxxxxx>
Date: Sat, 04 Dec 2010 08:10:22 +0000
Delivery-date: Sat, 04 Dec 2010 00:11:17 -0800
Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=linux-corner.info; s=default; t=1291450196; bh=IGWyTvRWAKWM9OGUABkM1o9MSu0O9Yx/KiPud89A/Fg=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=JnQDs0PcUoa+wHOQ3i8Msc9NUf/eblWPcnWz+dwUwOBQ1GehdEFw6/iEoiFYn2hfq jFz/Cxgv04yOA90IKrtxC3l0L1vdR8HOjmBeAqwsDBFAhfJMlu07ce/aRnTwbsVbKR uzU2dpqJ/hADd3iBkKL0IdedGGff0lpAKLOsV5+4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <64D0546C5EBBD147B75DE133D798665F06A1285C@xxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4CF947A7.4040103@xxxxxxxxxxxxxxxxx> <64D0546C5EBBD147B75DE133D798665F06A1285C@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/12/2010 22:18, Jeff Sturm wrote:
>> -----Original Message-----
>> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-users-
>> bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Mark Watts
>> Sent: Friday, December 03, 2010 2:40 PM
>> To: xen-users@xxxxxxxxxxxxxxxxxxx
>> Subject: [Xen-users] Linux DomU vs Bare Metal performance issues
>>
>> Can anyone shed any light on why I see such a drop in performance
> between these
>> two servers? I could understand, to an extent, seeing the DomU getting
> 3/4 of the
>> performance of the bare metal server given it has one CPU less, but
> this is less than
>> 1/2 the performance.
> 
> Understand what you're really testing here is the performance of the
> virtual network driver, since Apache does almost no work to serve a
> simple static page.  You're exercising the TCP stack and network drivers
> more than anything else.

Sure, but iperf shows near-enough line speed in both directions.
Shouldn't this 'prove' the virtual network driver is up to scratch for
this system?

> Out of curiosity, can you easily run the same test against dom0?  The
> dom0 runs a Xen kernel, on top of the hypervisor, but with a physical
> network interface (rather than virtual).

I can, certainly.

> One thing you can try is to pin the dom0 and/or domU to a physical core,
> using "xm vcpu-pin".  That gave me better throughput on some of my
> tests.

Dom-0 is already pinned to one CPU with the Dom-U given the remaining three.

> (I have doubts that hyperthreading scales as well as multicore
> processors, however I don't have any hyperthreaded systems of my own to
> test.)

I can certainly try this again with HT switched off on both boxes,
although that'll have to wait 'till monday.

Mark.



- -- 
Mark Watts, BSc RHCE
http://www.linux-corner.info/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJM+fduAAoJEA67+nBFe32mpIYIALk6PrqhwqIQquq3gma6wGcl
VCSHXYo/ZiZlAT/jTwYvY7qoR0CQ32VBipWoQnYoDRLKPMxhXS3Nt+AHeflW0ucG
mx2lwFfqFf9aftDWMPqlHUOzZoMulDIloXObvzcfUVEHOzuyInlIo3WRnImUoC+U
YAOes8ohiyDP823fRukXIH/JkCDNOrXquoB7tqtls4Q4KOOb5EwPnZ/BJDivIGpK
IFNn3s3paN7F0quRYFFDM3j/dcZf8Jh8rJOY3XZ8Y06YCl1sAIsbOeTwFhfmglYn
qspf9EYGqnUJ8w+GLlkWT7znmTH30Xr+87z/LE2/w/4sxN+SUti3D2reI/yniJ0=
=RtOZ
-----END PGP SIGNATURE-----

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users