All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org
Cc: rkrcmar@redhat.com
Subject: Re: [PATCH] KVM: x86: lower default for halt_poll_ns
Date: Tue, 16 May 2017 18:58:14 +0200	[thread overview]
Message-ID: <4385bc02-2456-e8a7-a22b-cc2783ad6822@redhat.com> (raw)
In-Reply-To: <20170418104118.21719-1-pbonzini@redhat.com>



On 18/04/2017 12:41, Paolo Bonzini wrote:
> In some fio benchmarks, halt_poll_ns=400000 caused CPU utilization to
> increase heavily even in cases where the performance improvement was
> small.  In particular, bandwidth divided by CPU usage was as much as
> 60% lower.
> 
> To some extent this is the expected effect of the patch, and the
> additional CPU utilization is only visible when running the
> benchmarks.  However, halving the threshold also halves the extra
> CPU utilization (from +30-130% to +20-70%) and has no negative
> effect on performance.
> 
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Ping?

Paolo

> ---
>  arch/x86/include/asm/kvm_host.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
> index 74ef58c8ff53..68d4a33da392 100644
> --- a/arch/x86/include/asm/kvm_host.h
> +++ b/arch/x86/include/asm/kvm_host.h
> @@ -45,7 +45,7 @@
>  
>  #define KVM_PIO_PAGE_OFFSET 1
>  #define KVM_COALESCED_MMIO_PAGE_OFFSET 2
> -#define KVM_HALT_POLL_NS_DEFAULT 400000
> +#define KVM_HALT_POLL_NS_DEFAULT 200000
>  
>  #define KVM_IRQCHIP_NUM_PINS  KVM_IOAPIC_NUM_PINS
>  
> 

  reply	other threads:[~2017-05-16 16:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-18 10:41 [PATCH] KVM: x86: lower default for halt_poll_ns Paolo Bonzini
2017-05-16 16:58 ` Paolo Bonzini [this message]
2017-05-16 20:41   ` Radim Krčmář
2017-05-17  6:54     ` Paolo Bonzini

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=4385bc02-2456-e8a7-a22b-cc2783ad6822@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --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 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.