public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: yunhong jiang <yunhong.jiang@linux.intel.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org, mtosatti@redhat.com, rkrcmar@redhat.com,
	kernellwp@gmail.com, David Matlack <dmatlack@google.com>
Subject: Re: [RFC PATCH V3 0/5] Utilizing VMX preemption for timer virtualization
Date: Mon, 6 Jun 2016 11:26:10 -0700	[thread overview]
Message-ID: <20160606112610.7dcc94cd@jnakajim-build> (raw)
In-Reply-To: <d78adeda-9929-31fa-9baa-8316f1f3e4e4@redhat.com>

On Mon, 6 Jun 2016 14:45:37 +0200
Paolo Bonzini <pbonzini@redhat.com> wrote:

> 
> 
> On 04/06/2016 02:42, Yunhong Jiang wrote:
> > It adds a little bit latency for each VM-entry because we need
> > setup the preemption timer each time.
> 
> Really it doesn't according to your tests:
> 
> > 1. enable_hv_timer=Y.
> > 
> > 000004 002174
> > 000005 042961
> > 000006 479383
> > 000007 071123
> > 000008 003720
> > 
> > 2. enable_hv_timer=N.
> > 
> > # Histogram
> > ......
> > 000005 000042
> > 000006 000772
> > 000007 008262
> > 000008 200759
> > 000009 381126
> > 000010 008056
> 
> So perhaps you can replace that paragraph with "The benefits offset
> the small extra work to do on each VM-entry to setup the preemption
> timer".
> 
> I'll play with this patch and kvm-unit-tests in the next few days.
> 
> David, it would be great if you could also try this on your
> message-passing benchmarks (e.g. TCP_RR).  On one hand they are heavy
> on vmexits, on the other hand they also have many expensive TSC
> deadline WRMSRs.  I have requested a few small changes, but I am very
> happy with the logic and the vmentry cost.
> 
> Thanks,

Paolo, thanks for the feedback a lot. I will get a system with TSC scaling and
try there, and then will update the patch accordingly.

Thanks
--jyh

> 
> Paolo


  reply	other threads:[~2016-06-06 18:30 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-04  0:42 [RFC PATCH V3 0/5] Utilizing VMX preemption for timer virtualization Yunhong Jiang
2016-06-04  0:42 ` [RFC PATCH V3 1/5] Rename the vmx_pre/post_block to pi_pre/post_block Yunhong Jiang
2016-06-04  0:42 ` [RFC PATCH V3 2/5] Add function for left shift and 64 bit division Yunhong Jiang
2016-06-06 12:37   ` Paolo Bonzini
2016-06-04  0:42 ` [RFC PATCH V3 3/5] Utilize the vmx preemption timer Yunhong Jiang
2016-06-06 12:37   ` Paolo Bonzini
2016-06-04  0:42 ` [RFC PATCH V3 4/5] Separate the start_sw_tscdeadline Yunhong Jiang
2016-06-04  0:42 ` [RFC PATCH V3 5/5] Utilize the vmx preemption timer for tsc deadline timer Yunhong Jiang
2016-06-06 12:36   ` Paolo Bonzini
2016-06-06 12:45 ` [RFC PATCH V3 0/5] Utilizing VMX preemption for timer virtualization Paolo Bonzini
2016-06-06 18:26   ` yunhong jiang [this message]
2016-06-07 16:31   ` David Matlack
2016-06-07 19:30   ` David Matlack
2016-06-08  4:18 ` Wanpeng Li
2016-06-13 20:56   ` yunhong jiang

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=20160606112610.7dcc94cd@jnakajim-build \
    --to=yunhong.jiang@linux.intel.com \
    --cc=dmatlack@google.com \
    --cc=kernellwp@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.com \
    --cc=pbonzini@redhat.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