Miroslav Lichvar
7352e470e1
ntp: remove unnecessary constant
2018-08-27 17:30:47 +02:00
Miroslav Lichvar
5bc9c0d07a
sources: check maximum reach size before postponing update
...
Don't wait for other sources to be selectable when the maximum
selectable and non-selectable reachability registers happen to match
and a register is already full (e.g. after heavy packet loss).
2018-08-27 13:33:47 +02:00
Miroslav Lichvar
a2146e82ef
doc: improve description of LastRx column in chronyc sources
2018-08-27 11:26:51 +02:00
Miroslav Lichvar
6e10e6740c
test: add 130-quit test
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
bfaa10f2b0
test: add 129-reload test
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
9f167a7997
test: add 128-nocontrol test
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
6908163464
test: separate client/server chronyd options
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
671daf06b8
test: avoid using eval in shell scripts
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
b189a5386b
test: extend util unit test
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
7889d108c2
test: add samplefilt unit test
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
3cfa8ce9d3
test: add sanitizers test
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
570573fe28
test: detect configure errors in compilation test
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
62b1a11736
test: add -Werror to CFLAGS in compilation test
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
c00d517e12
doc: update description of -r option
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
001f3d5e27
sourcestats: improve debug message in SST_GetTrackingData()
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
6045023a49
sources: use SQUARE macro in combine_sources()
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
bba29a0ee7
samplefilt: check for non-increasing sample times
...
Adopt the check from the refclock code to check also samples from NTP.
2018-08-24 18:09:29 +02:00
Miroslav Lichvar
cffc856b50
test: update hwclock unit test
2018-08-21 16:54:54 +02:00
Miroslav Lichvar
419077e04b
sys_linux: extend debug message
2018-08-21 15:52:35 +02:00
Miroslav Lichvar
7db9d4acea
sys_linux: improve support for upcoming kernel versions
...
Starting with Linux 4.19, the frequency of the system clock should be
updated immediately in the system call itself, which will significantly
reduce the maximum delay of the update.
Increase the assumed tick rate in order to reduce the dispersion
accumulated by the driver when it sets the frequency.
2018-08-21 15:52:35 +02:00
Miroslav Lichvar
8d5b86efe7
test: make 121-orphan more reliable
2018-08-21 15:52:35 +02:00
Miroslav Lichvar
6cf16aea7b
reference: refactor estimation of clock frequency
...
Reorder code in REF_SetReference(), clean it up a bit, and split off the
parts specific to the weighting and estimation of the new frequency.
2018-08-21 15:52:33 +02:00
Miroslav Lichvar
870545d3cb
reference: include skew in local sync status setting
2018-08-21 12:06:57 +02:00
Miroslav Lichvar
2a030c0d0c
sourcestats: include offset SD in tracking root dispersion
2018-08-21 12:06:57 +02:00
Miroslav Lichvar
0b709ab1bc
util: introduce SQUARE macro
2018-08-21 12:06:57 +02:00
Miroslav Lichvar
a1f2f17385
reference: fix offset SD to include elapsed time
...
This should slow down corrections based on old measurements with large
estimated error in frequency.
2018-08-21 12:06:57 +02:00
Miroslav Lichvar
2240eefbd0
sources: fix combined offset SD to include elapsed time
2018-08-21 12:06:44 +02:00
Miroslav Lichvar
706d0c281a
sources: combine frequencies by variance instead of skew
...
This seems to slightly improve the stability.
2018-08-21 10:15:19 +02:00
Miroslav Lichvar
ca73e34f30
sources: provide frequency SD to reference update
2018-08-17 17:40:06 +02:00
Miroslav Lichvar
cca2ef4649
sourcestats: provide frequency SD in tracking data
2018-08-17 17:40:06 +02:00
Miroslav Lichvar
05d9edbf8f
sourcestats: replace constant with macro
2018-08-17 17:40:06 +02:00
Miroslav Lichvar
c5bdc52a59
test: don't require exit message to be on last line
...
This is useful with enabled debug output.
2018-08-17 17:39:50 +02:00
Miroslav Lichvar
74f0c0924a
ntp: change maxdelay* info messages to use option names
2018-08-13 12:17:57 +02:00
Miroslav Lichvar
05492d1d23
test: improve 101-poll test
2018-08-10 16:46:38 +02:00
Miroslav Lichvar
eea343b93f
refclock: improve error messages
2018-08-09 14:52:08 +02:00
Miroslav Lichvar
afff06c88c
ntp: add options to set minsamples/maxsamples of hwclock
2018-08-09 14:52:08 +02:00
Miroslav Lichvar
c0717a27f6
hwclock: add parameters for minimum/maximum number of samples
...
Allocate the arrays which hold the samples dynamically and limit the
number of dropped samples to not fall below the minimum.
2018-08-09 14:52:08 +02:00
Miroslav Lichvar
159bd73f76
test: add 127-filter test
2018-08-09 14:52:08 +02:00
Miroslav Lichvar
9931a9166b
cmdmon: include filter length in ADD_SERVER/ADD_PEER request
2018-08-09 14:33:48 +02:00
Miroslav Lichvar
8aa4ae027b
ntp: add assertion to get_seperation()
2018-08-09 14:33:48 +02:00
Miroslav Lichvar
dcce79fdbe
ntp: shorten minimum allowed polling interval
...
With the filter option it is useful to collect NTP measurements at
a higher rate.
2018-08-09 14:33:48 +02:00
Miroslav Lichvar
189aafde9d
ntp: add filter option
...
Add an option to use the median filter to reduce noise in measurements
before they are accumulated to sourcestats, similarly to reference
clocks. The option specifies how many samples are reduced to a single
sample.
The filter is intended to be used with very short polling intervals in
local networks where it is acceptable to generate a lot of NTP traffic.
2018-08-09 14:33:47 +02:00
Miroslav Lichvar
99e3045df4
ntp: enable auto burst with very short polling intervals
...
This fixes commit 5b75d4afef
.
2018-08-08 11:36:06 +02:00
Miroslav Lichvar
c498c21fad
refclock: split off median filter
...
Move the implementation of the median filter to a separate file to make
it useful for NTP. Replace some constants with parameters and generalize
the code to work with full NTP samples (including root dispersion/delay,
stratum, and leap).
For refclocks it should give the same results as before.
2018-08-03 17:21:02 +02:00
Miroslav Lichvar
6bef8aa0e9
use common structure for NTP samples
...
Define a structure for NTP samples and use it to pass samples from
the ntp_core and refclock code to sources and sourcestats.
2018-08-03 17:21:02 +02:00
Miroslav Lichvar
108d112272
sourcestats: don't save stratum for all samples
...
Save stratum only from the last accumulated sample as only that is
currently needed.
2018-08-03 17:21:02 +02:00
Miroslav Lichvar
05078e4252
sourcestats: track leap status
...
This moves the leap status of the last sample from the source instance
to the sourcestats instance in order to make them both accumulate the
same data.
2018-08-03 17:21:02 +02:00
Miroslav Lichvar
4ceb9e4cd0
sys_linux: allow fcntl(F_SETFL) in seccomp filter
...
This fixes commit 76bed76289
.
2018-08-03 17:21:02 +02:00
Miroslav Lichvar
a9f237a395
configure: fix detection of timepps.h on FreeBSD
...
The header requires inttypes.h to be useful.
2018-08-03 17:21:02 +02:00
Miroslav Lichvar
e7ca560c3d
configure: drop detection of stdint.h and inttypes.h
...
The current code uses macros from inttypes.h. There is no point in
detecting and selecting between stdint.h and inttypes.h as the latter is
always needed.
2018-08-03 17:21:02 +02:00