Re: [chrony-users] chrony switch to low stratum very slow

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


updates
settings
stratumweight 0.0001
reselectdist  0.000001
and results
2019-08-14 18:10:21 172.19.40.23     2    -14.122      0.098
-4.465e-06 N  5  3.006e-05 -1.439e-05  2.429e-04  3.733e-05  2.611e-04
2019-08-14 18:11:26 172.19.40.23     2    -14.125      0.082
-1.042e-06 N  5  1.967e-05 -7.703e-06  2.435e-04  3.740e-05  2.402e-04
2019-08-14 18:26:43 192.168.10.9     3    -14.126      0.001
3.704e-05 N  4  6.061e-05  4.936e-10  3.443e-04  5.172e-05  1.159e-03
2019-08-14 18:27:16 192.168.10.9     3    -14.126      0.001
1.390e-06 N  4  5.970e-05 -3.650e-05  3.443e-04  5.707e-05  2.935e-04
===================================================================================================================================
   Date (UTC) Time     IP Address   St   Freq ppm   Skew ppm
Offset L Co  Offset sd Rem. corr. Root delay Root disp. Max. error
===================================================================================================================================
2019-08-14 18:27:48 192.168.10.9     3    -14.126      0.001
8.495e-06 N  4  4.816e-05 -2.210e-05  3.443e-04  6.272e-05  2.992e-04
2019-08-14 18:28:20 192.168.10.9     3    -14.126      0.004
1.395e-05 N  3  3.780e-05 -1.755e-05  3.459e-04  2.490e-05  2.990e-04
2019-08-14 18:28:52 192.168.10.9     3    -14.125      0.015
8.798e-06 N  3  2.973e-05 -1.407e-05  3.459e-04  2.667e-05  2.654e-04
2019-08-14 18:29:25 192.168.10.9     3    -14.107      0.065
4.334e-06 N  3  2.703e-05 -1.105e-05  3.494e-04  2.321e-05  2.596e-04
2019-08-14 18:29:57 192.168.10.9     3    -14.031      0.115
6.838e-06 N  3  1.811e-05 -9.552e-06  3.494e-04  2.806e-05  2.512e-04

much better than the default setting. it took 15 minutes to switch the
server and the local clock drift during this period is around 30 us.

thanks for the advice to get this.

Frank Huang

On Tue, Aug 13, 2019 at 12:01 PM chuang213 <chuang213@xxxxxxxxx> wrote:
>
> Thanks for the advice and pointing it out the policy that chrony used.
> I'll try them soon.
>
> chrony is good at quick convergence to the servers, while in the
> mobile environment drop of time server is inevitable.
>
> Frank Huang
>
> On Mon, Aug 12, 2019 at 12:15 AM Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
> >
> > On Fri, Aug 09, 2019 at 11:38:23AM -0700, chuang213 wrote:
> > > I changed "stratumweight 0.00010" and it did help, the switching time
> > > reduced to 21 minutes, though still too long. And the side effect is
> > > that this change caused the chrony to use local clock for a long
> > > period of time. the local clock is a stratum 10 one.
> >
> > Have you tried also setting reselectdist to 0? You can also increase
> > maxclockerror to 10 or even more to indicate the local clock is less
> > stable, which should shorten the free running interval.
> >
> > Generally, we don't want to be switching between sources too
> > frequently to minimize the frequency error.
> >
> > --
> > Miroslav Lichvar
> >
> > --
> > To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
> > with "unsubscribe" in the subject.
> > For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
> > with "help" in the subject.
> > Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.
> >

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


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