]> git.ipfire.org Git - thirdparty/chrony.git/log
thirdparty/chrony.git
14 years agoRevert marking offline sources as unreachable
Miroslav Lichvar [Thu, 7 Apr 2011 12:44:56 +0000 (14:44 +0200)] 
Revert marking offline sources as unreachable

14 years agoDon't crash when sources report is requested soon after start
Miroslav Lichvar [Wed, 6 Apr 2011 14:59:40 +0000 (16:59 +0200)] 
Don't crash when sources report is requested soon after start

14 years agoAdd include directive
Miroslav Lichvar [Wed, 6 Apr 2011 14:58:12 +0000 (16:58 +0200)] 
Add include directive

14 years agoAdd configure option to force retry on DNS failure
Miroslav Lichvar [Tue, 5 Apr 2011 16:14:05 +0000 (18:14 +0200)] 
Add configure option to force retry on DNS failure

This is apparently needed on system which keep nameservers specified
in /etc/resolv.conf even when there is no network connection. Should be
used with care as invalid names will be retried forever.

14 years agoDon't update empty sourcestats on clock update
Miroslav Lichvar [Tue, 5 Apr 2011 14:32:50 +0000 (16:32 +0200)] 
Don't update empty sourcestats on clock update

14 years agoFix warnings produced by latest gcc
Miroslav Lichvar [Tue, 15 Feb 2011 17:55:34 +0000 (18:55 +0100)] 
Fix warnings produced by latest gcc

14 years agoReduce Linux driver verbosity
Miroslav Lichvar [Tue, 15 Feb 2011 16:22:40 +0000 (17:22 +0100)] 
Reduce Linux driver verbosity

14 years agoDon't log error on opening driftfile
Miroslav Lichvar [Tue, 15 Feb 2011 15:56:30 +0000 (16:56 +0100)] 
Don't log error on opening driftfile

Log frequency and skew values read from the driftfile instead.

14 years agoMake starting log even in debug mode
Miroslav Lichvar [Mon, 14 Feb 2011 17:21:38 +0000 (18:21 +0100)] 
Make starting log even in debug mode

14 years agoDon't log in signal handler
Miroslav Lichvar [Mon, 14 Feb 2011 17:19:58 +0000 (18:19 +0100)] 
Don't log in signal handler

14 years agoDon't use uninitialized memory when setting RTC time
Miroslav Lichvar [Fri, 11 Feb 2011 16:54:45 +0000 (17:54 +0100)] 
Don't use uninitialized memory when setting RTC time

14 years agoUse system headers for Linux RTC support
Miroslav Lichvar [Fri, 11 Feb 2011 16:43:56 +0000 (17:43 +0100)] 
Use system headers for Linux RTC support

14 years agoFix compiler warnings in PPS configure test
Miroslav Lichvar [Fri, 11 Feb 2011 16:31:38 +0000 (17:31 +0100)] 
Fix compiler warnings in PPS configure test

14 years agoUpdate NEWS 1.25-pre1
Miroslav Lichvar [Fri, 28 Jan 2011 12:21:56 +0000 (13:21 +0100)] 
Update NEWS

14 years agoUpdate credits
Miroslav Lichvar [Fri, 28 Jan 2011 11:57:03 +0000 (12:57 +0100)] 
Update credits

14 years agoRemove CVS headers
Miroslav Lichvar [Fri, 28 Jan 2011 11:56:09 +0000 (12:56 +0100)] 
Remove CVS headers

14 years agoUpdate copyright
Miroslav Lichvar [Thu, 27 Jan 2011 12:05:26 +0000 (13:05 +0100)] 
Update copyright

14 years agoIgnore reselectdist for refclocks
Miroslav Lichvar [Tue, 25 Jan 2011 16:51:19 +0000 (17:51 +0100)] 
Ignore reselectdist for refclocks

