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

[Xen-users] Re: [Xen-devel] Domain-Virtual time

To: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Subject: [Xen-users] Re: [Xen-devel] Domain-Virtual time
From: Priya <pbhat@xxxxxxxxxxxx>
Date: Fri, 26 Feb 2010 12:20:01 -0500
Cc: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 26 Feb 2010 09:21:31 -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=MqB+xj5EZ4jTS4auOYeF0petZQu7ptuSWWqshiAGfr4=; b=KXN2g0Lw56/PS6sHqV7sMzlrdPbBMMHetk7kvCFHD3DZ8JJi7TcbYolPW2C+0ze0iC R8jQKH02UkL1Hcp00vJPLY7lgpw0MhQPNH3Yy0IoXDe444TFLfvPEXwDvVqDKOMosfCS zGw8MWEQ0LA3X8irVeBb5POmSLcMfRcGWAHiU=
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=Mz3GS6ii5V8cMHjs98OtvDXNTegEHvpWbHDlz6UlEfxGUtYvhbJR3TcOwqbKyCTWDe Bi7jFPs0dRO+GSdUXSjYNjJumvPiWnZ4umW8mwUA/o9JBRp5hHqh5/zahhw8IwWpnG6q qYmELN7rMWvsWApOZp0zz032DeSH/AUpzEhJ4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20100226170101.GV368@xxxxxxxxxxxxxxxxxxxxxxx>
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: <5c3550fe1002250803q21decea2j101c53fe390b856c@xxxxxxxxxxxxxx> <f8cbf9bc-067b-4429-b74a-669b0bb462af@default> <5c3550fe1002260846s6775ac4dsabf90bba503d7b@xxxxxxxxxxxxxx> <20100226170101.GV368@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users