xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Joanna Rutkowska <joanna@invisiblethingslab.com>
To: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: Ian Pratt <Ian.Pratt@eu.citrix.com>,
	xen-devel@lists.xensource.com,
	Jeremy Fitzhardinge <jeremy@goop.org>
Subject: Re: A clocksource question
Date: Fri, 12 Mar 2010 01:34:40 +0100	[thread overview]
Message-ID: <4B998C20.9060803@invisiblethingslab.com> (raw)
In-Reply-To: <de82d479-fe67-422a-a3d2-2b42baf39c6c@default>


[-- Attachment #1.1: Type: text/plain, Size: 2308 bytes --]

On 03/11/2010 01:44 AM, Dan Magenheimer wrote:
>> From: Ian Pratt [mailto:Ian.Pratt@eu.citrix.com]
>> Sent: Wednesday, March 10, 2010 5:22 PM
>> To: Dan Magenheimer; Joanna Rutkowska; Jeremy Fitzhardinge
>> Cc: Ian Pratt; xen-devel@lists.xensource.com
>> 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 #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 226 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

  reply	other threads:[~2010-03-12  0:34 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-09 10:47 A clocksource question Joanna Rutkowska
2010-03-09 10:50 ` Keir Fraser
2010-03-09 10:54   ` Joanna Rutkowska
2010-03-09 11:06     ` Joanna Rutkowska
2010-03-09 12:07       ` Pasi Kärkkäinen
2010-03-09 12:10         ` Joanna Rutkowska
2010-03-09 15:42       ` Konrad Rzeszutek Wilk
2010-03-09 23:36 ` Jeremy Fitzhardinge
2010-03-10 22:13   ` Joanna Rutkowska
2010-03-11  0:07     ` Dan Magenheimer
2010-03-11  0:15       ` Joanna Rutkowska
2010-03-11  0:21       ` Ian Pratt
2010-03-11  0:44         ` Dan Magenheimer
2010-03-12  0:34           ` Joanna Rutkowska [this message]
2010-03-11  0:52         ` Joanna Rutkowska
2010-03-11  1:06           ` Jeremy Fitzhardinge
2010-03-11  1:19             ` Joanna Rutkowska
2010-03-11  4:55               ` Jeremy Fitzhardinge
2010-03-11 10:49                 ` Joanna Rutkowska
2010-03-12  0:27                 ` Joanna Rutkowska
2010-03-12  0:49                   ` Jeremy Fitzhardinge
2010-03-12  0:38                     ` Joanna Rutkowska
2010-03-12 19:02                       ` Joanna Rutkowska
2010-03-12 21:24                         ` Jeremy Fitzhardinge
2010-03-12 21:56                           ` Tobias Geiger
2010-03-12 22:02                             ` Jeremy Fitzhardinge
2010-03-12 21:01                               ` Joanna Rutkowska
2010-03-12 21:13                                 ` Joanna Rutkowska
2010-03-12 23:48                                   ` Jeremy Fitzhardinge
2010-03-13  9:58                                     ` Joanna Rutkowska
2010-03-13 19:30                                       ` Jeremy Fitzhardinge
2010-03-15  6:49                                         ` Tobias Geiger
2010-03-16  6:01                                         ` Joanna Rutkowska
2010-03-17 13:35                                           ` Tobias Geiger
2010-03-17 15:21                                             ` Joanna Rutkowska
2010-03-17 16:20                                             ` Jeremy Fitzhardinge
2010-03-17 17:05                                               ` Joanna Rutkowska
2010-03-17 17:21                                                 ` Jeremy Fitzhardinge
2010-03-17 16:26                                             ` Dan Magenheimer
2010-03-12 22:56                               ` Tobias Geiger
2010-03-11  7:47     ` Keir Fraser
  -- strict thread matches above, loose matches on Subject: below --
2010-03-12 11:42 Tobias Geiger

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=4B998C20.9060803@invisiblethingslab.com \
    --to=joanna@invisiblethingslab.com \
    --cc=Ian.Pratt@eu.citrix.com \
    --cc=dan.magenheimer@oracle.com \
    --cc=jeremy@goop.org \
    --cc=xen-devel@lists.xensource.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).