14 years agoMake importance of stratum in source selection configurable
Miroslav Lichvar [Tue, 25 Jan 2011 16:22:00 +0000 (17:22 +0100)] 
Make importance of stratum in source selection configurable

Instead of always selecting the source with minimum stratum, add weighted
stratum to the distance when comparing selectable sources. The weight
can be configured with new stratumweight directive and can be set to
zero to ignore stratum completely, by default 1.0.

14 years agoDisable variance source test for now
Miroslav Lichvar [Mon, 24 Jan 2011 17:04:33 +0000 (18:04 +0100)] 
Disable variance source test for now

It seems it triggers even with one source alone if it's close and
accurate or polling interval is long enough. It would need to include
max_clock_error.

14 years agoAdd outlyer source status to cmdmon protocol
Miroslav Lichvar [Mon, 24 Jan 2011 16:23:34 +0000 (17:23 +0100)] 
Add outlyer source status to cmdmon protocol

This is not used yet.

14 years agoPrint sources with bad stats in client as unreachable
Miroslav Lichvar [Mon, 24 Jan 2011 16:13:28 +0000 (17:13 +0100)] 
Print sources with bad stats in client as unreachable

14 years agoSelect source with minimum distance using a scoring system
Miroslav Lichvar [Mon, 24 Jan 2011 16:09:00 +0000 (17:09 +0100)] 
Select source with minimum distance using a scoring system

Each source has a score against currently selected source which is
updated (multiplied by ratio of their distances) when one of the two
sources has a new sample. When the score reaches a limit, the source
will be selected. This should allow to slowly select the source with
minimum distance without frequent reselecting.

To avoid switching between sources with very variable distances (e.g. on
LAN or when upstream server uses a longer polling interval), sources
that are currently not selected are penalized by a fixed distance. This
can be configured with new reselectdist directive (100 microseconds by
default).

14 years agoSet status on doffset and dfreq commands
Miroslav Lichvar [Wed, 19 Jan 2011 14:29:49 +0000 (15:29 +0100)] 
Set status on doffset and dfreq commands

14 years agoReply with status invalid instead of bad length on invalid command
Miroslav Lichvar [Wed, 19 Jan 2011 13:44:10 +0000 (14:44 +0100)] 
Reply with status invalid instead of bad length on invalid command

14 years agoDon't leak descriptors to sendmail
Miroslav Lichvar [Tue, 18 Jan 2011 17:07:46 +0000 (18:07 +0100)] 
Don't leak descriptors to sendmail

14 years agoDon't forget to shift last class dispatch timevals on step
Miroslav Lichvar [Mon, 20 Dec 2010 13:12:47 +0000 (14:12 +0100)] 
Don't forget to shift last class dispatch timevals on step

14 years agoDon't send packet in last auto_offline transmit timeout
Miroslav Lichvar [Fri, 17 Dec 2010 17:05:09 +0000 (18:05 +0100)] 
Don't send packet in last auto_offline transmit timeout

14 years agoFix switching offline auto_offline source to online
Miroslav Lichvar [Fri, 17 Dec 2010 16:51:00 +0000 (17:51 +0100)] 
Fix switching offline auto_offline source to online

14 years agoEnforce timeout class separation from last dispatched timeout
Miroslav Lichvar [Fri, 17 Dec 2010 15:09:12 +0000 (16:09 +0100)] 
Enforce timeout class separation from last dispatched timeout

14 years agoUse enum for scheduler timeout classes
Miroslav Lichvar [Fri, 17 Dec 2010 14:38:23 +0000 (15:38 +0100)] 
Use enum for scheduler timeout classes

14 years agoFix crash when timeout is removed from its handler
Miroslav Lichvar [Fri, 17 Dec 2010 13:52:39 +0000 (14:52 +0100)] 
Fix crash when timeout is removed from its handler

Remove the timeout before dispatching the handler, and allow
calling SCH_RemoveTimeout() with nonexistent id.

