(moved to FeatureReadyForFesco, ticket #636) |
No edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 12: | Line 12: | ||
== Current status == | == Current status == | ||
* Targeted release: [[Releases/16 | Fedora 16 ]] | * Targeted release: [[Releases/16 | Fedora 16 ]] | ||
* Last updated: 2011-07- | * Last updated: 2011-07-22 | ||
* Percentage of completion: | * Percentage of completion: 100% | ||
== Detailed Description == | == Detailed Description == | ||
Chrony is an NTP client and server designed to work well without permanent | Chrony is an NTP client and server designed to work well without permanent | ||
network connection. It uses different algorithms to discipline the | network connection. It uses different algorithms to discipline the | ||
clock which gives chrony several advantages over ntp: | clock which gives chrony several advantages over ntp: | ||
* | * works well even with irregular polling of NTP servers, useful for laptops or systems without permanent network connection | ||
* much faster synchronization, it usually needs only minutes instead of hours to minimize the time and frequency error | * much faster synchronization, it usually needs only minutes instead of hours to minimize the time and frequency error, useful for systems not running 24/7 | ||
* larger range for frequency correction (100000 ppm vs 500 ppm), | * larger range for frequency correction (100000 ppm vs 500 ppm), useful for systems running in virtual machines which may have quickly drifting clocks | ||
* after the initial synchronization the clock is never stepped, this is good for applications which need system time to be monotonic | * after the initial synchronization the clock is never stepped, this is good for applications which need system time to be monotonic | ||
* better response to rapid changes in the clock frequency | * better response to rapid changes in the clock frequency, useful for systems running in virtual machines | ||
* better stability with temporary asymmetric delays, e.g. when the link is saturated by a large download | * better stability with temporary asymmetric delays, e.g. when the link is saturated by a large download | ||
Line 34: | Line 34: | ||
There are also some disadvantages: | There are also some disadvantages: | ||
* ntp may still perform better in some conditions, but the differences are quite small (see the [http://mlichvar.fedorapeople.org/clknetsim/chrony_ntp simulations]) | * ntp may still perform better in some conditions, but the differences are quite small (see the [http://mlichvar.fedorapeople.org/clknetsim/chrony_ntp simulations]) | ||
* chrony corrects the offset by the adjtime() function which means there | * chrony corrects the offset by the adjtime() function which means there may be extra short term frequency errors up to 500 ppm | ||
* advanced NTP features like Autokey authentication are not supported | * advanced NTP features like Autokey authentication are not supported | ||
Line 42: | Line 42: | ||
== Scope == | == Scope == | ||
* system-config-date needs to be patched to support both packages and remove the dependency on ntp. The supported options supported by system-config-date are identical in ntp.conf and chrony.conf, so it's just a matter of finding out which one is installed/enabled and select the correct path and service name. A patch is available ([https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=616385 bug #616385]). | * system-config-date needs to be patched to support both packages and remove the dependency on ntp. The supported options supported by system-config-date are identical in ntp.conf and chrony.conf, so it's just a matter of finding out which one is installed/enabled and select the correct path and service name. A patch is available ([https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=616385 bug #616385]). | ||
* gnome-settings-daemon needs to be patched to support enabling and disabling chrony service. A patch is available ([https://bugzilla.redhat.com/show_bug.cgi?id=723212 bug #723212]). | |||
* comps needs to be modified to install chrony by default and mark ntp as an optional package | * comps needs to be modified to install chrony by default and mark ntp as an optional package | ||
Line 53: | Line 54: | ||
system-config-date | system-config-date | ||
gnome-settings-daemon | |||
comps | comps | ||
Line 65: | Line 67: | ||
== Release Notes == | == Release Notes == | ||
* Fedora now installs chrony as the default NTP client | * Fedora now installs chrony as the default NTP client. | ||
== Comments and Discussion == | == Comments and Discussion == | ||
Line 71: | Line 73: | ||
[[Category: | [[Category:FeatureAcceptedF16]] | ||
<!-- When your feature page is completed and ready for review --> | <!-- When your feature page is completed and ready for review --> | ||
<!-- remove Category:FeaturePageIncomplete and change it to Category:FeatureReadyForWrangler --> | <!-- remove Category:FeaturePageIncomplete and change it to Category:FeatureReadyForWrangler --> | ||
<!-- After review, the feature wrangler will move your page to Category:FeatureReadyForFesco... if it still needs more work it will move back to Category:FeaturePageIncomplete--> | <!-- After review, the feature wrangler will move your page to Category:FeatureReadyForFesco... if it still needs more work it will move back to Category:FeaturePageIncomplete--> |
Latest revision as of 16:48, 22 July 2011
Chrony default NTP client
Summary
Make chrony the default NTP client.
Owner
- Name: Miroslav Lichvar
- Email: mlichvar@redhat.com
Current status
- Targeted release: Fedora 16
- Last updated: 2011-07-22
- Percentage of completion: 100%
Detailed Description
Chrony is an NTP client and server designed to work well without permanent network connection. It uses different algorithms to discipline the clock which gives chrony several advantages over ntp:
- works well even with irregular polling of NTP servers, useful for laptops or systems without permanent network connection
- much faster synchronization, it usually needs only minutes instead of hours to minimize the time and frequency error, useful for systems not running 24/7
- larger range for frequency correction (100000 ppm vs 500 ppm), useful for systems running in virtual machines which may have quickly drifting clocks
- after the initial synchronization the clock is never stepped, this is good for applications which need system time to be monotonic
- better response to rapid changes in the clock frequency, useful for systems running in virtual machines
- better stability with temporary asymmetric delays, e.g. when the link is saturated by a large download
An extensive comparison of ntp and chrony done in a simulator is here. Note that current Linux kernels are compiled with SHIFT_PLL=2.
Using chrony over ntp has also other advantages:
- smaller memory footprint (1.3MB vs 6MB resident size)
- no unnecessary process wakeups, this is good for powersaving. The ntpd process normally wakes up every second. We apply a patch which reduces the number of wakeups significantly, but upstream is not interested in fixing it (ntp bug #802).
There are also some disadvantages:
- ntp may still perform better in some conditions, but the differences are quite small (see the simulations)
- chrony corrects the offset by the adjtime() function which means there may be extra short term frequency errors up to 500 ppm
- advanced NTP features like Autokey authentication are not supported
Benefit to Fedora
Better timekeeping on systems not running 24/7 or without permanent internet connection or with low quality/unstable clocks (virtual machines). Once the clock is synchronized, applications are not upset by backward time jumps.
Scope
- system-config-date needs to be patched to support both packages and remove the dependency on ntp. The supported options supported by system-config-date are identical in ntp.conf and chrony.conf, so it's just a matter of finding out which one is installed/enabled and select the correct path and service name. A patch is available (bug #616385).
- gnome-settings-daemon needs to be patched to support enabling and disabling chrony service. A patch is available (bug #723212).
- comps needs to be modified to install chrony by default and mark ntp as an optional package
How To Test
- make fresh installation, or install chrony and uninstall ntp
- start NTP in system-config-date and let it run for few minutes
- check "chronyc tracking" output. The Reference ID field should be a valid NTP server (not 0.0.0.0), System time should be close to zero (less than few milliseconds).
- make sure it works also after reboot, suspend and reconnecting to a network.
Dependencies
system-config-date gnome-settings-daemon comps
Contingency Plan
Switching the optional/default types for the ntp and chrony packages in the comps will revert to installing ntp by default. system-config-date can still support both packages and doesn't need to depend on any of the two packages.
Documentation
Release Notes
- Fedora now installs chrony as the default NTP client.