From: "Alex Bennée" <alex.bennee@linaro.org>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: peter.maydell@linaro.org, Xin Tong <trent.tong@gmail.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2 0/5] AArch64 TLB performance improvements
Date: Mon, 04 Aug 2014 12:34:22 +0100 [thread overview]
Message-ID: <878un4lc5d.fsf@linaro.org> (raw)
In-Reply-To: <87a97klf7p.fsf@linaro.org>
Alex Bennée writes:
> Paolo Bonzini writes:
>
>> Il 30/07/2014 17:20, Alex Bennée ha scritto:
>>> Hi,
>>>
> <snip>
>>> The most important thing is I've measured a 25-30% improvement in
>>> kernel and android boot time.
>>>
> <snip>
>> Hi Alex, have you seen this patch? Perhaps you're interested in
>> reviving it.
>>
>> http://article.gmane.org/gmane.comp.emulators.qemu/253864
>
> I saw it when it first came out but I didn't quite follow what it was
> doing as I hadn't looked at the TLB code. I'll have another look and see
> what difference it can make.
A quick and dirty benchmark:
**** Comparing 10bit/12bit tables with and without [[http://article.gmane.org/gmane.comp.emulators.qemu/253864][victim cache]]
#+BEGIN_NOTES
Time in seconds, smaller is better
Percentage is amount of time compared to run to the left
#+END_NOTES
| Code | 10 bit | 10 bit + victim | 12 bit | 12 bit + victim |
|-------+----------+-----------------+-----------+-----------------|
| | 12.783 | 11.664 | 10.348 | 9.527 |
| Runs | 13.046 | 11.971 | 10.123 | 9.326 |
| | 12.929 | 11.673 | 11.130 | 9.858 |
| | 12.981 | 11.941 | 10.223 | 9.673 |
|-------+----------+-----------------+-----------+-----------------|
| Avgs | 12.93475 | 11.81225 | 10.456 | 9.596 |
|-------+----------+-----------------+-----------+-----------------|
| %prev | 100% | 91.321827 | 88.518276 | 91.775057 |
#+TBLFM: $2=vmean(@I..II)::$3=(@II$3/@II$2)*100::$4=vmean(@I..II)::$5=vmean(@I..II)
Which as you expect shows the page table size is a greater improvement
to the performance but the victim cache also improves the run time on
top of this.
I say as you would expect because any time you need to exit translated
code there is a bunch of overhead in doing so.
--
Alex Bennée
prev parent reply other threads:[~2014-08-04 11:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-30 15:20 [Qemu-devel] [PATCH v2 0/5] AArch64 TLB performance improvements Alex Bennée
2014-07-30 15:20 ` [Qemu-devel] [PATCH v2 1/5] target-arm: don't hardcode mask values in arm_cpu_handle_mmu_fault Alex Bennée
2014-07-30 15:20 ` [Qemu-devel] [PATCH v2 2/5] target-arm: A64: fix TLB flush instructions Alex Bennée
2014-07-30 15:20 ` [Qemu-devel] [PATCH v2 3/5] target-arm: A64: fix use 12 bit page tables for AArch64 Alex Bennée
2014-07-30 15:20 ` [Qemu-devel] [PATCH v2 4/5] scripts/make_device_config.sh: inline includes Alex Bennée
2014-07-30 15:20 ` [Qemu-devel] [PATCH v2 5/5] target-arm: A64: disable a bunch of ARMv5 machines Alex Bennée
2014-08-01 16:45 ` Christopher Covington
2014-08-01 17:32 ` Peter Maydell
2014-08-01 16:06 ` [Qemu-devel] [PATCH v2 0/5] AArch64 TLB performance improvements Peter Maydell
2014-08-01 22:26 ` Peter Maydell
2014-08-04 10:23 ` Alex Bennée
2014-08-04 10:32 ` Peter Maydell
2014-08-04 13:11 ` Christopher Covington
2014-08-06 20:32 ` Richard Henderson
2014-08-01 19:35 ` Paolo Bonzini
2014-08-04 10:29 ` Alex Bennée
2014-08-04 11:34 ` Alex Bennée [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=878un4lc5d.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=trent.tong@gmail.com \
/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.