14 years agoMake unsynchronised entry in tracking log on start
Miroslav Lichvar [Thu, 16 Dec 2010 17:51:40 +0000 (18:51 +0100)] 
Make unsynchronised entry in tracking log on start

14 years agoDelay selecting source on start
Miroslav Lichvar [Thu, 16 Dec 2010 17:27:38 +0000 (18:27 +0100)] 
Delay selecting source on start

On start, when servers are reachable and use the same polling interval,
wait for them to have the same reachability register (which corresponds
to the number of samples in sourcestats) before selecting one.

14 years agoDon't update local reference unnecessarily
Miroslav Lichvar [Thu, 16 Dec 2010 15:55:59 +0000 (16:55 +0100)] 
Don't update local reference unnecessarily

Local reference is now updated only when a new source is selected or
match_addr is equal to the selected source, match_addr 0 is no longer
treated specially.

14 years agoTrack reachability in sources module
Miroslav Lichvar [Thu, 16 Dec 2010 15:01:29 +0000 (16:01 +0100)] 
Track reachability in sources module

Add new flag to source struct to indicate when source is selectable
(packets with good headers are received) and use a reachability
register for last 8 samples instead of the reachable flag. Source
drivers now provide only reachability updates.

14 years agoApply jitter test only on NTP sources for now
Miroslav Lichvar [Thu, 16 Dec 2010 12:28:44 +0000 (13:28 +0100)] 
Apply jitter test only on NTP sources for now

With refclocks it seems to fail easily, users would have to set the delay
option appropriately.

14 years agoAllow selecting source only when last regression was successful
Miroslav Lichvar [Wed, 15 Dec 2010 16:48:30 +0000 (17:48 +0100)] 
Allow selecting source only when last regression was successful

14 years agoFix jitter test in source selection
Miroslav Lichvar [Wed, 15 Dec 2010 13:25:40 +0000 (14:25 +0100)] 
Fix jitter test in source selection

Distance should be compared to square root of variance.

14 years agoDivide regression weights by stddev instead of minimum distance
Miroslav Lichvar [Tue, 14 Dec 2010 16:00:53 +0000 (17:00 +0100)] 
Divide regression weights by stddev instead of minimum distance

This improves accuracy with large but stable network delays.

14 years agoAdd small randomness to spacing between samples for one server
Miroslav Lichvar [Thu, 9 Dec 2010 15:06:42 +0000 (16:06 +0100)] 
Add small randomness to spacing between samples for one server

14 years agoShorten initial delay and sampling separation to 0.2 seconds
Miroslav Lichvar [Thu, 9 Dec 2010 14:14:05 +0000 (15:14 +0100)] 
Shorten initial delay and sampling separation to 0.2 seconds

14 years agoFix separation of timeouts scheduled for exactly the same time
Miroslav Lichvar [Thu, 9 Dec 2010 13:34:29 +0000 (14:34 +0100)] 
Fix separation of timeouts scheduled for exactly the same time

14 years agoAdd reselect command
Miroslav Lichvar [Tue, 7 Dec 2010 15:21:24 +0000 (16:21 +0100)] 
Add reselect command

14 years agoRequire password for clients command
Miroslav Lichvar [Mon, 6 Dec 2010 14:32:06 +0000 (15:32 +0100)] 
Require password for clients command

14 years agoUpdate chronyc help text
Miroslav Lichvar [Mon, 6 Dec 2010 14:01:01 +0000 (15:01 +0100)] 
Update chronyc help text

14 years agoSlowly back off sampling rate when selected source loses connectivity
Miroslav Lichvar [Mon, 6 Dec 2010 13:53:37 +0000 (14:53 +0100)] 
Slowly back off sampling rate when selected source loses connectivity

14 years agoRequire valid_header before accumulating sample
Miroslav Lichvar [Mon, 6 Dec 2010 13:29:40 +0000 (14:29 +0100)] 
Require valid_header before accumulating sample

