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-devel

Re: [Xen-devel] Performance difference between Xen versions

To: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Performance difference between Xen versions
From: Keir Fraser <keir.xen@xxxxxxxxx>
Date: Fri, 29 Apr 2011 14:28:10 +0100
Cc:
Delivery-date: Fri, 29 Apr 2011 06:29:20 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:user-agent:date:subject:from:to:message-id :thread-topic:thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; bh=pdsSCLwfwlgodPuUdynFulSRCdKj1voI8Yo8mLMleh0=; b=mbnZtVljZupcZjARHw33fh4eP1ooozjlLlsANfafJKI/pN4U0A/TJyOKdm4zAD+X5N 0WgUUJbv50rYzHUwWly9+tMffZZhVW43Q7Xi8V0SOlDfJJf5sHo+eKCx+cf+lNGBKLfC lnxpLdxnVGneN3Pc4W56ZRnhs7vQSab2TKg00=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=user-agent:date:subject:from:to:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=se9LCUB+91TjGTtPwNdnfsYhwDHYA3YPUDaXlAr8LRpplKgnEP2jl1fszg69CjbVTx snD9Bc+YfF8i2fSt3Fu6RTgiPqRDWuDDRI3U0YTWx7umsHwWI/UQwp1d0FMiQOeAOIkx pyt32qebI/Hk7ZMUi/19iVlc6L8YKImy7Mp/w=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4DBAAFF1.8080001@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcwGcUg+ymg/ptnAVUebwRcCksu38w==
Thread-topic: [Xen-devel] Performance difference between Xen versions
User-agent: Microsoft-Entourage/12.29.0.110113
Are you sure TSC runs at the same rate in the guest on both hypervisor
versions? Xen 4.0 might trap and emulate a more consistent but slower rate
TSC by default. 'tsc_mode=2' in your domain config file on 4.0 might be a
quick fix.

 -- Keir

On 29/04/2011 13:32, "Juergen Gross" <juergen.gross@xxxxxxxxxxxxxx> wrote:

> Hi,
> 
> comparing performance of different Xen versions with BS2000 as HVM guest
> showed some weird data I'd like to understand.
> 
> All measurements were done on an Intel Xeon E7220 box. We used a disk-
> benchmark and found the cpu utilization was much higher with Xen 4.0 compared
> to Xen 3.3. I did some more investigation and narrowed things down to calls of
> the hypervisor (implicit or explicit).
> 
> Following is a table with timing data for different low-level functions, all
> timing values are tsc ticks obtained via rdtsc:
> 
> Xen 3.3     Xen 4.0      Function
>        88        165      just the measurement overhead
>       176        330      rdtsc-instruction + cli/sti
>      5896      11044      lapic timer query
>      7381      13519      setting lapic timer
>      4653       8987      reload of cr3
>      3124       5709      invlpg instruction
>    792253     792264      wbinvd instruction
>       748       1375      int + iret
>      5203       9317      hypervisor yield call
> 12598102   12597882      memory access loop
> 
> All operations involving the hypervisor take nearly twice the time on 4.0.
> Operations not involving the hypervisor (wbinvd and memory access loop) are
> the same on both systems (this rules out the possibility of different rdtsc
> behavior).
> 
> Is there any easy explanation for this? Both Xen versions are from SLES
> (SLES11 or SLES11 SP1).
> 
> 
> Juergen



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