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] Domain-Virtual time

To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Subject: Re: [Xen-devel] Domain-Virtual time
From: Priya <pbhat@xxxxxxxxxxxx>
Date: Fri, 26 Feb 2010 13:52:50 -0500
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Tim Deegan <Tim.Deegan@xxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 26 Feb 2010 10:53:48 -0800
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; bh=BrP6E4j+f+ct81Aqa7yhKwO+13lFGabtmJsDLK0tKrU=; b=i/L/+/T1r73MSKsKjbWj1i4P6c7rEqCzxmkt9ADMq8FvCH8pkTGYozBSSu8RsrNsxr 5uWkXw37JfV3AbvgrlDuZes1WJ8wDreTh8VmLU2LMeLsNNWshFZcH22Y8vHgSEnvUTFA NoTZxqFp4zDt2BdWLJCguK1ebVJ1muu3LXMFI=
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; b=bxs7n1sdb6wbN6TnZwR0Dojv4cLo6OS61VQspoeEvZmb+t6NvIRBF56DsIBPvhUj5J sR5l6BZbLVRERtQmsOnU89FXUO0LMQ8FVtJKraQC3GD5EegDJKKz64Cm9dAkj0z2FX1n w1mXDH5rga6rJ7JPXTQXOmk59F5yKFGAazpzs=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <cde9ddaa-5a86-4d68-9ec9-d2cc56cc5f6d@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: <5c3550fe1002250803q21decea2j101c53fe390b856c@xxxxxxxxxxxxxx> <f8cbf9bc-067b-4429-b74a-669b0bb462af@default> <5c3550fe1002260846s6775ac4dsabf90bba503d7b@xxxxxxxxxxxxxx> <5c3550fe1002260920n77c43e2cmbfd6ccc29be527c9@xxxxxxxxxxxxxx> <cde9ddaa-5a86-4d68-9ec9-d2cc56cc5f6d@default>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thanks guys ! I am really grateful !

On Fri, Feb 26, 2010 at 12:46 PM, Dan Magenheimer <dan.magenheimer@xxxxxxxxxx> wrote:
The timer_mode=X can be set in the "VM configuration" file
in which you specify things like the disk, memory, etc.

Setting the Xen time source on your machine is done by
adding clocksource=xxxxx to your Xen boot line, but unless
your system has one broken clocksource and another is fine,
this is rarely the source of extreme drift in an HVM.
(And, by the way, doing something like enabling HPET in
your BIOS may cause Xen to choose a different clocksource.
Xen tries to choose what it deems to be the best, and
the clocksource= is just a manual override.)

There are similar Linux kernel parameters that must
be specified within the boot-time grub file for the HVM.
These parameters vary from release to release (and
between 32-bit and 64-bit).  Many more recent kernels
allow you to change the clocksource dynamically
using a sysfs file.

Be aware that in some cases, a misspelled option name
or one that works fine on one version but not on the
currently booting Xen/kernel, may be completely and silently
ignored.

And finally, time has been a moving target on Xen,
Linux, VMware, etc, so problems that appear in older
versions may have been resolved in later versions.
ANY time you post questions/problems regarding time
(or for that matter even non-time-related problems),
it is best to describe what version of Xen and kernels
you are using.

======

From: Priya [mailto:pbhat@xxxxxxxxxxxx]
Sent: Friday, February 26, 2010 10:20 AM
To: Tim Deegan
Cc: Dan Magenheimer; xen-devel@xxxxxxxxxxxxxxxxxxx; xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Domain-Virtual time

Thanks Tim!

I have some follow-up questions:
1. How can I check/change the timer_mode on a XenServer HVM and on a Xen HVM?
2. How can I check/change the time-source on my machines?
3. No; they are showing system time modified according to the timer_mode
setting, then extrapolated into a collection of virtual timers and
reconstituted by the linux kernel.
Can you please elaborate a little bit. Or please point me to a reference.
Thanks again !
Pr


On Fri, Feb 26, 2010 at 12:01 PM, Tim Deegan <Tim.Deegan@xxxxxxxxxx> wrote:
Hi,

At 16:46 +0000 on 26 Feb (1267202798), Priya wrote:
> The funny thing is that NTP is measuring a very different drift on my
> three machines (-189.206, -108.373 and -71.321 parts per million). The
> drift reported on Domain-0 is -11.393. So I don't think my machines
> are showing the system time.
No; they are showing system time modified according to the timer_mode
setting, then extrapolated into a collection of virtual timers and
reconstituted by the linux kernel.

I don't know a lot about linux HVM because I always run Linux with PV
kernels, but on Windows I've found that the (virtual) ACPI PM timer is a
better time-source than the HPET or RTC.

> In addition, the negative sign on the drift means that my machines are
> running faster that the real time, which is again puzzling.
Xen system time generally does drift forward, IIRC that's because xen
always tends to catch up to the fastest CPU, so cross-CPU jitter turns
into forward drift.  Linux may be doing the same thing inside the HVM
VM, where the jitter is higher.

Tim.

--
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, XenServer Engineering
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)


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