From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Translation cache sizes
Date: Sat, 8 Apr 2006 14:16:43 +0100 [thread overview]
Message-ID: <200604081416.44268.paul@codesourcery.com> (raw)
In-Reply-To: <200604080413.52908.jseward@acm.org>
On Saturday 08 April 2006 04:13, Julian Seward wrote:
> Using qemu from cvs simulating x86-softmmu (no kqemu) on x86,
> booting SuSE 9.1 and getting to the xdm (kdm?) graphical login
> screen, requires making about 1088000 translations, and the
> translation cache is flushed 17 times. Booting is not too bad,
> but once user-mode starts to run the translation cache is pretty
> much hammered.
>
> I made 2 changes:
>
> * increase CODE_GEN_BUFFER_SIZE from 16*1024*1024
> to 64*1024*1024,
>
> * observe that CODE_GEN_AVG_BLOCK_SIZE of 128
> for the softmmu case is too low; my measurements put it
> at about 247. So I changed it to 256.
>
> With those changes in place, the same boot-to-kdm process
> requires only about 570000 translations to be made, and 2
> cache flushes to happen. Of course the cost is an extra
> 48M of memory use.
Did you measure any actual speedup from these changes?
In a typical linux boot there's a lot of new code run only once, so I'd expect
the tb cache to be hammered fairly heavily.
Paul
prev parent reply other threads:[~2006-04-08 13:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-08 3:13 [Qemu-devel] Translation cache sizes Julian Seward
2006-04-08 6:30 ` Mulyadi Santosa
2006-04-08 10:27 ` Johannes Schindelin
2006-04-08 12:43 ` Gwenole Beauchesne
2006-04-08 13:10 ` Paul Brook
2006-04-08 13:16 ` Paul Brook [this message]
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=200604081416.44268.paul@codesourcery.com \
--to=paul@codesourcery.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.