Miroslav Lichvar
cc3a8918f0
Include maximum clock frequency error in our dispersion
...
Add maxclockerror directive to set the stability of the clock (10 ppm by
default) and include it in our dispersion.
2010-12-03 13:15:14 +01:00
Miroslav Lichvar
63ef2badd6
Fix printing of NP and NR over 99 in sourcestats
2010-12-01 14:32:26 +01:00
Miroslav Lichvar
e98080b8bb
Use only 3 chars from refclock driver name in default refid
2010-11-30 18:18:28 +01:00
Miroslav Lichvar
bed5b72cbe
Add polltarget command
2010-10-14 15:08:35 +02:00
Miroslav Lichvar
7ab2c0e4a5
Add logbanner directive
2010-10-13 17:50:22 +02:00
Miroslav Lichvar
7a6ee1d729
Base poll adjustment on number of sourcestats samples
...
Instead of following skew changes, adjust polling interval so that the
number of measurements used in the regression algorithm remains close to
a target value. It can be configured with a new polltarget option
(6 by default).
2010-10-13 16:49:28 +02:00
Miroslav Lichvar
d9596334c3
Move default source parameters to macros
2010-10-13 12:58:26 +02:00
Miroslav Lichvar
16676ae726
Add -m option to allow multiple commands on command line
2010-10-04 15:53:35 +02:00
Miroslav Lichvar
fd3702f973
Add retries and timeout commands
2010-10-04 15:00:07 +02:00
Miroslav Lichvar
d674d23b45
Adjust chronyc timeout
...
Start at 1 second and increase it exponentially with maximum number of
attempts 3.
2010-10-04 13:16:52 +02:00
Miroslav Lichvar
5b8835f46b
Support prefer and noselect options in chronyc
2010-08-26 10:29:58 +02:00
Miroslav Lichvar
ddb2cf3b8b
Merge code for adding NTP server and peer in cmdmon
2010-08-26 09:35:57 +02:00
Miroslav Lichvar
f924862e89
Add prefer and noselect options
2010-08-25 18:32:40 +02:00
Miroslav Lichvar
061d497df0
Fix crash when reloading history with zero samples
2010-08-25 18:32:40 +02:00
Miroslav Lichvar
3a222336d7
Fix reloading sample histories with refclocks
2010-08-25 18:10:35 +02:00
Miroslav Lichvar
78300d018a
Add minstratum command
2010-08-25 17:43:17 +02:00
Miroslav Lichvar
e95676f65f
Document minstratum option
2010-08-25 17:43:15 +02:00
Benny Lyne Amorsen
c8fe69c956
Add minstratum option
...
Stratum in received packets is raised to the configured minimum.
2010-08-25 12:46:14 +02:00
Miroslav Lichvar
fe4b661fe7
Add -n option to allow using syslog without forking
2010-08-19 17:21:11 +02:00
Miroslav Lichvar
5344028c40
Use 5% critical region for number of runs
...
This results in more samples used in regression and slightly improved
response with high jitters.
2010-08-17 17:52:19 +02:00
Miroslav Lichvar
e591e3622b
Extend runs test
...
Double the number of samples that are used in the runs test. E.g. with 64
samples in regression the runs test will be tried over the 64 samples and
up to 64 previous samples. The minimum number of samples in now 4.
This improves the response with low-mid jitters by about 50%.
2010-08-17 16:40:25 +02:00
Miroslav Lichvar
d8fc5fee0a
Run configure tests with LDFLAGS
2010-08-17 12:31:03 +02:00
Miroslav Lichvar
eeb73b3670
Fix updating of best_single_sample
2010-08-16 16:44:49 +02:00
Miroslav Lichvar
2f2e524bc6
Don't use timezone parameter in gettimeofday and settimeofday calls
2010-08-12 14:43:26 +02:00
Miroslav Lichvar
6b0198c2d7
Replace all CROAK calls with assert or LOG_FATAL
...
Remove croak() and use assert() or LOG_FATAL() everywhere. Hopefully
the problems with debugging mentioned in the croak() comment are long gone.
2010-08-12 14:30:05 +02:00
Miroslav Lichvar
2a64b75893
Regenerate critical values for number of runs
...
Generate more values to allow regression with 128 samples. Possibly a
different approach was used to generate the values, or the previous table
was actually using 11% critical region and had an extra value in the
12th place.
2010-08-11 18:50:23 +02:00
Miroslav Lichvar
034e172033
Assert number of points in regress functions
2010-08-11 18:25:32 +02:00
Miroslav Lichvar
1faeb45063
Update offset correction errors only when needed
2010-08-11 17:16:16 +02:00
Miroslav Lichvar
fa84496423
Fix updating of nano slew offset correction error
2010-08-11 16:57:19 +02:00
Miroslav Lichvar
a3d47ffc81
Store sourcestats samples in circular buffer
...
The samples now don't have to be moved when pruning the register.
2010-08-10 16:39:52 +02:00
Miroslav Lichvar
d841c86a6e
Cleanup sourcestats code a bit
2010-08-10 15:35:17 +02:00
Miroslav Lichvar
3b4e4b785d
Change length of resid buffer to MAX_POINTS
2010-08-06 14:51:37 +02:00
Miroslav Lichvar
7ba6b617a1
Remove weights from sourcestats record
...
Weights are calculated before each regression call, no need to store them.
2010-08-06 14:39:09 +02:00
Miroslav Lichvar
100f732e20
Remove SST_DoUpdateRegression
...
The function is not used anywhere and it requires weights to be stored
sourcestats.
2010-08-06 14:36:56 +02:00
Miroslav Lichvar
cb28aeeacc
Add nanosecond slewing to Linux driver
...
For offset adjustments below 10 microseconds use kernel PLL with
locked frequency and 1s time constant.
2010-08-06 11:50:35 +02:00
Miroslav Lichvar
7994b31de4
Reset adjtime offset on start
2010-08-05 13:27:52 +02:00
Miroslav Lichvar
6dcf3238f6
Clarify some cmdmon warning messages
2010-06-14 09:47:07 +02:00
Miroslav Lichvar
f6320e7050
Don't hang in our_round
...
The routine could loop infinitely when rounding a large value, replace
it with our_lround.
2010-06-07 14:19:58 +02:00
Miroslav Lichvar
597bb80d18
Set minimum allowed skew to 1e-12
2010-05-26 16:55:49 +02:00
Miroslav Lichvar
9775f3a030
Read chrony.conf before checking/writing pid file
...
This fixes the pidfile directive.
2010-05-20 16:10:51 +02:00
Miroslav Lichvar
a080d00352
Add rtcsync directive
...
The directive enables the 11 minute kernel mode. It cannot be used
when the normal RTC tracking is enabled.
2010-05-14 14:41:11 +02:00
Miroslav Lichvar
5fb0a9d53b
Rehash NTP source table after removing source
...
This is needed to avoid breaking a probe sequence and losing another
source. It is costly, but it's not expected to happen frequently.
2010-05-13 18:29:00 +02:00
Miroslav Lichvar
40d82675bd
Make use of UTI_AdjustTimeval in slew handlers
2010-05-07 18:52:05 +02:00
Miroslav Lichvar
f851e1f90e
Fix RTC slew handler
...
The frequency adjustment needs to be done in the opposite direction.
2010-05-07 18:51:35 +02:00
Miroslav Lichvar
73d775c8b4
Don't use AI_ADDRCONFIG hint
...
We want to get IPv4/6 addresses even if the local system currently has
no IPv4/6 address configured.
2010-04-28 19:15:35 +02:00
Miroslav Lichvar
97f3e9404a
Change online status also for unresolved sources
2010-04-28 17:18:03 +02:00
Miroslav Lichvar
83da131e99
Retry name resolving before marking sources online
2010-04-28 15:45:05 +02:00
Miroslav Lichvar
7973aef7b7
Don't log network is unreachable errors
2010-04-27 15:56:48 +02:00
Miroslav Lichvar
9a3bdcc20b
Fix name resolving when IPv6 support is disabled
2010-04-27 14:35:28 +02:00
Miroslav Lichvar
aa91c608f4
Add delayed name resolving for servers and peers
...
Resolving is retried in increasing intervals (maximum is one hour)
until it succeeds or fails with a non-temporary error.
Unresolved sources are included in the activity report as offline
sources and the online command can be used to retry it immediately.
This could be improved by resolving in a separate thread/process
to avoid blocking.
2010-04-27 14:35:28 +02:00