]> git.ipfire.org Git - thirdparty/chrony.git/log
thirdparty/chrony.git
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

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

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

15 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).

15 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

15 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

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

15 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

15 years agoDon't log network is unreachable errors
Miroslav Lichvar [Tue, 27 Apr 2010 13:56:48 +0000 (15:56 +0200)] 
Don't log network is unreachable errors

15 years agoFix name resolving when IPv6 support is disabled
Miroslav Lichvar [Tue, 27 Apr 2010 11:47:40 +0000 (13:47 +0200)] 
Fix name resolving when IPv6 support is disabled

15 years agoAdd delayed name resolving for servers and peers
Miroslav Lichvar [Mon, 26 Apr 2010 15:38:09 +0000 (17:38 +0200)] 
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.

15 years agoDon't retry resolving in DNS_Name2IPAddress
Miroslav Lichvar [Mon, 26 Apr 2010 14:05:56 +0000 (16:05 +0200)] 
Don't retry resolving in DNS_Name2IPAddress

Instead of retrying to resolve it in the function and blocking for a
long time, return a TryAgain status and let the caller retry it later if
necessary.

15 years agoMerge NSR/NCR server and peer functions
Miroslav Lichvar [Mon, 26 Apr 2010 13:04:00 +0000 (15:04 +0200)] 
Merge NSR/NCR server and peer functions

15 years agoSet maxupdateskew to 1000 ppm by default
Miroslav Lichvar [Fri, 23 Apr 2010 10:53:26 +0000 (12:53 +0200)] 
Set maxupdateskew to 1000 ppm by default

This will prevent from using unreliable frequency estimate on iburst
when starting without drift file.

15 years agoAdd iburst server option
Miroslav Lichvar [Fri, 23 Apr 2010 10:40:50 +0000 (12:40 +0200)] 
Add iburst server option

15 years agoClamp tick value before calling adjtimex
Miroslav Lichvar [Wed, 21 Apr 2010 15:30:35 +0000 (17:30 +0200)] 
Clamp tick value before calling adjtimex

If tick is outside allowed adjtimex range, clamp it and log a warning
instead of aborting.

15 years agoReturn actual frequency in drv_set_freq functions
Miroslav Lichvar [Tue, 20 Apr 2010 16:29:39 +0000 (18:29 +0200)] 
Return actual frequency in drv_set_freq functions

This is needed to keep sourcestats accurate when the actual frequency is
different from the requested frequency due to clamping (or possibly
rounding in future system drivers).

15 years agoAdd dispersion after Linux makestep
Miroslav Lichvar [Tue, 20 Apr 2010 12:26:59 +0000 (14:26 +0200)] 
Add dispersion after Linux makestep

15 years agoMark source unreachable after offline burst
Miroslav Lichvar [Mon, 19 Apr 2010 14:26:14 +0000 (16:26 +0200)] 
Mark source unreachable after offline burst

15 years agoIncrease burst polling interval
Miroslav Lichvar [Mon, 19 Apr 2010 13:53:39 +0000 (15:53 +0200)] 
Increase burst polling interval

To avoid getting KoD RATE from NTP server (triggering discard minimum 1)
when burst sampling, increase polling interval to 2 seconds.

15 years agoStop burst sampling when received KoD RATE
Miroslav Lichvar [Mon, 19 Apr 2010 13:10:25 +0000 (15:10 +0200)] 
Stop burst sampling when received KoD RATE

15 years agoUpdate drift file at most once per hour
Miroslav Lichvar [Thu, 15 Apr 2010 13:48:31 +0000 (15:48 +0200)] 
Update drift file at most once per hour

Instead of writing to the file on every reference update, update it
on first update, on exit and otherwise only once per hour.

15 years agoRemove absolute frequency from handler parameters
Miroslav Lichvar [Wed, 21 Apr 2010 12:26:17 +0000 (14:26 +0200)] 
Remove absolute frequency from handler parameters

None of the current handlers really need it and with temperature
compensation enabled it would be necessary to undo the compensation
before passing it to the handlers.

15 years agoAdd temperature compensation
Miroslav Lichvar [Mon, 12 Apr 2010 15:07:57 +0000 (17:07 +0200)] 
Add temperature compensation

A new tempcomp directive can be used to specify a file for reading
current temperature, update interval and compensation coefficients. The
clock frequency corrections are applied in local module and are invisible
in upper layers. The measurements and corrections can be logged to
tempcomp.log file.

