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: Tue, 18 May 2010 05:00:34 -1000 [thread overview]
Message-ID: <4BF2AB92.70907@redhat.com> (raw)
In-Reply-To: <20100518140829.GA30739@mothafucka.localdomain>
On 05/18/2010 04:08 AM, Glauber Costa wrote:
> On Mon, May 17, 2010 at 09:38:30AM -1000, Zachary Amsden wrote:
>
>> 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.
>>
> mind sending the stats part in a separate patch?
>
Yeah, part of this was badly broken.
>
>> I'll clean up my patches and resend as a series today.
>>
>> Zach
>>
Or today. Nasty bug.
prev parent reply other threads:[~2010-05-18 15:00 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
2010-05-18 14:08 ` Glauber Costa
2010-05-18 15:00 ` Zachary Amsden [this message]
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=4BF2AB92.70907@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).