]>
git.ipfire.org Git - thirdparty/chrony.git/log
Miroslav Lichvar [Wed, 1 Dec 2010 13:32:26 +0000 (14:32 +0100)]
Fix printing of NP and NR over 99 in sourcestats
Miroslav Lichvar [Tue, 30 Nov 2010 17:08:33 +0000 (18:08 +0100)]
Use only 3 chars from refclock driver name in default refid
Miroslav Lichvar [Thu, 14 Oct 2010 13:08:35 +0000 (15:08 +0200)]
Add polltarget command
Miroslav Lichvar [Wed, 13 Oct 2010 15:50:22 +0000 (17:50 +0200)]
Add logbanner directive
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).
Miroslav Lichvar [Wed, 13 Oct 2010 10:58:26 +0000 (12:58 +0200)]
Move default source parameters to macros
Miroslav Lichvar [Mon, 4 Oct 2010 13:48:09 +0000 (15:48 +0200)]
Add -m option to allow multiple commands on command line
Miroslav Lichvar [Mon, 4 Oct 2010 13:00:07 +0000 (15:00 +0200)]
Add retries and timeout commands
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.
Miroslav Lichvar [Thu, 26 Aug 2010 08:29:58 +0000 (10:29 +0200)]
Support prefer and noselect options in chronyc
Miroslav Lichvar [Thu, 26 Aug 2010 07:35:57 +0000 (09:35 +0200)]
Merge code for adding NTP server and peer in cmdmon
Miroslav Lichvar [Wed, 25 Aug 2010 16:11:52 +0000 (18:11 +0200)]
Add prefer and noselect options
Miroslav Lichvar [Wed, 25 Aug 2010 16:31:28 +0000 (18:31 +0200)]
Fix crash when reloading history with zero samples
Miroslav Lichvar [Wed, 25 Aug 2010 16:10:35 +0000 (18:10 +0200)]
Fix reloading sample histories with refclocks
Miroslav Lichvar [Wed, 25 Aug 2010 11:50:46 +0000 (13:50 +0200)]
Add minstratum command
Miroslav Lichvar [Wed, 25 Aug 2010 10:52:37 +0000 (12:52 +0200)]
Document 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.
Miroslav Lichvar [Thu, 19 Aug 2010 15:19:37 +0000 (17:19 +0200)]
Add -n option to allow using syslog without forking
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.
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%.
Miroslav Lichvar [Tue, 17 Aug 2010 10:31:03 +0000 (12:31 +0200)]
Run configure tests with LDFLAGS
Miroslav Lichvar [Mon, 16 Aug 2010 14:44:49 +0000 (16:44 +0200)]
Fix updating of best_single_sample
Miroslav Lichvar [Thu, 12 Aug 2010 12:43:26 +0000 (14:43 +0200)]
Don't use timezone parameter in gettimeofday and settimeofday calls
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.
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.
Miroslav Lichvar [Wed, 11 Aug 2010 16:25:32 +0000 (18:25 +0200)]
Assert number of points in regress functions
Miroslav Lichvar [Wed, 11 Aug 2010 15:16:16 +0000 (17:16 +0200)]
Update offset correction errors only when needed
Miroslav Lichvar [Wed, 11 Aug 2010 14:57:19 +0000 (16:57 +0200)]
Fix updating of nano slew offset correction error
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.
Miroslav Lichvar [Tue, 10 Aug 2010 13:35:17 +0000 (15:35 +0200)]
Cleanup sourcestats code a bit
Miroslav Lichvar [Fri, 6 Aug 2010 12:51:37 +0000 (14:51 +0200)]
Change length of resid buffer to MAX_POINTS
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.
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.
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.
Miroslav Lichvar [Thu, 5 Aug 2010 11:27:52 +0000 (13:27 +0200)]
Reset adjtime offset on start
Miroslav Lichvar [Mon, 14 Jun 2010 07:47:07 +0000 (09:47 +0200)]
Clarify some cmdmon warning messages
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.
Miroslav Lichvar [Wed, 26 May 2010 14:55:49 +0000 (16:55 +0200)]
Set minimum allowed skew to 1e-12
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.
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.
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.
Miroslav Lichvar [Fri, 7 May 2010 13:32:51 +0000 (15:32 +0200)]
Make use of UTI_AdjustTimeval in slew handlers
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.
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.
Miroslav Lichvar [Wed, 28 Apr 2010 14:11:24 +0000 (16:11 +0200)]
Change online status also for unresolved sources
Miroslav Lichvar [Wed, 28 Apr 2010 13:44:07 +0000 (15:44 +0200)]
Retry name resolving before marking sources online
Miroslav Lichvar [Tue, 27 Apr 2010 13:56:48 +0000 (15:56 +0200)]
Don't log network is unreachable errors
Miroslav Lichvar [Tue, 27 Apr 2010 11:47:40 +0000 (13:47 +0200)]
Fix name resolving when IPv6 support is disabled
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.
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.
Miroslav Lichvar [Mon, 26 Apr 2010 13:04:00 +0000 (15:04 +0200)]
Merge NSR/NCR server and peer functions
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.
Miroslav Lichvar [Fri, 23 Apr 2010 10:40:50 +0000 (12:40 +0200)]
Add iburst server option
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.
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).
Miroslav Lichvar [Tue, 20 Apr 2010 12:26:59 +0000 (14:26 +0200)]
Add dispersion after Linux makestep
Miroslav Lichvar [Mon, 19 Apr 2010 14:26:14 +0000 (16:26 +0200)]
Mark source unreachable after offline burst
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.
Miroslav Lichvar [Mon, 19 Apr 2010 13:10:25 +0000 (15:10 +0200)]
Stop burst sampling when received KoD RATE
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.
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.
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.
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.
Miroslav Lichvar [Wed, 21 Apr 2010 08:29:04 +0000 (10:29 +0200)]
Fix frequency accumulation
Miroslav Lichvar [Tue, 13 Apr 2010 13:10:44 +0000 (15:10 +0200)]
Fix possible memory leak in mkdir_and_parents()
Miroslav Lichvar [Tue, 13 Apr 2010 13:09:28 +0000 (15:09 +0200)]
Refactor file logging
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.
Miroslav Lichvar [Fri, 2 Apr 2010 13:55:58 +0000 (15:55 +0200)]
Mark offline sources unreachable
Miroslav Lichvar [Tue, 2 Mar 2010 12:10:54 +0000 (13:10 +0100)]
Add refclock precision
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.
Miroslav Lichvar [Wed, 24 Feb 2010 11:07:08 +0000 (12:07 +0100)]
Log also filtered samples
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).
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.
Miroslav Lichvar [Wed, 10 Feb 2010 17:04:32 +0000 (18:04 +0100)]
Estimate offset correction error in Linux driver
Miroslav Lichvar [Tue, 16 Feb 2010 17:16:03 +0000 (18:16 +0100)]
Add dispersion notification handlers
Miroslav Lichvar [Wed, 10 Feb 2010 15:05:13 +0000 (16:05 +0100)]
Include offset correction error in dispersion
Miroslav Lichvar [Wed, 10 Feb 2010 14:59:40 +0000 (15:59 +0100)]
Prepare for handling offset correction error
Miroslav Lichvar [Thu, 11 Feb 2010 18:23:26 +0000 (19:23 +0100)]
Don't set system precision to log2 based value
Miroslav Lichvar [Tue, 16 Feb 2010 15:27:56 +0000 (16:27 +0100)]
Fix stratum with locked PPS refclock and local stratum
Miroslav Lichvar [Thu, 4 Feb 2010 11:43:33 +0000 (12:43 +0100)]
Update NEWS
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.
Miroslav Lichvar [Wed, 13 Jan 2010 16:40:20 +0000 (17:40 +0100)]
Don't reply to invalid chronyc packets
Miroslav Lichvar [Thu, 4 Feb 2010 11:51:52 +0000 (12:51 +0100)]
Update list of commands not using authentication in documentation
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.
Miroslav Lichvar [Fri, 29 Jan 2010 08:50:51 +0000 (09:50 +0100)]
Allow to set only permission bits with perm option
Miroslav Lichvar [Thu, 28 Jan 2010 09:03:54 +0000 (10:03 +0100)]
Add perm option to SHM driver
Miroslav Lichvar [Thu, 28 Jan 2010 08:14:42 +0000 (09:14 +0100)]
Add common refclock driver option parsing
Miroslav Lichvar [Wed, 27 Jan 2010 18:14:38 +0000 (19:14 +0100)]
Add lock option for PPS refclocks
Miroslav Lichvar [Wed, 27 Jan 2010 12:53:49 +0000 (13:53 +0100)]
Don't start chronyd with unrecognized command line options
Hattink, Tjalling (FINT) [Tue, 26 Jan 2010 16:11:33 +0000 (17:11 +0100)]
Fix scheduler to allow stepping clock from timeout handler
Miroslav Lichvar [Mon, 25 Jan 2010 14:33:56 +0000 (15:33 +0100)]
Add makestep directive
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.
Miroslav Lichvar [Thu, 21 Jan 2010 16:11:17 +0000 (17:11 +0100)]
Limit timeout for end of slew to avoid overflow
Miroslav Lichvar [Wed, 13 Jan 2010 13:40:13 +0000 (14:40 +0100)]
Don't require _bigadj kernel symbol in NetBSD driver
Miroslav Lichvar [Wed, 13 Jan 2010 13:00:12 +0000 (14:00 +0100)]
Print only printable characters from refid
Miroslav Lichvar [Tue, 12 Jan 2010 17:28:04 +0000 (18:28 +0100)]
Fix name resolving on NetBSD
Miroslav Lichvar [Tue, 12 Jan 2010 17:05:41 +0000 (18:05 +0100)]
Increase buffers used to print IPv6 addresses
Miroslav Lichvar [Tue, 12 Jan 2010 16:58:03 +0000 (17:58 +0100)]
Return 0 from DNS_IPAddress2Name when name was truncated
Miroslav Lichvar [Tue, 12 Jan 2010 15:59:11 +0000 (16:59 +0100)]
Write banner to tracking log when not synchronized
Bill Unruh [Sun, 20 Dec 2009 11:23:02 +0000 (12:23 +0100)]
Log warning when changing file ownership fails