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

[Xen-devel] System time monotonicity

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] System time monotonicity
From: John Levon <levon@xxxxxxxxxxxxxxxxx>
Date: Mon, 26 Mar 2007 19:23:23 +0100
Delivery-date: Mon, 26 Mar 2007 11:19:26 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
It seems that VCPU system time isn't monotonic (using 3.0.4). It seems
it might be correlated to when a VCPU is switched across real CPUs but I
haven't conclusively proved that. But e.g.:

    {
        old = {
            time = {
                version = 0x4ec
                pad0 = 0xe8e0
                tsc_timestamp = 0x22cc8398b7194
                system_time = 0xe8e0345d8805
                tsc_to_system_mul = 0xd62c0083
                tsc_shift = '\377'
                pad1 = [ '\002', '\027', '\365' ]
            }
            result = 0xe8e0484568fa
            tsc = 0x22cc86921ab00
            cpu = 0
        }
        new = {
            time = {
                version = 0x4ee
                pad0 = 0
                tsc_timestamp = 0x22cc7db96cd29
                system_time = 0xe8e00d1031f3
                tsc_to_system_mul = 0xd62ae844
                tsc_shift = '\377'
                pad1 = [ '\357', '\002', '\365' ]
            }
            result = 0xe8e048456012
            tsc = 0x22cc869225443
            cpu = 0
        }
        delta = 0xfffffffffffff718
    }

>From what I can work out, time is supposed to be monotonic but I admit I
can't really understand the time code yet at least. I couldn't find any
documentation on what to expect from system time. Any suggestions?

This seems to happen across all the hardware we've tried but this
particular case is a Sun V20Z with two CPUs:

  x86 (AuthenticAMD family 15 model 5 step 10 clock 2392 MHz)
        AMD Opteron(tm) Processor 250

cheers,
john

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