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] clocksource/0: Time went backwards

To: Bart Verwilst <lists@xxxxxxxxxxx>
Subject: Re: [Xen-users] clocksource/0: Time went backwards
From: Bart Verwilst <lists@xxxxxxxxxxx>
Date: Sat, 13 Oct 2007 14:12:14 +0200 (CEST)
Cc: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>, Xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 13 Oct 2007 05:13:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1132020884.121192110928262.JavaMail.root@xxxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
In the meantime i switched back to the normal clocksource.

But i just might have found the something interesting..
This morning, i wanted to check my mails ( which run in a domU ). I noticed i 
couldn't get to it, "Unable to connect", as usual.. But i had cacti open, which 
could read snmp from the server just fine.
I logged in through SSH, and noticed that the date was set to "Fri Dec 22 
22:49:54 CET 2226", and not going forward anymore. The clock had stopped.

In the meantime, /var/log/messages was spewing messages like this:

[134918.952935] clocksource/0: Time went backwards: delta=-6917269600674797899 
shadow=134918109266738 offset=843667158
[134923.954592] printk: 1157408 messages suppressed.
[134923.954606] clocksource/0: Time went backwards: delta=-6917269595673126078 
shadow=134923109294656 offset=845310074
[134928.952308] printk: 1154382 messages suppressed.
[134928.952323] clocksource/0: Time went backwards: delta=-6917269590675409336 
shadow=134928109321066 offset=842999953

I decided to change something to see if it works, so i did:
cat /sys/devices/system/clocksource/clocksource0/current_clocksource, which 
showed "xen" as usual.
I then did
echo "jiffies" > 
/sys/devices/system/clocksource/clocksource0/current_clocksource, which 
instantly made my clock run again, and stalled programs revived. I saw my 
webmail ( which was still hanging all the time ) spring to life, along with my 
previously entered reboot command..

Does this narrow down the search to the solution?

Kind regards,

Bart


----- Original Message -----
From: "Bart Verwilst" <lists@xxxxxxxxxxx>
To: "Samuel Thibault" <samuel.thibault@xxxxxxxxxxxx>
Cc: Xen-users@xxxxxxxxxxxxxxxxxxx
Sent: Thursday, October 11, 2007 3:55:28 PM (GMT+0100) Europe/Berlin
Subject: Re: [Xen-users] clocksource/0: Time went backwards

Another thing i just tried is this:

# cat /sys/devices/system/clocksource/clocksource0/current_clocksource
xen 
# cat /sys/devices/system/clocksource/clocksource0/available_clocksource 
xen jiffies 
# echo jiffies > 
/sys/devices/system/clocksource/clocksource0/current_clocksource

In dmesg:

[57990.836097] Time: jiffies clocksource has been installed.

Do you think this might work? Will it break something else? Is this a good idea?

Thanks!

Bart Verwilst

----- Original Message -----
From: "Samuel Thibault" <samuel.thibault@xxxxxxxxxxxx>
To: "Bart Verwilst" <lists@xxxxxxxxxxx>
Cc: Xen-users@xxxxxxxxxxxxxxxxxxx
Sent: Thursday, October 11, 2007 3:19:37 PM (GMT+0100) Europe/Berlin
Subject: Re: [Xen-users] clocksource/0: Time went backwards

Bart Verwilst, le Thu 11 Oct 2007 15:12:19 +0200, a écrit :
> Oh.. i was hoping for some simple sysctl tweak or easy patch :)
> Bummer :(

Oh, actually, the problem you're getting might be related to CPU
frequency changes, try to disable that as well.

Samuel


_______________________________________________
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