comprehensive documentation of clock-related options for HVM guests
Hello list.
Despite using ntp, we're facing heavy clock skews on our HVM guests, which happen to be almost all x86_64 linux. I've been browsing the list archive, I found reference to two different xen guest configuration options:
- timer_mode
- hpet
However, I couldn't find neither reference documentation, neither on their default values.
According to this tread, the default for timer_mode was changed in some part of the source tree from 0 to 1:
http://lists.xensource.com/archives/html/xen-devel/2008-10/msg00261.html
But according to this one, there was a discussion for changing timer_mode from 0 to 2, and hpet from 0 to 1:
http://lists.xensource.com/archives/html/xen-devel/2008-06/msg00095.html
And according to XendConfig.py code (3.3.1), the default value for both of them is actually 0...
This is a bit confusing :(
Signature · 3 lines
BOFH excuse #243: The computer fleetly, mouse and all.
I agree it is confusing. There is no good default. Your best plan is to specify timer_mode=2 in the config file for hvm x86_64 linux guests.
I think the defaults in XendConfig.py are to ensure that old saved guests don't get confused by a different default.
Quoted 18 lines
-----Original Message-----
From: Guillaume Rousse [mailto:[email protected]]
Sent: Monday, February 16, 2009 3:40 AM
To: [email protected]
Subject: [Xen-devel] comprehensive documentation of clock-related options for HVM guestsHello list.
Despite using ntp, we're facing heavy clock skews on our HVM guests, which happen to be almost all
x86_64linux. I've been browsing the list
archive, I found reference to two different xen guest configuration options:
-timer_mode
- hpet
Quoted 7 lines
However, I couldn't find neither reference documentation, neither on their default values.
According to this tread, the default for
timer_modewas changed in some
part of the source tree from 0 to 1:
http://lists.xensource.com/archives/html/xen-devel/2008-10/msg
00261.html
But according to this one, there was a discussion for changing timer_mode from 0 to 2, and hpet from 0 to 1:
http://lists.xensource.com/archives/html/xen-devel/2008-06/msg00095.html
And according to XendConfig.py code (3.3.1), the default value for both of them is actually 0...
This is a bit confusing :(
Signature · 8 lines
BOFH excuse #243: The computer fleetly, mouse and all. _______________________________________________ Xen-devel mailing list [email protected] http://lists.xensource.com/xen-devel
It's also worth pointing out that NTP synchronisation in dom0 does not affect HVM guest synchronisation at all. And in general that would be very hard to do in a way that isn't fragile. The only solutions I can see here for absolute time synchronisation are a PV driver or daemon for time handling (which we do not currently have for any type of HVM guest) or perform NTP synchronisation in the guest itself (our time handling should be accurate enough for an ntp daemon to latch onto it).
-- Keir
Quoted 42 lines · Dan Magenheimer
I agree it is confusing. There is no good default. Your best plan is to specify timer_mode=2 in the config file for hvm
x86_64linux guests.I think the defaults in
XendConfig.pyare to ensure that old saved guests don't get confused by a different default.Quoted 18 lines
-----Original Message-----
From: Guillaume Rousse [mailto:[email protected]]
Sent: Monday, February 16, 2009 3:40 AM
To: [email protected]
Subject: [Xen-devel] comprehensive documentation of clock-related options for HVM guestsHello list.
Despite using ntp, we're facing heavy clock skews on our HVM guests, which happen to be almost all
x86_64linux. I've been browsing the list
archive, I found reference to two different xen guest configuration options:
-timer_mode
- hpetQuoted 7 lines
However, I couldn't find neither reference documentation, neither on their default values.
According to this tread, the default for
timer_modewas changed in some
part of the source tree from 0 to 1:
http://lists.xensource.com/archives/html/xen-devel/2008-10/msg00261.html
But according to this one, there was a discussion for changing
timer_modefrom 0 to 2, and hpet from 0 to 1:
http://lists.xensource.com/archives/html/xen-devel/2008-06/msg00095.htmlAnd according to
XendConfig.pycode (3.3.1), the default value for both of them is actually 0...This is a bit confusing :(
Quoted 7 lines · Keir Fraser
It's also worth pointing out that NTP synchronisation in dom0 does not affect HVM guest synchronisation at all. And in general that would be very hard to do in a way that isn't fragile. The only solutions I can see here for absolute time synchronisation are a PV driver or daemon for time handling (which we do not currently have for any type of HVM guest) or perform NTP synchronisation in the guest itself (our time handling should be accurate enough for an ntp daemon to latch onto it).
That's what (ntp sync in guests) we do, sorry if I wasn't clear. I've tried timer_mode=1 yesterday, it seem to have reduced the deviation to an acceptable level for every host but one. I'll try to switch to timer_mode=2 today.
Signature · 3 lines
BOFH excuse #40: not enough memory, go get system upgrade
Quoted 8 lines · Guillaume Rousse
Quoted 7 lines · Keir Fraser
It's also worth pointing out that NTP synchronisation in dom0 does not affect HVM guest synchronisation at all. And in general that would be very hard to do in a way that isn't fragile. The only solutions I can see here for absolute time synchronisation are a PV driver or daemon for time handling (which we do not currently have for any type of HVM guest) or perform NTP synchronisation in the guest itself (our time handling should be accurate enough for an ntp daemon to latch onto it).
Quoted 4 lines
That's what (ntp sync in guests) we do, sorry if I wasn't clear. I've tried timer_mode=1 yesterday, it seem to have reduced the deviation to an acceptable level for every host but one. I'll try to switch to timer_mode=2 today.
Good idea. Timer_mode=0 is in general pretty bad. 1 and 2 seem to cover most guests okay.
-- Keir