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-users

Re: [Xen-users] Xen time drift issues

To: Peter Booth <peter_booth@xxxxxxx>
Subject: Re: [Xen-users] Xen time drift issues
From: Priya <pbhat@xxxxxxxxxxxx>
Date: Thu, 9 Jul 2009 10:23:41 -0400
Cc: "bansal.tanuj83@xxxxxxxxx" <bansal.tanuj83@xxxxxxxxx>, Peter Booth <peter_booth@xxxxxx>, "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 09 Jul 2009 07:24:29 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=BMoO87oX+ETgF+1zMxQBv2abue7m/G63FddvlCsc9pk=; b=Oz25fZEV65nqn2buZb51dcKe3zcs/PD9vHz/jnIn4HYsyJl8NWyRin5cNvdtVYVEyA eE6qJDQSF3XniiD+AIcCGbMlE/g+sG39atFIoUp918O5ruyMPSiovbbWwjHfQjup1cSx g7d56N/8pVbyH32GDD/qF6Y9Xo2pU4DAk0pjc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=gd4dBYGbxqFfA/jmTuy0+wFbPDIPX5nDpaOVPYJ+gf16pmGdklQuoM6EkzQO51xOZ6 siDYz1qzVMSWWe/YUvXqbHw43BdZFBjD0d8QH22IRknfRAwZUuYWBltSx0ciycTlhZyL UqLZ+bBvtBO3KvRNklIDw3aSeHR+M2lxxSQN4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <A4521937-EE65-433D-A4B0-BDA5214DD470@xxxxxxx>
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: <5c3550fe0907010825k58e01be8qb4cbaa051e524d81@xxxxxxxxxxxxxx> <4a548a2f.0ebb720a.645e.ffff905d@xxxxxxxxxxxxx> <B59B2341-9AF1-41DD-982B-78BFF5597FAE@xxxxxx> <5c3550fe0907080653x364f8c1ehf6e2cdf690bae069@xxxxxxxxxxxxxx> <A4521937-EE65-433D-A4B0-BDA5214DD470@xxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi.

My tests involve recording the Time Stamp Counter (tsc) reading and
the time returned by timeofday at the beginning of a long computation
over and over again.

In the post processing stage, I divide TSC readings with the processor
frequency (obtained from /proc/cpuinfo) to get the actual (real time)
and then measure the drift between the actual and time returned by
time of day (apparent time).

My machines are PVMs.

My kernel version is vmlinuz-2.6.24-16-xen

Thanks!
Priya



On Wed, Jul 8, 2009 at 3:10 PM, Peter Booth<peter_booth@xxxxxxx> wrote:
> Priya,
>
> What test are you using to  measure  the drift?
> Are your VMs HVM or PVM?
> What kernel version is your DomUs?
>
> Do you have acpi enabled on any HVM DomUs?
>
>
> On Jul 8, 2009, at 9:53 AM, Priya wrote:
>
>> @tanuj: Thanks! I am not using NTP for syncing. The reason for that is
>> that I want to get an idea of the fidelity of the time returned by
>> domU and dom0 w.r.t. the actual real time. I expected to see a
>> difference, but what is puzzling me is that the difference increases
>> in such a linear fashion.
>>
>> @peter: As I mentioned in my previous email, the drift is ~50
>> microseconds/second on domU and slightly less on dom0
>>
>> I have been trying to find some documentation pertaining to how Xen
>> virtualizes the different hardware timers. If anyone has a link to
>> such a technical report, please send me a link.
>>
>> Thanks!
>>
>> Priya
>>
>>
>> On Wed, Jul 8, 2009 at 9:37 AM, Peter Booth<peter_booth@xxxxxx> wrote:
>>>
>>> How are you measuring this drift?
>>>
>>> Sent from my iPhone
>>>
>>> On Jul 8, 2009, at 7:59 AM, Tanuj Bansal <bansal.tanuj83@xxxxxxxxx>
>>> wrote:
>>>
>>>> Hi Priya:
>>>>
>>>> If you are using NTP, then shutdown the NTP service on all DomU and
>>>> restart
>>>> it on Dom0 only.
>>>>
>>>>
>>>>
>>>> Regards,
>>>>
>>>> Tanuj Bansal
>>>>
>>>> -----Original Message-----
>>>> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
>>>> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Priya
>>>> Sent: Wednesday, July 01, 2009 8:55 PM
>>>> To: xen-users@xxxxxxxxxxxxxxxxxxx
>>>> Subject: [Xen-users] Xen time drift issues
>>>>
>>>> Hello everyone!
>>>>
>>>> I been observing some peculiar time drift on my Xen domains (dom0 and
>>>> domUs).  The time (as returned by timeofday) on my domains drifts at
>>>> an almost steady rate from the real time ( as read from the time stamp
>>>> counter ).
>>>>
>>>> The drift is so constant that it makes me think there should be some
>>>> simple explanation for it in the way Xen keeps time.
>>>>
>>>> Some info about my set up:
>>>> guest OS: ubuntu
>>>> independent_wallclock is set to default 0 on all domains
>>>> no NTP synchronization
>>>>
>>>> The drift is around 50 microseconds / second on all the domains. Has
>>>> anyone else observed this? If anyone can point me to some
>>>> documentation that explains this behavior, that would be great!
>>>>
>>>> Good day!
>>>>
>>>> _______________________________________________
>>>> Xen-users mailing list
>>>> Xen-users@xxxxxxxxxxxxxxxxxxx
>>>> http://lists.xensource.com/xen-users
>>>>
>>>>
>>>> _______________________________________________
>>>> Xen-users mailing list
>>>> Xen-users@xxxxxxxxxxxxxxxxxxx
>>>> http://lists.xensource.com/xen-users
>>>
>>>
>>
>>
>>
>> --
>>
>> Calvin Trillin  - "Health food makes me sick." -
>> http://www.brainyquote.com/quotes/authors/c/calvin_trillin.html
>>
>> _______________________________________________
>> Xen-users mailing list
>> Xen-users@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-users
>
>
>



-- 

Jack Benny  - "I don't deserve this award, but I have arthritis and I
don't deserve that either." -
http://www.brainyquote.com/quotes/authors/j/jack_benny.html

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

<Prev in Thread] Current Thread [Next in Thread>