15 years agoAdd fallback drifts
Miroslav Lichvar [Fri, 9 Apr 2010 12:29:11 +0000 (14:29 +0200)] 
Add fallback drifts

Fallback drifts are long-term averages of the system clock drift
calculated over exponentially increasing intervals. They are used when
the clock is unsynchronised to avoid quickly drifting away from true
time if there was a short-term deviation in drift before the
synchronisation was lost.

15 years agoFix frequency accumulation
Miroslav Lichvar [Wed, 21 Apr 2010 08:29:04 +0000 (10:29 +0200)] 
Fix frequency accumulation

15 years agoFix possible memory leak in mkdir_and_parents()
Miroslav Lichvar [Tue, 13 Apr 2010 13:10:44 +0000 (15:10 +0200)] 
Fix possible memory leak in mkdir_and_parents()

15 years agoRefactor file logging
Miroslav Lichvar [Tue, 13 Apr 2010 13:09:28 +0000 (15:09 +0200)] 
Refactor file logging

15 years agoAvoid large times in chronyc sources / sourcestats overflowing lines
Håkan Johansson [Wed, 7 Apr 2010 12:26:41 +0000 (14:26 +0200)] 
Avoid large times in chronyc sources / sourcestats overflowing lines

Main trouble was double values too large to be represented as ints being
converted to -INT_MAX and then passing the < 9999 cut.

15 years agoMark offline sources unreachable
Miroslav Lichvar [Fri, 2 Apr 2010 13:55:58 +0000 (15:55 +0200)] 
Mark offline sources unreachable

15 years agoAdd refclock precision
Miroslav Lichvar [Tue, 2 Mar 2010 12:10:54 +0000 (13:10 +0100)] 
Add refclock precision

15 years agoReduce noise in refclock sample dispersions
Miroslav Lichvar [Tue, 2 Mar 2010 12:07:37 +0000 (13:07 +0100)] 
Reduce noise in refclock sample dispersions

Use the estimated dispersion only if it's higher than long-term average.
This should improve performance with short polling intervals.

15 years agoLog also filtered samples
Miroslav Lichvar [Wed, 24 Feb 2010 11:07:08 +0000 (12:07 +0100)] 
Log also filtered samples

15 years agoAdjust refclock filter parameters
Miroslav Lichvar [Wed, 24 Feb 2010 11:02:53 +0000 (12:02 +0100)] 
Adjust refclock filter parameters

Drop only about 40 percent of samples, change default length to 64,
require at least 4 samples between polls (or full filter for lengths
below 4).

15 years agoMake linear fit in refclock dispersion calculation
Miroslav Lichvar [Thu, 11 Feb 2010 19:35:19 +0000 (20:35 +0100)] 
Make linear fit in refclock dispersion calculation

This should improve reaction to sudden temperature changes with
very precise refclocks and/or long polling intervals.

15 years agoEstimate offset correction error in Linux driver
Miroslav Lichvar [Wed, 10 Feb 2010 17:04:32 +0000 (18:04 +0100)] 
Estimate offset correction error in Linux driver

15 years agoAdd dispersion notification handlers
Miroslav Lichvar [Tue, 16 Feb 2010 17:16:03 +0000 (18:16 +0100)] 
Add dispersion notification handlers

15 years agoInclude offset correction error in dispersion
Miroslav Lichvar [Wed, 10 Feb 2010 15:05:13 +0000 (16:05 +0100)] 
Include offset correction error in dispersion

15 years agoPrepare for handling offset correction error
Miroslav Lichvar [Wed, 10 Feb 2010 14:59:40 +0000 (15:59 +0100)] 
Prepare for handling offset correction error

15 years agoDon't set system precision to log2 based value
Miroslav Lichvar [Thu, 11 Feb 2010 18:23:26 +0000 (19:23 +0100)] 
Don't set system precision to log2 based value

15 years agoFix stratum with locked PPS refclock and local stratum
Miroslav Lichvar [Tue, 16 Feb 2010 15:27:56 +0000 (16:27 +0100)] 
Fix stratum with locked PPS refclock and local stratum

15 years agoUpdate NEWS 1.24
Miroslav Lichvar [Thu, 4 Feb 2010 11:43:33 +0000 (12:43 +0100)] 
Update NEWS

