From: Hollis Blanchard <hollis_blanchard-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
To: Alexander Graf <agraf-l3A5Bk7waGM@public.gmane.org>
Cc: Liu Yu-B13201 <B13201-KZfg59tc24xl57MIdRCFDg@public.gmane.org>,
kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
kvm-ppc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 1/2] kvm/e500v2: Remove shadow tlb
Date: Thu, 09 Sep 2010 16:39:39 -0700 [thread overview]
Message-ID: <4C89703B.6010107@mentor.com> (raw)
In-Reply-To: <C1EBC75A-91B0-49D9-8AD5-571C6BAF22B7-l3A5Bk7waGM@public.gmane.org>
On 09/09/2010 04:26 PM, Alexander Graf wrote:
> On 09.09.2010, at 20:13, Hollis Blanchard wrote:
>
>> On 09/09/2010 04:16 AM, Liu Yu-B13201 wrote:
>>
>>> Yes, it's hard to resume TLB0. We only resume TLB1 in previous code.
>>> But TLB1 is even more smaller (13 free entries) than 440,
>>> So that it still has little possibility to get hit.
>>> thus the resumption is useless.
>>>
>>>
>> The only reason hits are unlikely in TLB1 is because you still don't have large page support in the host. Once you have that, you can use TLB1 for large guest mappings, and it will become extremely likely that you get hits in TLB1. This is true even if the guest wants 256MB but the host supports only e.g. 16MB large pages, and must split the guest mapping into multiple large host pages.
>>
>> When will you have hugetlbfs for e500? That's going to make such a dramatic difference, I'm not sure it's worth investing time in optimizing the MMU code until then.
>>
> I'm not sure I agree. Sure, huge pages give another big win, but the state as is should at least be fast enough for prototyping.
>
Sure, and it sounds like you can prototype with it already. My point is
that, in your 80-20 rule of optimization, the 20% is going to change
radically once large page support is in place.
Remember that the guest kernel is mapped with just a couple large pages.
During guest Linux boot on 440, I think about half the boot time is
spent TLB thrashing in the initcalls. Using TLB0 can ameliorate that for
now, but why bother, since it doesn't help you towards the real solution?
I'm not saying this shouldn't be committed, if that's how you
interpreted my comments, but in my opinion there are more useful things
to do than continuing to optimize a path that is going to disappear in
the future. Once you *do* have hugetlbfs in the host, you're not going
to want to use TLB0 for guest TLB1 mappings any more anyways.
Hollis Blanchard
Mentor Graphics, Embedded Systems Division
next prev parent reply other threads:[~2010-09-09 23:39 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-08 9:40 [PATCH 0/2] kvm/e500v2: MMU optimization Liu Yu
[not found] ` <1283938806-2981-1-git-send-email-yu.liu-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2010-09-08 9:40 ` [PATCH 1/2] kvm/e500v2: Remove shadow tlb Liu Yu
2010-09-08 9:40 ` [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0 Liu Yu
[not found] ` <1283938806-2981-3-git-send-email-yu.liu-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2010-09-09 23:24 ` Alexander Graf
[not found] ` <E759E1E3-7457-41B7-B36E-75FA42E107B1-l3A5Bk7waGM@public.gmane.org>
2010-09-15 9:29 ` Alexander Graf
2010-09-16 11:35 ` Liu Yu-B13201
[not found] ` <A9833F0F7901024DA08417AA5A9887D921DD39-bKEhWGtIRUJ4Lp7cDGe+DVjVikpgYyvb5NbjCUgZEJk@public.gmane.org>
2010-09-16 11:44 ` Alexander Graf
2010-09-17 8:47 ` Liu Yu-B13201
[not found] ` <A9833F0F7901024DA08417AA5A9887D921DE82-bKEhWGtIRUJ4Lp7cDGe+DVjVikpgYyvb5NbjCUgZEJk@public.gmane.org>
2010-09-17 10:19 ` Alexander Graf
2010-09-17 11:28 ` Liu Yu-B13201
[not found] ` <A9833F0F7901024DA08417AA5A9887D921DE99-bKEhWGtIRUJ4Lp7cDGe+DVjVikpgYyvb5NbjCUgZEJk@public.gmane.org>
2010-09-17 11:34 ` Alexander Graf
2010-09-17 12:33 ` Liu Yu-B13201
2010-09-17 12:34 ` Alexander Graf
[not found] ` <1283938806-2981-2-git-send-email-yu.liu-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2010-09-08 16:06 ` [PATCH 1/2] kvm/e500v2: Remove shadow tlb Hollis Blanchard
2010-09-09 11:16 ` Liu Yu-B13201
[not found] ` <A9833F0F7901024DA08417AA5A9887D91BF24A-bKEhWGtIRUJ4Lp7cDGe+DVjVikpgYyvb5NbjCUgZEJk@public.gmane.org>
2010-09-09 18:13 ` Hollis Blanchard
[not found] ` <4C8923D2.5070308-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
2010-09-09 23:26 ` Alexander Graf
[not found] ` <C1EBC75A-91B0-49D9-8AD5-571C6BAF22B7-l3A5Bk7waGM@public.gmane.org>
2010-09-09 23:39 ` Hollis Blanchard [this message]
2010-09-09 23:42 ` Alexander Graf
2010-09-08 16:07 ` [PATCH 0/2] kvm/e500v2: MMU optimization Hollis Blanchard
[not found] ` <4C87B4AB.7010009-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
2010-09-09 11:03 ` Liu Yu-B13201
[not found] ` <A9833F0F7901024DA08417AA5A9887D91BF248-bKEhWGtIRUJ4Lp7cDGe+DVjVikpgYyvb5NbjCUgZEJk@public.gmane.org>
2010-09-09 16:23 ` Hollis Blanchard
2010-09-10 2:59 ` Liu Yu-B13201
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=4C89703B.6010107@mentor.com \
--to=hollis_blanchard-nmggyn9qbj3qt0dzr+alfa@public.gmane.org \
--cc=B13201-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
--cc=agraf-l3A5Bk7waGM@public.gmane.org \
--cc=kvm-ppc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.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