conf: increase default minsamples and polltarget
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.
This commit is contained in:
parent
3513484852
commit
a049c9e0f8
4 changed files with 5 additions and 5 deletions
2
conf.c
2
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;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue