From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262865AbVG3BXx (ORCPT ); Fri, 29 Jul 2005 21:23:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262845AbVG3BXo (ORCPT ); Fri, 29 Jul 2005 21:23:44 -0400 Received: from smtp.osdl.org ([65.172.181.4]:25741 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S262865AbVG3BV4 (ORCPT ); Fri, 29 Jul 2005 21:21:56 -0400 Date: Fri, 29 Jul 2005 18:20:29 -0700 From: Andrew Morton To: Eric Lammerts Cc: arjan@infradead.org, davej@redhat.com, davem@davemloft.net, pmarques@grupopie.com, linux-kernel@vger.kernel.org Subject: Re: Slowdown with randomize_va_space in 2.6.12.2 Message-Id: <20050729182029.68748c9f.akpm@osdl.org> In-Reply-To: References: <42CBE97C.2060208@grupopie.com> <20050706.125719.08321870.davem@davemloft.net> <20050706205315.GC27630@redhat.com> <20050706181220.3978d7f6.akpm@osdl.org> <1120718229.3198.8.camel@laptopd505.fenrus.org> X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Eric Lammerts wrote: > > > On Thu, 7 Jul 2005, Arjan van de Ven wrote: > > On Wed, 2005-07-06 at 18:12 -0700, Andrew Morton wrote: > > > Dave Jones wrote: > > > > On Transmeta CPUs that probably triggers a retranslation of > > > > x86->native bytecode, if it thinks it hasn't seen code at that > > > > address before. > > > > > > ouch. What do we do? Default to off? Default to off on xmeta? > > > > off-on-xmeta would be my preference; I'll cook up a patch for that. > > It would be nice if a fix for this could get in before 2.6.13 comes > out. I agree. > What about this patch? > It has the virtue of simplicity. Arjan, were you planning on anything fancier? > > --- linux-2.6.13-rc4/arch/i386/kernel/cpu/transmeta.c.orig 2005-06-17 15:48:29.000000000 -0400 > +++ linux-2.6.13-rc4/arch/i386/kernel/cpu/transmeta.c 2005-07-29 20:46:54.000000000 -0400 > @@ -76,6 +76,10 @@ > #define USER686 (X86_FEATURE_TSC|X86_FEATURE_CX8|X86_FEATURE_CMOV) > if ( c->x86 == 5 && (c->x86_capability[0] & USER686) == USER686 ) > c->x86 = 6; > + > + /* randomize_va_space slows us down enormously; > + it probably triggers retranslation of x86->native bytecode */ > + randomize_va_space = 0; > } > > static void transmeta_identify(struct cpuinfo_x86 * c)