qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Emilio G. Cota" <cota@braap.org>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PULL 1/1] update seabios to master snapshot
Date: Fri, 1 Feb 2019 19:35:19 -0500	[thread overview]
Message-ID: <20190202003519.GA29706@flamenco> (raw)
In-Reply-To: <20181106112829.1948-2-kraxel@redhat.com>

Hi Gerd,

On Tue, Nov 06, 2018 at 12:28:29 +0100, Gerd Hoffmann wrote:
> seabios 1.12 release is planned for november.
> 
> update seabios to a master branch snapshot so it gets more testing
> and to make the delta smaller when updating to -final during freeze.

I just bisected a performance regression for TCG-based x86 emulation
to this commit.

The issue is that after this patch, tlb_flush() gets called *way*
more often -- e.g. ~90,000 instead of ~400 times in the first second
or so when booting.

Steps to reproduce:

1. Add this debug print:

--- a/accel/tcg/cputlb.c
+++ b/accel/tcg/cputlb.c
@@ -183,6 +183,12 @@ void tlb_flush_by_mmuidx(CPUState *cpu, uint16_td)

 void tlb_flush(CPUState *cpu)
 {
+    static int count;
+
+    count++;
+    if (!(count % 100)) {
+        printf("%s: %d\n", __func__, count);
+    }
     tlb_flush_by_mmuidx(cpu, ALL_MMUIDX_BITS);
 }

2. build QEMU

3. invoke with:
  $ x86_64-softmmu/qemu-system-x86_64 -nographic

You should then see many "tlb_flush: N" lines, with N
reaching ~90,000 before the SeaBIOS banner comes out.

Note that before this patch, you should only see N == ~400
before reaching the banner.

How can I bisect seabios? I can't find a recipe to generate
the .bin files included in this commit.

Thanks,

		Emilio

  parent reply	other threads:[~2019-02-02  0:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-06 11:28 [Qemu-devel] [PULL 0/1] Seabios 20181106 patches Gerd Hoffmann
2018-11-06 11:28 ` [Qemu-devel] [PULL 1/1] update seabios to master snapshot Gerd Hoffmann
2018-11-06 17:38   ` Stefan Berger
2018-11-07  9:10     ` Gerd Hoffmann
2019-02-02  0:35   ` Emilio G. Cota [this message]
2019-02-04 11:20     ` Gerd Hoffmann
2019-02-04 15:25       ` Emilio G. Cota
2019-02-05  8:12         ` Gerd Hoffmann
2018-11-06 14:25 ` [Qemu-devel] [PULL 0/1] Seabios 20181106 patches Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190202003519.GA29706@flamenco \
    --to=cota@braap.org \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).