Split test7 into two and to accumulate the sample require that all tests
pass, except the one which checks packet stratum is not higher than ours.

Also, don't mark the source as unreachable when only test4c fails.

14 years agoFix log file names in documentation
Miroslav Lichvar [Mon, 6 Dec 2010 09:51:56 +0000 (10:51 +0100)] 
Fix log file names in documentation

14 years agoAdd maxdelaydevratio command
Miroslav Lichvar [Fri, 3 Dec 2010 17:41:35 +0000 (18:41 +0100)] 
Add maxdelaydevratio command

14 years agoAdd test for ratio of increase in delay to stddev
Miroslav Lichvar [Fri, 3 Dec 2010 17:35:33 +0000 (18:35 +0100)] 
Add test for ratio of increase in delay to stddev

Require that the ratio of the increase in delay from the minimum one in
the stats data register to the standard deviation of the offsets in the
register is less than maxdelaydevratio or the difference between
measured offset and predicted offset is larger than the increase in
delay. In the allowed delay increase is included also skew and maximum
clock frequency error.

maxdelaydevratio is 10.0 by default.

14 years agoCache minimum peer delay in sourcestats
Miroslav Lichvar [Fri, 3 Dec 2010 16:25:50 +0000 (17:25 +0100)] 
Cache minimum peer delay in sourcestats

14 years agoKeep only absolute values of peer delays in sourcestats
Miroslav Lichvar [Thu, 2 Dec 2010 15:14:03 +0000 (16:14 +0100)] 
Keep only absolute values of peer delays in sourcestats

This saves some fabs() calls.

14 years agoInclude maximum clock frequency error in our dispersion
Miroslav Lichvar [Thu, 2 Dec 2010 13:56:01 +0000 (14:56 +0100)] 
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.

14 years agoFix printing of NP and NR over 99 in sourcestats
Miroslav Lichvar [Wed, 1 Dec 2010 13:32:26 +0000 (14:32 +0100)] 
Fix printing of NP and NR over 99 in sourcestats

14 years agoUse only 3 chars from refclock driver name in default refid
Miroslav Lichvar [Tue, 30 Nov 2010 17:08:33 +0000 (18:08 +0100)] 
Use only 3 chars from refclock driver name in default refid

14 years agoAdd polltarget command
Miroslav Lichvar [Thu, 14 Oct 2010 13:08:35 +0000 (15:08 +0200)] 
Add polltarget command

14 years agoAdd logbanner directive
Miroslav Lichvar [Wed, 13 Oct 2010 15:50:22 +0000 (17:50 +0200)] 
Add logbanner directive

14 years agoBase poll adjustment on number of sourcestats samples
Miroslav Lichvar [Wed, 13 Oct 2010 14:49:28 +0000 (16:49 +0200)] 
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).

14 years agoMove default source parameters to macros
Miroslav Lichvar [Wed, 13 Oct 2010 10:58:26 +0000 (12:58 +0200)] 
Move default source parameters to macros

14 years agoAdd -m option to allow multiple commands on command line
Miroslav Lichvar [Mon, 4 Oct 2010 13:48:09 +0000 (15:48 +0200)] 
Add -m option to allow multiple commands on command line

14 years agoAdd retries and timeout commands
Miroslav Lichvar [Mon, 4 Oct 2010 13:00:07 +0000 (15:00 +0200)] 
Add retries and timeout commands

14 years agoAdjust chronyc timeout
Miroslav Lichvar [Mon, 4 Oct 2010 11:16:52 +0000 (13:16 +0200)] 
Adjust chronyc timeout

Start at 1 second and increase it exponentially with maximum number of
attempts 3.

15 years agoSupport prefer and noselect options in chronyc
Miroslav Lichvar [Thu, 26 Aug 2010 08:29:58 +0000 (10:29 +0200)] 
Support prefer and noselect options in chronyc

