]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
conf: increase default minsamples and polltarget
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 2 Dec 2016 08:15:42 +0000 (09:15 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 2 Dec 2016 13:53:03 +0000 (14:53 +0100)
Change default minsamples to 6 and polltarget to 8. This should improve
stability with extremely small jitters (e.g. HW timestamping) and not
decrease time accuracy at minimum polling interval too much.

conf.c
doc/chrony.conf.adoc
doc/faq.adoc
srcparams.h

diff --git a/conf.c b/conf.c
index d63b6830e0c0201ddaf34d9ca4045b7931831da5..384fc56bca2aec0fafff9eef0c78f99d14a11678 100644 (file)
--- a/conf.c
+++ b/conf.c
@@ -148,7 +148,7 @@ static double max_offset;
 
 /* Maximum and minimum number of samples per source */
 static int max_samples = 0; /* no limit */
-static int min_samples = 0;
+static int min_samples = 6;
 
 /* Threshold for a time adjustment to be logged to syslog */
 static double log_change_threshold = 1.0;
index d2650449a1eeeb049dfd811ddd5ebb588504ad79..4e8b9297f2115858f882333cb53e4f95b45bcc7c 100644 (file)
@@ -178,7 +178,7 @@ for this computer and be able to respond in the interleaved mode.
 Target number of measurements to use for the regression algorithm which
 *chronyd* will try to maintain by adjusting the polling interval between
 *minpoll* and *maxpoll*. A higher target makes *chronyd* prefer shorter polling
-intervals. The default is 6 and a useful range is from 6 to 60.
+intervals. The default is 8 and a useful range is from 6 to 60.
 *port* _port_:::
 This option allows the UDP port on which the server understands NTP requests to
 be specified. For normal servers this option should not be required (the
@@ -568,7 +568,7 @@ useful range is 4 to 64.
 The *minsamples* directive sets the default minimum number of samples that
 *chronyd* should keep for each source. This setting can be overridden for
 individual sources in the <<server,*server*>> and <<refclock,*refclock*>>
-directives. The default value is 0. The useful range is 4 to 64.
+directives. The default value is 6. The useful range is 4 to 64.
 
 === Source selection
 
index 41bf92e18c9b1e2e2f564e668b6e91209378ad88..35f0f38ee64a2e39f721c9ca0dd1973e4d178b7d 100644 (file)
@@ -160,7 +160,7 @@ are `minpoll`, `maxpoll`, `polltarget`, `maxdelay`, `maxdelayratio`,
 The first three options set the minimum and maximum allowed polling interval,
 and how should be the actual interval adjusted in the specified range. Their
 default values are 6 (64 seconds) for `minpoll`, 10 (1024 seconds) for
-`maxpoll` and 6 (samples) for `polltarget`. The default values should be used
+`maxpoll` and 8 (samples) for `polltarget`. The default values should be used
 for general servers on the Internet. With your own NTP servers or if have
 permission to poll some servers more frequently, setting these options for
 shorter polling intervals may significantly improve the accuracy of the system
index 6825c36ec61fff7c97c933273aa2db3caf12bdd5..bdf13a8f166f1126019c70d1e836d3255fd011eb 100644 (file)
@@ -59,7 +59,7 @@ typedef struct {
 #define SRC_DEFAULT_MAXDELAYRATIO 0.0
 #define SRC_DEFAULT_MAXDELAYDEVRATIO 10.0
 #define SRC_DEFAULT_MINSTRATUM 0
-#define SRC_DEFAULT_POLLTARGET 6
+#define SRC_DEFAULT_POLLTARGET 8
 #define SRC_DEFAULT_MAXSOURCES 4
 #define SRC_DEFAULT_MINSAMPLES (-1)
 #define SRC_DEFAULT_MAXSAMPLES (-1)