From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GjMAS-0000iA-IN for qemu-devel@nongnu.org; Sun, 12 Nov 2006 15:43:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GjMAR-0000hq-RZ for qemu-devel@nongnu.org; Sun, 12 Nov 2006 15:43:04 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GjMAR-0000hn-Nn for qemu-devel@nongnu.org; Sun, 12 Nov 2006 15:43:03 -0500 Received: from [65.74.133.4] (helo=mail.codesourcery.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GjMAR-0003gi-Kj for qemu-devel@nongnu.org; Sun, 12 Nov 2006 15:43:03 -0500 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH] Huge TLB performance improvement Date: Sun, 12 Nov 2006 20:42:58 +0000 References: <20060306145929.GD27785@networkno.de> <20061105153820.GB22548@nevyn.them.org> <20061112011035.GB21771@nevyn.them.org> In-Reply-To: <20061112011035.GB21771@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611122042.59445.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 > A patch which flushes up to 1/32nd of the jump buffer indiscriminately > cuts it to 1:11-1:13. > > Here's that last patch. It changes the hash function so that entries > from a particular page are always grouped together in tb_jmp_cache, > then finds the possibly two affected ranges and memsets them clear. > Thoughts? Is this acceptable, where else should it be tested besides > MIPS? I haven't fine-tuned the numbers; it currently allows for max 64 > cached jump targets per target page, but that could be made higher or > lower. I've applied this patch. It seems a reasonable compromise solution. I tested a couple of different x86 guests, and couldn't measure any significant difference in performance. Paul