15 years agoMerge code for adding NTP server and peer in cmdmon
Miroslav Lichvar [Thu, 26 Aug 2010 07:35:57 +0000 (09:35 +0200)] 
Merge code for adding NTP server and peer in cmdmon

15 years agoAdd prefer and noselect options
Miroslav Lichvar [Wed, 25 Aug 2010 16:11:52 +0000 (18:11 +0200)] 
Add prefer and noselect options

15 years agoFix crash when reloading history with zero samples
Miroslav Lichvar [Wed, 25 Aug 2010 16:31:28 +0000 (18:31 +0200)] 
Fix crash when reloading history with zero samples

15 years agoFix reloading sample histories with refclocks
Miroslav Lichvar [Wed, 25 Aug 2010 16:10:35 +0000 (18:10 +0200)] 
Fix reloading sample histories with refclocks

15 years agoAdd minstratum command
Miroslav Lichvar [Wed, 25 Aug 2010 11:50:46 +0000 (13:50 +0200)] 
Add minstratum command

15 years agoDocument minstratum option
Miroslav Lichvar [Wed, 25 Aug 2010 10:52:37 +0000 (12:52 +0200)] 
Document minstratum option

15 years agoAdd minstratum option
Benny Lyne Amorsen [Tue, 24 Aug 2010 16:37:38 +0000 (18:37 +0200)] 
Add minstratum option

Stratum in received packets is raised to the configured minimum.

15 years agoAdd -n option to allow using syslog without forking
Miroslav Lichvar [Thu, 19 Aug 2010 15:19:37 +0000 (17:19 +0200)] 
Add -n option to allow using syslog without forking

15 years agoUse 5% critical region for number of runs
Miroslav Lichvar [Tue, 17 Aug 2010 15:49:16 +0000 (17:49 +0200)] 
Use 5% critical region for number of runs

This results in more samples used in regression and slightly improved
response with high jitters.

15 years agoExtend runs test
Miroslav Lichvar [Tue, 17 Aug 2010 14:40:25 +0000 (16:40 +0200)] 
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%.

15 years agoRun configure tests with LDFLAGS
Miroslav Lichvar [Tue, 17 Aug 2010 10:31:03 +0000 (12:31 +0200)] 
Run configure tests with LDFLAGS

15 years agoFix updating of best_single_sample
Miroslav Lichvar [Mon, 16 Aug 2010 14:44:49 +0000 (16:44 +0200)] 
Fix updating of best_single_sample

15 years agoDon't use timezone parameter in gettimeofday and settimeofday calls
Miroslav Lichvar [Thu, 12 Aug 2010 12:43:26 +0000 (14:43 +0200)] 
Don't use timezone parameter in gettimeofday and settimeofday calls

15 years agoReplace all CROAK calls with assert or LOG_FATAL
Miroslav Lichvar [Thu, 12 Aug 2010 12:30:05 +0000 (14:30 +0200)] 
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.

15 years agoRegenerate critical values for number of runs
Miroslav Lichvar [Wed, 11 Aug 2010 16:45:17 +0000 (18:45 +0200)] 
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.

15 years agoAssert number of points in regress functions
Miroslav Lichvar [Wed, 11 Aug 2010 16:25:32 +0000 (18:25 +0200)] 
Assert number of points in regress functions

15 years agoUpdate offset correction errors only when needed
Miroslav Lichvar [Wed, 11 Aug 2010 15:16:16 +0000 (17:16 +0200)] 
Update offset correction errors only when needed

15 years agoFix updating of nano slew offset correction error
Miroslav Lichvar [Wed, 11 Aug 2010 14:57:19 +0000 (16:57 +0200)] 
Fix updating of nano slew offset correction error

15 years agoStore sourcestats samples in circular buffer
Miroslav Lichvar [Tue, 10 Aug 2010 14:39:52 +0000 (16:39 +0200)] 
Store sourcestats samples in circular buffer

The samples now don't have to be moved when pruning the register.

