WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] A clocksource question

To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Subject: Re: [Xen-devel] A clocksource question
From: Joanna Rutkowska <joanna@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 12 Mar 2010 01:34:40 +0100
Cc: Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Delivery-date: Thu, 11 Mar 2010 16:51:14 -0800
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=message-id:date:from:mime-version:to:cc:subject:references:in-reply-to:content-type; s=smtpout; bh=YhWeDXu+EXZZhZvtbHppaWg8sjc=; b=ftH0AzmuMgOwcvMxODc8iD9nswAL/3xbPjgaM66OYUmQrQcm2iaahGveQnqUv0NOlGq7j8Uxyqb4YC2d+yS/gqixuVzAC7w4zIAReiTy+Oyrt+FwvGeskBUEBF7B8VQocrj0qpLzbwvTA4ctkQmXVtb0RmtEEn3TM6Q5UbK7ooc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <de82d479-fe67-422a-a3d2-2b42baf39c6c@default>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4B962748.90609@xxxxxxxxxxxxxxxxxxxxxx> <4B96DB69.10101@xxxxxxxx> <4B981997.4030605@xxxxxxxxxxxxxxxxxxxxxx> <56cc3abf-21f6-4178-b00e-0331538080d9@default 4FA716B1526C7C4DB0375C6DADBC4EA3554D53F1B0@xxxxxxxxxxxxxxxxxxxxxxxxx> <de82d479-fe67-422a-a3d2-2b42baf39c6c@default>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Lightning/1.0b2pre Thunderbird/3.0.3
On 03/11/2010 01:44 AM, Dan Magenheimer wrote:
>> From: Ian Pratt [mailto:Ian.Pratt@xxxxxxxxxxxxx]
>> Sent: Wednesday, March 10, 2010 5:22 PM
>> To: Dan Magenheimer; Joanna Rutkowska; Jeremy Fitzhardinge
>> Cc: Ian Pratt; xen-devel@xxxxxxxxxxxxxxxxxxx
>> Subject: RE: [Xen-devel] A clocksource question
>>
>>> The TSC delta is troubling... if you hadn't said you had turned
>>> off all power management, I would have guessed a problem with
>>> C-state management.  Maybe Xen is discovering some power management
>>> capability not visible in BIOS settings?
>>
>> Xen uses the architectural C state mechanism, bypassing ACPI.
>> Use "max_cstate=0"
> 
> Yes!  The Core 2 Duo fooled me.  There are some versions
> of Core 2 Duo ("Conroe") that don't support C3-state and
> some ("Merom") that do support C3-state.  And the code
> to "recover" from C3, which I think was added before 3.4
> was released, has been observed to be very poor in its
> attempt to reset TSC after C3 to a reasonable value. I
> didn't think it was THAT poor though!  See:
> http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01414.html 
> 
> (AFAIK, this is not fixed in 4.0, though the new default
> rdtsc emulation may mask the problem by ensuring TSC always
> moves forward, even across different processors.)
> 
> So that may explain the TSC delta.  Since the pv clocksource
> algorithm is dependent in part on the hardware TSC being
> synced reasonably well by Xen, that may also explain
> other clock strangeness.
> 
> P.S. Joanna -- max_cstate=0 must be specified on the
> Xen boot line in grub.conf, not in the vm.cfg or grub.conf
> of the guest.

Dan, I tried passing this argument to Xen, of course and it didn't help.
I still think it's a Dom0-related problem rather than a hypervisor,
because when I was using xen/stable-2.6.32-based kernel for a moment,
I'm pretty sure it worked fine and I didn't have any problem with the
clocksource. On the same hypervisor, when I used xen/stable-2.6.31
kernel, the problem was present. (I had to switch back to 2.6.31
because, back then, the 2.6.32 didn't have pciback, which was important
for me; and recently I decided to downgrade to Xen 3.4.2, for its
presumed stability, and so 2.6.31 is the only option now).

joanna.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>