linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Denis Plotnikov <dplotnikov@virtuozzo.com>
To: Paolo Bonzini <pbonzini@redhat.com>,
	<linux-kernel@vger.kernel.org>, <kvm@vger.kernel.org>
Cc: <rkrcmar@redhat.com>, <rkagan@virtuozzo.com>
Subject: Re: [RFC PATCH v3 0/6] KVM: x86: avoid redundant REQ_EVENT
Date: Mon, 19 Dec 2016 16:05:55 +0300	[thread overview]
Message-ID: <e805e616-f840-8cb2-3133-4557c80afff9@virtuozzo.com> (raw)
In-Reply-To: <1482140838-6303-1-git-send-email-pbonzini@redhat.com>



On 19.12.2016 12:47, Paolo Bonzini wrote:
> This is the result of cleaning up the places that set REQ_EVENT unnecessarily.
> The savings on self-IPI kvm-unit-tests are:
>
>     self_ipi_sti_nop                ~300 clock cycles
>     self_ipi_sti_hlt                ~300 clock cycles
>     self_ipi_tpr                    ~400 clock cycles
>     self_ipi_tpr_sti_nop            ~700 clock cycles
>     self_ipi_tpr_sti_hlt            ~700 clock cycles
>
> which is in the 5-10% range.  Please help me comparing this series with
> "[PATCH v2] KVM: x86: avoid redundant REQ_EVENT" on the real workload!
>
> Thanks,
>
> Paolo
This new patch-set does avoid unnecessary interrupt re-injections - checked.

The test (MS Windows, sending messages between multiple windows using 
windows-specific interface),
which showed performance growth with "[PATCH v2] KVM: x86: avoid 
redundant REQ_EVENT" showed pretty much the same performance level with 
this new patch-set.
The test score difference (+2.4% to [PATCH v2]) is within the tolerance 
range(5%).

The test score on mainstream v4.9 kernel CPU Intel i5-2400, guest 
Windows Server 2012 2VCPU, 2GB:

without patch: 31510 (+/- 4%)
    with patch: 36270 (+/- 5%)

difference = (36270-31510)/31510 * 100 = +15% -- looks good!

Thanks!

>
> Paolo Bonzini (6):
>   KVM: x86: add VCPU stat for KVM_REQ_EVENT processing
>   KVM: lapic: do not set KVM_REQ_EVENT unnecessarily on EOI
>   KVM: vmx: speed up TPR below threshold vmexits
>   KVM: lapic: remove unnecessary KVM_REQ_EVENT on PPR update
>   KVM: lapic: do not set KVM_REQ_EVENT unnecessarily on PPR update
>   KVM: lapic: do not scan IRR when delivering an interrupt
>
>  arch/x86/include/asm/kvm_host.h |  1 +
>  arch/x86/kvm/lapic.c            | 58 +++++++++++++++++++++++++----------------
>  arch/x86/kvm/lapic.h            |  1 +
>  arch/x86/kvm/vmx.c              |  2 +-
>  arch/x86/kvm/x86.c              |  2 ++
>  5 files changed, 41 insertions(+), 23 deletions(-)
>

-- 
Best,
Denis

  parent reply	other threads:[~2016-12-19 13:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-19  9:47 [RFC PATCH v3 0/6] KVM: x86: avoid redundant REQ_EVENT Paolo Bonzini
2016-12-19  9:47 ` [PATCH 1/6] KVM: x86: add VCPU stat for KVM_REQ_EVENT processing Paolo Bonzini
     [not found]   ` <20161220092101.GE2081@rkaganb.sw.ru>
2016-12-20  9:32     ` Paolo Bonzini
2016-12-19  9:47 ` [PATCH 2/6] KVM: lapic: do not set KVM_REQ_EVENT unnecessarily on EOI Paolo Bonzini
2016-12-23 12:08   ` Paolo Bonzini
2016-12-19  9:47 ` [PATCH 3/6] KVM: vmx: speed up TPR below threshold vmexits Paolo Bonzini
2016-12-19  9:47 ` [PATCH 4/6] KVM: lapic: avoid unnecessary KVM_REQ_EVENT on IRR scan Paolo Bonzini
2016-12-19  9:47 ` [PATCH 5/6] KVM: lapic: do not set KVM_REQ_EVENT unnecessarily on PPR update Paolo Bonzini
2016-12-19  9:47 ` [PATCH 6/6] KVM: lapic: do not scan IRR when delivering an interrupt Paolo Bonzini
2016-12-20 17:11   ` Paolo Bonzini
2016-12-19 13:05 ` Denis Plotnikov [this message]
2016-12-19 14:30   ` [RFC PATCH v3 0/6] KVM: x86: avoid redundant REQ_EVENT Paolo Bonzini
2016-12-20 10:01     ` Roman Kagan

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=e805e616-f840-8cb2-3133-4557c80afff9@virtuozzo.com \
    --to=dplotnikov@virtuozzo.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=rkagan@virtuozzo.com \
    --cc=rkrcmar@redhat.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 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).