From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Quubu-0007LR-Fr for qemu-devel@nongnu.org; Sat, 20 Aug 2011 19:05:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Quubt-0002iZ-EA for qemu-devel@nongnu.org; Sat, 20 Aug 2011 19:05:50 -0400 Received: from mail-fx0-f45.google.com ([209.85.161.45]:35075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Quubt-0002iV-9k for qemu-devel@nongnu.org; Sat, 20 Aug 2011 19:05:49 -0400 Received: by fxbb27 with SMTP id b27so2960198fxb.4 for ; Sat, 20 Aug 2011 16:05:48 -0700 (PDT) Date: Sun, 21 Aug 2011 01:05:44 +0200 From: "Edgar E. Iglesias" Message-ID: <20110820230544.GA1604@zapo> References: <20110820205122.GA29545@zapo> <4E503715.7080103@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E503715.7080103@web.de> Subject: Re: [Qemu-devel] TCG slowdown List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: qemu-devel@nongnu.org On Sat, Aug 20, 2011 at 03:37:09PM -0700, Jan Kiszka wrote: > On 2011-08-20 13:51, Edgar E. Iglesias wrote: > > Lately, my TCG emulated machines have been running terribly slow. > > Like a factor 3 or 4 slower, hardly usable. > > > > I bisected it to this: > > > > commit d5ab9713d2d4037fd56b0adddd26c8d4dc11cf09 > > Author: Jan Kiszka > > Date: Tue Aug 2 16:10:21 2011 +0200 > > > > Avoid allocating TCG resources in non-TCG mode > > > > Do not allocate TCG-only resources like the translation buffer when > > running over KVM or XEN. Saves a "few" bytes in the qemu address space > > and is also conceptually cleaner. > > > > Signed-off-by: Jan Kiszka > > Signed-off-by: Anthony Liguori > > > > > > It turns out that the init of the tb cache is now moved to before ram_size > > gets it's default value. And because the default tb cache size, if no > > -tb-size option is given, is based on the ram_size it is now zero.. > > Yes, already stumbled over that regression myself. See > http://thread.gmane.org/gmane.comp.emulators.qemu/113547 OK, thanks. I've pushed your fix. Cheers