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] Time went backwards

To: Oliver Rojo <orojo@xxxxxxxxxxxx>
Subject: Re: [Xen-users] Time went backwards
From: Olivier LAMBERT <lambert.olivier@xxxxxxxxx>
Date: Wed, 17 Feb 2010 09:32:44 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 17 Feb 2010 00:35:12 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=waQDSBgQZkeXy8+J15eze3GRfg43EJPb2i5xuLJnKxo=; b=lgz/LNCitQWek6HcFcXycXUMHAADvLayDSpgnLnTh53QoTTnR3KGZNbXiRsTs+tZ52 DLtWwHErtcoBzkIuuUTjLIUMokn4oL28c56+uyCGEmmFxevyCeShxNFAwK9JOvrrfR9F T9My5gSLax4tOceSh2smvbLNR2vMl/Aze9Rxk=
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=tytG7OPPEddmmmgTCPBslq3M11d7up0mMfm8fHr+LEv/MN16gOw4rXLFhDV1XiF58F SXxBU5UwhBVLmxQUwp1/XKbzvmE0AXhMgbr8EsFOetEVjISRYP4lf3g+pLe8ASZnQ11h 9LvCWfLG6xNT+32qFqqHn4Gj4A1ZQESQGYKlA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20100217080506.f889d6d3@xxxxxxxxxxxxxxxxxxxx>
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: <20100217080506.f889d6d3@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Please read this :
If a domU crashes or freezes while uttering the famous lasts words
'clocksource/0: Time went backwards', your domU is likely using the
xen clocksource instead of its own clock ticks. In practice, this
seems to be the cause of infrequent lockups under load (and/or
problems with suspending). A workaround is to decouple the clock in
the domU from the dom0:

In your dom0 and domU /etc/sysctl.conf add the line:
xen.independent_wallclock=1. On the dom0, edit the configuration file
of the domU (e.g. /etc/xen/foobar.cfg and add (or expand) the
extra-line: extra="clocksource=jiffies".

These settings can be activated without rebooting the domU. After
editing the configuration files, issue sysctl -p and echo "jiffies">
/sys/devices/system/clocksource/clocksource0/current_clocksource on
the domU prompt.

Because the clock won't be relying on the dom0 clock anymore, you
probably need to use ntp on the domU to synchronize it properly to the
world.



Olivier.
XO Project
http://xen-orchestra.com

On Wed, Feb 17, 2010 at 9:05 AM, Oliver Rojo <orojo@xxxxxxxxxxxx> wrote:
> I am receiving lots of messages like these on my xen virtual machines:
>
> Feb 17 06:57:54 XXX-vm kernel: [61138.593289] __ratelimit: 138 messages 
> suppressed
> Feb 17 06:57:54 XXX-vm kernel: [61138.593289] clocksource/0: Time went 
> backwards: ret=3b05d54bddc delta=-65371689384312 shadow=3b05d288427 
> offset=2c75df
> Feb 17 06:57:54 XXX-vm kernel: [61138.593289] __ratelimit: 133 messages 
> suppressed
> Feb 17 06:57:54 XXX-vm kernel: [61138.593289] clocksource/0: Time went 
> backwards: ret=3b188b7d968 delta=-65366666501612 shadow=3b1872eab3b 
> offset=18978b8
> Feb 17 06:57:54 XXX-vm kernel: [61138.593289] __ratelimit: 97 messages 
> suppressed
> Feb 17 06:57:54 XXX-vm kernel: [61138.593289] clocksource/0: Time went 
> backwards: ret=3b2b910bbd2 delta=-65361560402818 shadow=3b2b134cf7a 
> offset=7dc452f
> Feb 17 06:57:54 XXX-vm kernel: [61138.593289] __ratelimit: 198 messages 
> suppressed
> Feb 17 06:57:54 XXX-vm kernel: [61138.593289] clocksource/0: Time went 
> backwards: ret=3b3dabe5629 delta=-65356700410155 shadow=3b39fa01ee9 
> offset=3b1e7453
> Feb 17 06:57:54 XXX-vm kernel: [61138.593290] __ratelimit: 425 messages 
> suppressed
> Feb 17 06:57:54 XXX-vm kernel: [61138.593290] clocksource/0: Time went 
> backwards: ret=3b505b86c49 delta=-65351684410123 shadow=3b505410ae9 
> offset=77a3ab
>
> What do these messages indicate? Did I missed something on my setup?
>
> Oliver
>
> _______________________________________________
> 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

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