From: Marcelo Tosatti <mtosatti@redhat.com>
To: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Cc: avi@redhat.com, agraf@suse.de, paulus@samba.org,
aarcange@redhat.com, kvm@vger.kernel.org,
kvm-ppc@vger.kernel.org, linux-kernel@vger.kernel.org,
takuya.yoshikawa@gmail.com
Subject: Re: [PATCH 0/8] KVM: Optimize MMU notifier's THP page invalidation -v4
Date: Wed, 18 Jul 2012 19:56:28 +0000 [thread overview]
Message-ID: <20120718195628.GA18071@amt.cnet> (raw)
In-Reply-To: <20120702175239.5fec56b3.yoshikawa.takuya@oss.ntt.co.jp>
On Mon, Jul 02, 2012 at 05:52:39PM +0900, Takuya Yoshikawa wrote:
> v3->v4: Resolved trace_kvm_age_page() issue -- patch 6,7
> v2->v3: Fixed intersection calculations. -- patch 3, 8
>
> Takuya
>
> Takuya Yoshikawa (8):
> KVM: MMU: Use __gfn_to_rmap() to clean up kvm_handle_hva()
> KVM: Introduce hva_to_gfn_memslot() for kvm_handle_hva()
> KVM: MMU: Make kvm_handle_hva() handle range of addresses
> KVM: Introduce kvm_unmap_hva_range() for kvm_mmu_notifier_invalidate_range_start()
> KVM: Separate rmap_pde from kvm_lpage_info->write_count
> KVM: MMU: Add memslot parameter to hva handlers
> KVM: MMU: Push trace_kvm_age_page() into kvm_age_rmapp()
> KVM: MMU: Avoid handling same rmap_pde in kvm_handle_hva_range()
>
> arch/powerpc/include/asm/kvm_host.h | 2 +
> arch/powerpc/kvm/book3s_64_mmu_hv.c | 47 ++++++++++++---
> arch/x86/include/asm/kvm_host.h | 3 +-
> arch/x86/kvm/mmu.c | 107 +++++++++++++++++++++++------------
> arch/x86/kvm/x86.c | 11 ++++
> include/linux/kvm_host.h | 8 +++
> virt/kvm/kvm_main.c | 3 +-
> 7 files changed, 131 insertions(+), 50 deletions(-)
>
>
> >From v2:
>
> The new test result was impressively good, see below, and THP page
> invalidation was more than 5 times faster on my x86 machine.
>
> Before:
> ...
> 19.852 us | __mmu_notifier_invalidate_range_start();
> 28.033 us | __mmu_notifier_invalidate_range_start();
> 19.066 us | __mmu_notifier_invalidate_range_start();
> 44.715 us | __mmu_notifier_invalidate_range_start();
> 31.613 us | __mmu_notifier_invalidate_range_start();
> 20.659 us | __mmu_notifier_invalidate_range_start();
> 19.979 us | __mmu_notifier_invalidate_range_start();
> 20.416 us | __mmu_notifier_invalidate_range_start();
> 20.632 us | __mmu_notifier_invalidate_range_start();
> 22.316 us | __mmu_notifier_invalidate_range_start();
> ...
>
> After:
> ...
> 4.089 us | __mmu_notifier_invalidate_range_start();
> 4.096 us | __mmu_notifier_invalidate_range_start();
> 3.560 us | __mmu_notifier_invalidate_range_start();
> 3.376 us | __mmu_notifier_invalidate_range_start();
> 3.772 us | __mmu_notifier_invalidate_range_start();
> 3.353 us | __mmu_notifier_invalidate_range_start();
> 3.332 us | __mmu_notifier_invalidate_range_start();
> 3.332 us | __mmu_notifier_invalidate_range_start();
> 3.332 us | __mmu_notifier_invalidate_range_start();
> 3.337 us | __mmu_notifier_invalidate_range_start();
> ...
Applied, thanks.
WARNING: multiple messages have this Message-ID (diff)
From: Marcelo Tosatti <mtosatti@redhat.com>
To: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Cc: avi@redhat.com, agraf@suse.de, paulus@samba.org,
aarcange@redhat.com, kvm@vger.kernel.org,
kvm-ppc@vger.kernel.org, linux-kernel@vger.kernel.org,
takuya.yoshikawa@gmail.com
Subject: Re: [PATCH 0/8] KVM: Optimize MMU notifier's THP page invalidation -v4
Date: Wed, 18 Jul 2012 16:56:28 -0300 [thread overview]
Message-ID: <20120718195628.GA18071@amt.cnet> (raw)
In-Reply-To: <20120702175239.5fec56b3.yoshikawa.takuya@oss.ntt.co.jp>
On Mon, Jul 02, 2012 at 05:52:39PM +0900, Takuya Yoshikawa wrote:
> v3->v4: Resolved trace_kvm_age_page() issue -- patch 6,7
> v2->v3: Fixed intersection calculations. -- patch 3, 8
>
> Takuya
>
> Takuya Yoshikawa (8):
> KVM: MMU: Use __gfn_to_rmap() to clean up kvm_handle_hva()
> KVM: Introduce hva_to_gfn_memslot() for kvm_handle_hva()
> KVM: MMU: Make kvm_handle_hva() handle range of addresses
> KVM: Introduce kvm_unmap_hva_range() for kvm_mmu_notifier_invalidate_range_start()
> KVM: Separate rmap_pde from kvm_lpage_info->write_count
> KVM: MMU: Add memslot parameter to hva handlers
> KVM: MMU: Push trace_kvm_age_page() into kvm_age_rmapp()
> KVM: MMU: Avoid handling same rmap_pde in kvm_handle_hva_range()
>
> arch/powerpc/include/asm/kvm_host.h | 2 +
> arch/powerpc/kvm/book3s_64_mmu_hv.c | 47 ++++++++++++---
> arch/x86/include/asm/kvm_host.h | 3 +-
> arch/x86/kvm/mmu.c | 107 +++++++++++++++++++++++------------
> arch/x86/kvm/x86.c | 11 ++++
> include/linux/kvm_host.h | 8 +++
> virt/kvm/kvm_main.c | 3 +-
> 7 files changed, 131 insertions(+), 50 deletions(-)
>
>
> >From v2:
>
> The new test result was impressively good, see below, and THP page
> invalidation was more than 5 times faster on my x86 machine.
>
> Before:
> ...
> 19.852 us | __mmu_notifier_invalidate_range_start();
> 28.033 us | __mmu_notifier_invalidate_range_start();
> 19.066 us | __mmu_notifier_invalidate_range_start();
> 44.715 us | __mmu_notifier_invalidate_range_start();
> 31.613 us | __mmu_notifier_invalidate_range_start();
> 20.659 us | __mmu_notifier_invalidate_range_start();
> 19.979 us | __mmu_notifier_invalidate_range_start();
> 20.416 us | __mmu_notifier_invalidate_range_start();
> 20.632 us | __mmu_notifier_invalidate_range_start();
> 22.316 us | __mmu_notifier_invalidate_range_start();
> ...
>
> After:
> ...
> 4.089 us | __mmu_notifier_invalidate_range_start();
> 4.096 us | __mmu_notifier_invalidate_range_start();
> 3.560 us | __mmu_notifier_invalidate_range_start();
> 3.376 us | __mmu_notifier_invalidate_range_start();
> 3.772 us | __mmu_notifier_invalidate_range_start();
> 3.353 us | __mmu_notifier_invalidate_range_start();
> 3.332 us | __mmu_notifier_invalidate_range_start();
> 3.332 us | __mmu_notifier_invalidate_range_start();
> 3.332 us | __mmu_notifier_invalidate_range_start();
> 3.337 us | __mmu_notifier_invalidate_range_start();
> ...
Applied, thanks.
next prev parent reply other threads:[~2012-07-18 19:56 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-02 8:52 [PATCH 0/8] KVM: Optimize MMU notifier's THP page invalidation -v4 Takuya Yoshikawa
2012-07-02 8:52 ` Takuya Yoshikawa
2012-07-02 8:53 ` [PATCH 1/8] KVM: MMU: Use __gfn_to_rmap() to clean up kvm_handle_hva() Takuya Yoshikawa
2012-07-02 8:53 ` Takuya Yoshikawa
2012-07-02 8:54 ` [PATCH 2/8] KVM: Introduce hva_to_gfn_memslot() for kvm_handle_hva() Takuya Yoshikawa
2012-07-02 8:54 ` Takuya Yoshikawa
2012-07-02 8:55 ` [PATCH 3/8] KVM: MMU: Make kvm_handle_hva() handle range of addresses Takuya Yoshikawa
2012-07-02 8:55 ` Takuya Yoshikawa
2012-07-02 8:56 ` [PATCH 4/8] KVM: Introduce kvm_unmap_hva_range() for kvm_mmu_notifier_invalidate_range_start() Takuya Yoshikawa
2012-07-02 8:56 ` Takuya Yoshikawa
2012-07-02 8:57 ` [PATCH 5/8] KVM: Separate rmap_pde from kvm_lpage_info->write_count Takuya Yoshikawa
2012-07-02 8:57 ` Takuya Yoshikawa
2012-07-02 8:57 ` [PATCH 6/8] KVM: MMU: Add memslot parameter to hva handlers Takuya Yoshikawa
2012-07-02 8:57 ` Takuya Yoshikawa
2012-07-02 8:58 ` [PATCH 7/8] KVM: MMU: Push trace_kvm_age_page() into kvm_age_rmapp() Takuya Yoshikawa
2012-07-02 8:58 ` Takuya Yoshikawa
2012-07-02 8:59 ` [PATCH 8/8] KVM: MMU: Avoid handling same rmap_pde in kvm_handle_hva_range() Takuya Yoshikawa
2012-07-02 8:59 ` Takuya Yoshikawa
2012-07-02 9:10 ` [PATCH 0/8] KVM: Optimize MMU notifier's THP page invalidation -v4 Avi Kivity
2012-07-02 9:10 ` Avi Kivity
2012-07-05 13:08 ` Marcelo Tosatti
2012-07-05 13:08 ` Marcelo Tosatti
2012-07-17 14:06 ` Takuya Yoshikawa
2012-07-17 14:06 ` Takuya Yoshikawa
2012-07-18 19:56 ` Marcelo Tosatti [this message]
2012-07-18 19:56 ` Marcelo Tosatti
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=20120718195628.GA18071@amt.cnet \
--to=mtosatti@redhat.com \
--cc=aarcange@redhat.com \
--cc=agraf@suse.de \
--cc=avi@redhat.com \
--cc=kvm-ppc@vger.kernel.org \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paulus@samba.org \
--cc=takuya.yoshikawa@gmail.com \
--cc=yoshikawa.takuya@oss.ntt.co.jp \
/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.