From: "Jan Beulich" Subject: Re: [PATCH 7/7] introduce write-once optimization Date: Tue, 22 Sep 2009 09:48:57 +0100 Message-ID: <4AB8AB99020000780001630F@vpn.id2.novell.com> References: <4AB789C30200007800015F50@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: 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: Keir Fraser , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> Keir Fraser 22.09.09 10:27 >>> >On 21/09/2009 13:12, "Jan Beulich" 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