From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K1LCH-0005ZJ-8U for qemu-devel@nongnu.org; Wed, 28 May 2008 08:56:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K1LCF-0005Z7-Sm for qemu-devel@nongnu.org; Wed, 28 May 2008 08:56:04 -0400 Received: from [199.232.76.173] (port=44165 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K1LCF-0005Z4-Ll for qemu-devel@nongnu.org; Wed, 28 May 2008 08:56:03 -0400 Received: from mail.codesourcery.com ([65.74.133.4]:39266) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K1LCF-0003iQ-E1 for qemu-devel@nongnu.org; Wed, 28 May 2008 08:56:03 -0400 From: Paul Brook Subject: Re: [Qemu-devel] [4600] variable dynamic translation buffer size Date: Wed, 28 May 2008 13:55:52 +0100 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200805281355.53574.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Wednesday 28 May 2008, Fabrice Bellard wrote: > + =C2=A0 =C2=A0 =C2=A0 =C2=A0code_gen_buffer =3D mmap(NULL, code_gen_buff= er_size, > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 PROT_WRITE | PROT_READ | PROT_EXEC, > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 flags, -1, 0); I'd expect this to cause a significant performance regression on hosts that= =20 have limited branch range (i.e. everything except x86). The mmap region is= =20 almost never close to the application text segment, so all helper calls hav= e=20 to be indirect. Paul