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] [PATCH 7/7] introduce write-once optimization

To: "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 7/7] introduce write-once optimization
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Tue, 22 Sep 2009 09:48:57 +0100
Cc:
Delivery-date: Tue, 22 Sep 2009 01:49:22 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C6DE48E6.15700%keir.fraser@xxxxxxxxxxxxx>
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>
References: <4AB789C30200007800015F50@xxxxxxxxxxxxxxxxxx> <C6DE48E6.15700%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> Keir Fraser <keir.fraser@xxxxxxxxxxxxx> 22.09.09 10:27 >>>
>On 21/09/2009 13:12, "Jan Beulich" <JBeulich@xxxxxxxxxx> wrote:
>
>> This one is likely the most questionable part: Realizing that the
>> compiler can do a much better job in terms of CSE when the variables
>> needed are constant, this introduces and extension to the read-mostly
>> variables, allowing variables to be marked as being written just
>> during boot initialization.
>
>How much of a win overall was this? The main concern comes from mixing the
>two aliased variables within a single linkage unit, where it will be hard to
>know how clever the compiler might be with inlining and inter-function
>optimisations.

About 8k (5k compressed) code size reduction, I think. I didn't measure
performance.

Jan


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

<Prev in Thread] Current Thread [Next in Thread>