From: Jeremy Fitzhardinge Subject: Re: lmbench lat_mmap slowdown with CONFIG_PARAVIRT Date: Thu, 22 Jan 2009 16:08:15 -0800 Message-ID: <49790A6F.1080000@goop.org> References: <20090120110542.GE19505@wotan.suse.de> <20090120112634.GA20858@elte.hu> <20090120140324.GA26424@elte.hu> <49763806.5090009@goop.org> <20090120205653.GA19710@elte.hu> <20090121072718.GN24891@wotan.suse.de> <4977A051.8050203@goop.org> <1232663311.16317.176.camel@bodhitayantram.eng.vmware.com> <4978F6C6.3090003@goop.org> <4978F7DC.1040503@zytor.com> <1232665120.16317.186.camel@bodhitayantram.eng.vmware.com> <497906A4.2030008@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <497906A4.2030008@zytor.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "H. Peter Anvin" Cc: Zachary Amsden , Nick Piggin , Xen-devel , "jeremy@xensource.com" , "rusty@rustcorp.com.au" , Linux Kernel Mailing List , "chrisw@sous-sol.org" , Ingo Molnar , Linus Torvalds , Andrew Morton List-Id: xen-devel@lists.xenproject.org H. Peter Anvin wrote: > Right now a number of the call sites contain a huge push/pop sequence > followed by an indirect call. We can patch in the native code to > avoid the branch overhead, but the register constraints and icache > footprint is unchanged. That's true for the pvops hooks emitted in the .S files, but not so true for ones in C code (well, there are no explicit push/pops, but the presence of the call may cause the compiler to generate them). The .S hooks can definitely be cleaned up, but I don't think that's germane to Nick's observations that the mm code is showing slowdowns. J