RE: [chrony-dev] makestep command sometimes makes chrony stop reading its sources

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


>On Thu, Jan 21, 2010 at 03:26:19PM -0800, Bill Unruh wrote:
>> Where is that overflow occuring? Certainly the UTI functions should
be good
>> for much more than 40 months (or is it that  40/.08 months from now
is overflowing
>> 2038?)
>
>It overflows in UTI_AddDoubleToTimeval when int_part is added to
>tv_sec.
>
>>  I suspect that chrony should not be trying to slew that huge a
difference
>> from local time-- it should either throw an exception, or just step.
>> While the 1/8 second stepping of ntpd is silly, stepping 40 months
>> rather than
>> slewing it for the next century sounds pretty reasonable. In fact
anything
>> over a day  or certainly a year sounds reasonable to step.
>
>I'd like to keep chrony to never step clock by default. I have fixed
>the overflow by limiting the timeout to one week. If a longer slew is
>needed it will be just periodically rescheduled. Even if takes a
>century.
>

I've tried the patch from git that should fix the freeze and it works
fine so far. I
can savely start chrony with an initial offset of 4 years in the past or
future.

>I'm now working on a patch for the stepping.
>
>stepclock 0.5 5
>
>in chrony.conf will allow to step the clock when offset update is
>larger than 0.5 second, but only in first five updates.
>
>

Unfortunately the new makestep command does not work for me when the
initial offset
is in the future. The system clock is stepped to the correct time as
soon as chrony
locks in on the SHM reference time, but right after it freezes again
with 100% cpu
load. I used the "makestep 10 -1" line in my chrony.conf file.

When the initial offset is in the past it works fine. I do not need my
own script
anymore to issue a "makestep" command using chronyc.

--
Tjalling Hattink

---
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/