15 years agoCleanup sourcestats code a bit
Miroslav Lichvar [Tue, 10 Aug 2010 13:35:17 +0000 (15:35 +0200)] 
Cleanup sourcestats code a bit

15 years agoChange length of resid buffer to MAX_POINTS
Miroslav Lichvar [Fri, 6 Aug 2010 12:51:37 +0000 (14:51 +0200)] 
Change length of resid buffer to MAX_POINTS

15 years agoRemove weights from sourcestats record
Miroslav Lichvar [Fri, 6 Aug 2010 12:39:09 +0000 (14:39 +0200)] 
Remove weights from sourcestats record

Weights are calculated before each regression call, no need to store them.

15 years agoRemove SST_DoUpdateRegression
Miroslav Lichvar [Fri, 6 Aug 2010 12:36:56 +0000 (14:36 +0200)] 
Remove SST_DoUpdateRegression

The function is not used anywhere and it requires weights to be stored
sourcestats.

15 years agoAdd nanosecond slewing to Linux driver
Miroslav Lichvar [Thu, 5 Aug 2010 17:15:45 +0000 (19:15 +0200)] 
Add nanosecond slewing to Linux driver

For offset adjustments below 10 microseconds use kernel PLL with
locked frequency and 1s time constant.

15 years agoReset adjtime offset on start
Miroslav Lichvar [Thu, 5 Aug 2010 11:27:52 +0000 (13:27 +0200)] 
Reset adjtime offset on start

15 years agoClarify some cmdmon warning messages
Miroslav Lichvar [Mon, 14 Jun 2010 07:47:07 +0000 (09:47 +0200)] 
Clarify some cmdmon warning messages

15 years agoDon't hang in our_round
Miroslav Lichvar [Mon, 7 Jun 2010 12:14:53 +0000 (14:14 +0200)] 
Don't hang in our_round

The routine could loop infinitely when rounding a large value, replace
it with our_lround.

15 years agoSet minimum allowed skew to 1e-12
Miroslav Lichvar [Wed, 26 May 2010 14:55:49 +0000 (16:55 +0200)] 
Set minimum allowed skew to 1e-12

15 years agoRead chrony.conf before checking/writing pid file
Miroslav Lichvar [Thu, 20 May 2010 14:10:51 +0000 (16:10 +0200)] 
Read chrony.conf before checking/writing pid file

This fixes the pidfile directive.

15 years agoAdd rtcsync directive
Miroslav Lichvar [Fri, 14 May 2010 12:41:11 +0000 (14:41 +0200)] 
Add rtcsync directive

The directive enables the 11 minute kernel mode. It cannot be used
when the normal RTC tracking is enabled.

15 years agoRehash NTP source table after removing source
Miroslav Lichvar [Thu, 13 May 2010 16:29:00 +0000 (18:29 +0200)] 
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.

15 years agoMake use of UTI_AdjustTimeval in slew handlers
Miroslav Lichvar [Fri, 7 May 2010 13:32:51 +0000 (15:32 +0200)] 
Make use of UTI_AdjustTimeval in slew handlers

15 years agoFix RTC slew handler
Miroslav Lichvar [Fri, 7 May 2010 13:23:21 +0000 (15:23 +0200)] 
Fix RTC slew handler

The frequency adjustment needs to be done in the opposite direction.

15 years agoDon't use AI_ADDRCONFIG hint
Miroslav Lichvar [Wed, 28 Apr 2010 17:06:28 +0000 (19:06 +0200)] 
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.

15 years agoChange online status also for unresolved sources
Miroslav Lichvar [Wed, 28 Apr 2010 14:11:24 +0000 (16:11 +0200)] 
Change online status also for unresolved sources

15 years agoRetry name resolving before marking sources online
Miroslav Lichvar [Wed, 28 Apr 2010 13:44:07 +0000 (15:44 +0200)] 
Retry name resolving before marking sources online