kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Zachary Amsden <zamsden@redhat.com>
To: Glauber Costa <glommer@redhat.com>
Cc: kvm <kvm@vger.kernel.org>, Avi Kivity <avi@redhat.com>,
	Marcelo Tosatti <mtosatti@redhat.com>
Subject: Re: RFC: kvmclock / tsc server side fix
Date: Mon, 17 May 2010 09:38:30 -1000	[thread overview]
Message-ID: <4BF19B36.7030100@redhat.com> (raw)
In-Reply-To: <20100517153637.GD2893@mothafucka.localdomain>

On 05/17/2010 05:36 AM, Glauber Costa wrote:
> On Fri, May 14, 2010 at 04:07:43PM -1000, Zachary Amsden wrote:
>    
>> I believe this fixes the root cause of the kvmclock warp.  It's
>> quite a plausible phenomenon, and explains why it was so easy to
>> produce.
>>
>>      
> You mean this is the case for both SMP and UP, or just UP as we talked
> before?
>    

It's possible on both SMP and UP, guest and host.  It is impossible on 
UP host unless special circumstances come into play (one of my patches 
created these circumstances).

> I don't get the role of upscale in your patch. Frequency changes are
> already handled by the cpufreq notifier.
>    

The only purpose of upscale is to downscale the measurement of delta 
used for counting stats if CPU frequency was raised since last 
observed.  This is because moving to a faster TSC rate means we might 
have counted some cycles at the wrong rate while the rate was in 
transition.  It doesn't much matter, as the delta for which "overrun" is 
logged was computed wrong anyway.

I'll clean up my patches and resend as a series today.

Zach

  reply	other threads:[~2010-05-17 19:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-15  2:07 RFC: kvmclock / tsc server side fix Zachary Amsden
2010-05-17 15:36 ` Glauber Costa
2010-05-17 19:38   ` Zachary Amsden [this message]
2010-05-18 14:08     ` Glauber Costa
2010-05-18 15:00       ` Zachary Amsden

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=4BF19B36.7030100@redhat.com \
    --to=zamsden@redhat.com \
    --cc=avi@redhat.com \
    --cc=glommer@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@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).