15 years agoLimit rate of syslog messages
Miroslav Lichvar [Wed, 13 Jan 2010 18:02:07 +0000 (19:02 +0100)] 
Limit rate of syslog messages

Error messages caused by incoming packets need to be rate limited
to avoid filling up disk space.

15 years agoDon't reply to invalid chronyc packets
Miroslav Lichvar [Wed, 13 Jan 2010 16:40:20 +0000 (17:40 +0100)] 
Don't reply to invalid chronyc packets

15 years agoUpdate list of commands not using authentication in documentation
Miroslav Lichvar [Thu, 4 Feb 2010 11:51:52 +0000 (12:51 +0100)] 
Update list of commands not using authentication in documentation

15 years agoInitialize local_ntp_tx in ntp_core
Miroslav Lichvar [Thu, 4 Feb 2010 11:39:18 +0000 (12:39 +0100)] 
Initialize local_ntp_tx in ntp_core

This fixes another valgrind error.

15 years agoAllow to set only permission bits with perm option
Miroslav Lichvar [Fri, 29 Jan 2010 08:50:51 +0000 (09:50 +0100)] 
Allow to set only permission bits with perm option

15 years agoAdd perm option to SHM driver
Miroslav Lichvar [Thu, 28 Jan 2010 09:03:54 +0000 (10:03 +0100)] 
Add perm option to SHM driver

15 years agoAdd common refclock driver option parsing
Miroslav Lichvar [Thu, 28 Jan 2010 08:14:42 +0000 (09:14 +0100)] 
Add common refclock driver option parsing

15 years agoAdd lock option for PPS refclocks
Miroslav Lichvar [Wed, 27 Jan 2010 18:14:38 +0000 (19:14 +0100)] 
Add lock option for PPS refclocks

15 years agoDon't start chronyd with unrecognized command line options
Miroslav Lichvar [Wed, 27 Jan 2010 12:53:49 +0000 (13:53 +0100)] 
Don't start chronyd with unrecognized command line options

15 years agoFix scheduler to allow stepping clock from timeout handler
Hattink, Tjalling (FINT) [Tue, 26 Jan 2010 16:11:33 +0000 (17:11 +0100)] 
Fix scheduler to allow stepping clock from timeout handler

15 years agoAdd makestep directive
Miroslav Lichvar [Mon, 25 Jan 2010 14:33:56 +0000 (15:33 +0100)] 
Add makestep directive

15 years agoHandle immediate step in local module instead of system driver
Miroslav Lichvar [Mon, 25 Jan 2010 12:07:13 +0000 (13:07 +0100)] 
Handle immediate step in local module instead of system driver

This fixes the problem where scheduler wasn't notified about performed
steps and it also makes the command available on all supported systems.

15 years agoLimit timeout for end of slew to avoid overflow
Miroslav Lichvar [Thu, 21 Jan 2010 16:11:17 +0000 (17:11 +0100)] 
Limit timeout for end of slew to avoid overflow

15 years agoDon't require _bigadj kernel symbol in NetBSD driver
Miroslav Lichvar [Wed, 13 Jan 2010 13:40:13 +0000 (14:40 +0100)] 
Don't require _bigadj kernel symbol in NetBSD driver

15 years agoPrint only printable characters from refid
Miroslav Lichvar [Wed, 13 Jan 2010 13:00:12 +0000 (14:00 +0100)] 
Print only printable characters from refid

15 years agoFix name resolving on NetBSD
Miroslav Lichvar [Tue, 12 Jan 2010 17:28:04 +0000 (18:28 +0100)] 
Fix name resolving on NetBSD

15 years agoIncrease buffers used to print IPv6 addresses
Miroslav Lichvar [Tue, 12 Jan 2010 17:05:41 +0000 (18:05 +0100)] 
Increase buffers used to print IPv6 addresses

15 years agoReturn 0 from DNS_IPAddress2Name when name was truncated
Miroslav Lichvar [Tue, 12 Jan 2010 16:58:03 +0000 (17:58 +0100)] 
Return 0 from DNS_IPAddress2Name when name was truncated

15 years agoWrite banner to tracking log when not synchronized
Miroslav Lichvar [Tue, 12 Jan 2010 15:59:11 +0000 (16:59 +0100)] 
Write banner to tracking log when not synchronized

15 years agoLog warning when changing file ownership fails
Bill Unruh [Sun, 20 Dec 2009 11:23:02 +0000 (12:23 +0100)] 
Log warning when changing file ownership fails