xen-devel
[Xen-users] Re: [Xen-devel] Xen 4 TSC problems
To: |
Dan Magenheimer <dan.magenheimer@xxxxxxxxxx> |
Subject: |
[Xen-users] Re: [Xen-devel] Xen 4 TSC problems |
From: |
Olivier Hanesse <olivier.hanesse@xxxxxxxxx> |
Date: |
Mon, 28 Feb 2011 16:23:07 +0100 |
Cc: |
Jeremy Fitzhardinge <jeremy@xxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, Keir Fraser <keir@xxxxxxx>, Jan Beulich <JBeulich@xxxxxxxxxx>, Keir Fraser <keir.xen@xxxxxxxxx>, Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>, Mark Adams <mark@xxxxxxxxxxxxxxxxxx> |
Delivery-date: |
Mon, 28 Feb 2011 07:24:31 -0800 |
Dkim-signature: |
v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=lMiW0KQZKT8CQEJm9ogMe1QL40EpUZsoWj1sxlxvNCM=; b=M/1qcx+FLY3rkQg4hwa6BITi4YzeDn0JToaA6UY9vK3Rma2KVUglhHiIZQuGa1W8FI eN88RKoZkz3SrtcQfCRowNseKqwjI1qiWqfMoEjcQ7wfOITdz0mg+oRWh2wA3cejRhmJ BqCwdPLBQhYaahmOu/Yj2KSWvSAjrHzj8/rzY= |
Domainkey-signature: |
a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=K5K4QM8rPg2ldj1rB7i8LikXluriBDdcahYYOY4+EPZmk1ZbsS6eTo0X9Na4T3P2GH A4AHMErOHNyxSgQb2dclrbHa+Lxcnc4I184bAVGb2m0miDKl9Jt9AtLS1gAaAeEwhZmc nn9rFbkd51mZDyxJEODupGFqWgrkmc2bggnss= |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
In-reply-to: |
<49766a9d-0e37-46d2-9497-33c2e981a871@default> |
List-help: |
<mailto:xen-users-request@lists.xensource.com?subject=help> |
List-id: |
Xen user discussion <xen-users.lists.xensource.com> |
List-post: |
<mailto:xen-users@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe> |
References: |
<68c41dd8-9195-41b0-83d7-9242b8eff809@default> <AANLkTi=NFebVsnj_09+SpCZUo_bNTnTyJLAoR5sfbwZa@xxxxxxxxxxxxxx> <49766a9d-0e37-46d2-9497-33c2e981a871@default> |
Sender: |
xen-users-bounces@xxxxxxxxxxxxxxxxxxx |
Keir :�
Yes, it is "under progress".� To make this change, I had to reboot every server, so it is taking time (production server :()
So i was hoping to find a quick method to mitigate this issue on domUs while rebooting servers.
As this bug happens once or twice per server since October, I can't say that right now that changing platform timer to PIT fixed it. I have to wait (I hope forever!) this bug to happen again on a 'patched' server ...�
But even with clcoksource=pit, I am seeing some warp=3000+ in debug message ? I guess it is not a good sign, is it ?
Jan : I was hoping to find a way to make the domU clocksource more "independent" like with xen3.2.
2011/2/28 Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Hi Olivier � �
It is the Xen clocksource that you want to try to change, not the dom0 clocksource.� To do this, you need to specify �clocksource=pit� on the Xen boot line (and reboot), not the dom0 boot line.
� I believe Mark Adams played with tsc_mode to see if it solved!
his
(similar? identical?) problem last year, and it didn�t make any difference. Please try booting Xen with �clocksource=pit� and ensure that �Platform timer is 1.19MHz PIT� appears in the Xen boot messages.� If the 50min jump does not appear again, it would point to a problem in the hpet, either hardware or software.
� Thanks, Dan
�
From: Olivier Hanesse [mailto:olivier.hanesse@xxxxxxxxx]
Sent: Monday, February 28, 2011 7:37 AM To: Jeremy Fitzhardinge Cc: Dan Magenheimer; Keir Fraser; Jan Beulich; Mark Adams; xen-devel@xxxxxxxxxxxxxxxxxxx; Xen Users; Keir Fraser
Subject: Re: [Xen-devel] Xen 4 TSC problems
� It happened again twice this
weekend. What about setting "tsc_mode=2" for my vms ? Should this mode prevent this bug (coming from a bad emulated tsc due to firmware issue ? is it possible ?) from affecting time in domUs ?
Setting clocksource=pit, make 'tsc' available in "/sys/devices/system/clocksource/clocksource0/available_clocksource" (otherwise only xen is available, is it normal ? ).�
Should I bypass xen clocksource and use tsc as a clocksource for dom0/domU ? or �will it be worsed ? � 2011/2/24 Jeremy Fitzhardinge <jeremy@xxxxxxxx>
On 02/24/2011 09:43 AM, Dan Magenheimer wrote: > Just a wild guess, but this in Olivier's posted output: > > (XEN) Platform timer appears to have unexpectedly wrapped 10 or more times.
> > and the fact that a 32-bit HPET wrap is ~300 seconds and, with the > "10 or more times", 10 * 300 seconds is 3000 seconds, might be a clue > (or a complete red herring, but I thought it worth mentioning).
> > Mark and Olivier, it would be interesting to know if you are > using the same processor/system. It definitely seems like some kind of problem on the host system rather than anything in the guests themselves. !
�If
the platform timer is misbehaving, then Xen could be completely screwing up the pvclock calibration which it then passes to guests.
Could it be one of those "platform clock stops in certain power states"
problems? � �J >> -----Original Message----- >> From: Keir Fraser [mailto: keir.xen@xxxxxxxxx]
>> Sent: Thursday, February 24, 2011 7:52 AM >> To: Olivier Hanesse; Jan Beulich >> Cc: Mark Adams; Jeremy Fitzhardinge; xen-devel@xxxxxxxxxxxxxxxxxxx; Xen
>> Users; Dan Magenheimer; Keir Fraser >> Subject: Re: [Xen-devel] Xen 4 TSC problems >> >> On 24/02/2011 14:20, "Olivier Hanesse" < olivier.hanesse@xxxxxxxxx>
>>
wrote: >> >>> Both dom0 and domUs are affected by this" jump". >>> >>> I expect to see something like "TSC marked as reliable, warp = 0". >>> I got this on newer hardware with same config/distros.
>> It depends on the CPU itself, older CPUs do not have the super-stable >> TSC >> features. But that should never cause a massive 3000s time jump. >> >>> Is there a way to measure if it is a TSC warp ? to point out a cpu
>> tsc issue ? >> >> The TSC warps or out-of-sync issues that we could reasonably expect >> would be >> on the order of microseconds. A 3000s warp is something else entirely. >> Xen
>> is very confused and/or some TSC or platform timer has jumped a long >> way >> (indicating a hardware/firmware issue). >> >> �-- Keir >> >>!
;>
2011/2/24 Jan Beulich < JBeulich@xxxxxxxxxx> >>>>>>> On 24.02.11 at 12:57, Olivier Hanesse < olivier.hanesse@xxxxxxxxx>
>> wrote: >>>>> I tried to turn off cstates with max_cstate=0 without success >> (still "not >>>>> reliable"). >>>>> >>>>> With cpuidle=0, I also got :
>>>>> >>>>> (XEN) TSC has constant rate, deep Cstates possible, so not >> reliable, >>>>> warp=3022 (count=1) >>>> This message by itself isn't telling much I believe.
>>>> >>>>> xm info | grep command >>>>> xen_commandline � � � �: dom0_mem=512M cpuidle=0 loglvl=all >> guest_loglvl=all >>>>> dom0_max_vcpus=1 dom0_vcp!
us_pin
console=vga,com1 com1=19200,8n1 >>>>> >>>>> Keir : >>>>> >>>>> Using clocksource=pit : >>>>> >>>>> (XEN) Platform timer is 1.193MHz PIT
>>>>> >>>>> I also got : >>>>> >>>>> (XEN) TSC has constant rate, deep Cstates possible, so not >> reliable, >>>>> warp=3262 (count=2)
>>>> The question is whether any of this eliminates the time jumps seen >>>> by your DomU-s (from your past mails I wasn't actually sure whether >>>> Dom0 also experienced this problem, albeit it would be odd if it
>> didn't). >>>> Jan >>>> >>>> Jan >>>> >>> >>
�
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-users] Re: [Xen-devel] Xen 4 TSC problems, (continued)
- [Xen-users] Re: [Xen-devel] Xen 4 TSC problems, Olivier Hanesse
- Re: [Xen-devel] Xen 4 TSC problems, Jan Beulich
- Re: [Xen-devel] Xen 4 TSC problems, Olivier Hanesse
- [Xen-users] Re: [Xen-devel] Xen 4 TSC problems, Keir Fraser
- [Xen-users] RE: [Xen-devel] Xen 4 TSC problems, Dan Magenheimer
- Re: [Xen-devel] Xen 4 TSC problems, Olivier Hanesse
- [Xen-users] Re: [Xen-devel] Xen 4 TSC problems, Jeremy Fitzhardinge
- [Xen-users] Re: [Xen-devel] Xen 4 TSC problems, Olivier Hanesse
- Re: [Xen-devel] Xen 4 TSC problems, Keir Fraser
- [Xen-users] RE: [Xen-devel] Xen 4 TSC problems, Dan Magenheimer
- [Xen-users] Re: [Xen-devel] Xen 4 TSC problems,
Olivier Hanesse <=
- [Xen-users] RE: [Xen-devel] Xen 4 TSC problems, Dan Magenheimer
- Re: [Xen-devel] Xen 4 TSC problems, Olivier Hanesse
- [Xen-users] Re: [Xen-devel] Xen 4 TSC problems, Keir Fraser
|
|
|