Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Dec 2023 16:56:37 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Xin Li <delphij@delphij.net>, Philip Paeps <philip@freebsd.org>,  Warner Losh <imp@bsdimp.com>, src-committers <src-committers@freebsd.org>,  dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org
Subject:   Re: git: b1c95af45488 - main - rc.conf: correct $ntp_leapfile_sources
Message-ID:  <CANCZdfpHWRECi=DyhxJAW4MkA-CyPLK=OSdSwBdKQJ57MyPwNA@mail.gmail.com>
In-Reply-To: <20231207222716.obSthG6r@steffen%sdaoden.eu>
References:  <202312070550.3B75o8WV066387@gitrepo.freebsd.org> <CANCZdfrSitY2W%2B7EVaa_yX=KhsJNq_FZqyOLnBeTZX_-6YGxpg@mail.gmail.com> <389AB29C-D5C0-4091-91ED-219F33351B35@freebsd.org> <d75b041f-05f8-44c1-8de6-1fef89b7e537@delphij.net> <20231207222716.obSthG6r@steffen%sdaoden.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000092355e060bf438c7
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Thu, Dec 7, 2023 at 3:27=E2=80=AFPM Steffen Nurpmeso <steffen@sdaoden.eu=
> wrote:

> Xin Li wrote in
>  <d75b041f-05f8-44c1-8de6-1fef89b7e537@delphij.net>:
>  |On 2023-12-06 22:34, Philip Paeps wrote:
>  |> On 2023-12-07 14:26:05 (+0800), Warner Losh wrote:
>  |>> We should point to bipm
>  |>> https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list since
> they
>  |>> are
>  |>> the source of truth, no?
>  |>
>  |> I went for the IANA copy because data.iana.org is a much shorter and
>  |> trustworthy looking URL.  And it's also where other operating systems
>  |> get their copies.
>  |
>  |My understanding is that IANA's copy is part of tzdata and it's only
>  |updated when a new set of zone data is released, so it's sometimes
>  |outdated.  It is actually going to be outdated really soon by the way.
>
> But nothing will change.
> It is only about the included end-of-life tag why there is
> discussion at all.
> The IANA TZ data is always updated as necessary, "early enough".
>

Yes. TZ data updates multiple times a year. The lead time on NIST/BIPM
updating the file usually is within days or weeks after the new leap is
announced.
But ntpd can't possibly use it for about 5 months. TZ updates are plenty
fast.

The bigger problem is that we have to do a EN to get a new set of zone
files. If we had a way to fetch them, we could just copy this file from the
updated
zone files.


> Also the beasts are about to get rid of leap seconds until 2035
> (and they have beaten onto the Russians which' GLONASS is capable
> to deal properly, as far as the discussion was, the fact it is not
> earlier).  Bets can be placed whether it will happen before
> a possible occurring leap second, or not.  (My bet is that they
> run everything against the wall, and then run away yelling about
> the evil leap second, after having missed to create an appropriate
> environment to deal with the reached scientific level to keep us
> truly within one second of our home planet, and his star.
> O tempora, o mores.  But that is off-topic.)
>

Yea, we're years away from the next leap second. And there's still
a good chance we'll have at least one more. And there's also rumblings
that leaps will stop before 2035 (that's the current absolute last date,
and there's several folks that want to pull that in). What will happen
for sure isn't well known...

ntpv5 discussions have, at times, assumed there will be no more leap
seconds and so ntpv5 needn't have anything to accommodate them.


>  |The IERS one is more up-to-date because they publish the bulletin.
>
> In general i think distribution of load is a good thing, and
> i find it very unfriendly to put all the load onto some jealous
> institute (if it is one) and its single server.
> The FreeBSD project has an established set of mirrors, and, the
> way i see the excessive use of installations on clowds and such,
> for example for github actions which spawn dozens of OS
> installations to test a commit (doh!).
>

We can skew the load in time by spreading all our users out over
the few months we have if there's a load issue.


> Btw PHK had a thrilling idea of DNS distributing leap ticks some
> years ago, and he even started to host it.  As it unfortunately
> did not fly i did not track it further.
> Would also be an idea for the FreeBSD project: simply download the
> file ones, then place a DNS record that FreeBSD installations then
> can query.  DNSSEC is in place i think.
>

Yea, that's not a thing that's happening. It was an interesting idea,
but hasn't been standardized and there's little to apetite to distribute
this way.


>  |The bundled version was from NIST ftp, but fetching from ftp for every
>  |FreeBSD system out there was too scary for me.
>  |
>  |There may be some security / privacy concerns if we direct users to a
>  |place that we do not have control, by the way.
>
> Interesting aspect!
>

There might be, but this sounds somewhat speculative. What's the anticipate=
d
concerns?

Warner

--00000000000092355e060bf438c7
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Thu, Dec 7, 2023 at 3:27=E2=80=AFP=
M Steffen Nurpmeso &lt;<a href=3D"mailto:steffen@sdaoden.eu">steffen@sdaode=
n.eu</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1=
ex">Xin Li wrote in<br>
=C2=A0&lt;<a href=3D"mailto:d75b041f-05f8-44c1-8de6-1fef89b7e537@delphij.ne=
t" target=3D"_blank">d75b041f-05f8-44c1-8de6-1fef89b7e537@delphij.net</a>&g=
t;:<br>
=C2=A0|On 2023-12-06 22:34, Philip Paeps wrote:<br>
=C2=A0|&gt; On 2023-12-07 14:26:05 (+0800), Warner Losh wrote:<br>
=C2=A0|&gt;&gt; We should point to bipm<br>
=C2=A0|&gt;&gt; <a href=3D"https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-s=
econds.list" rel=3D"noreferrer" target=3D"_blank">https://hpiers.obspm.fr/i=
ers/bul/bulc/ntp/leap-seconds.list</a> since they <br>
=C2=A0|&gt;&gt; are<br>
=C2=A0|&gt;&gt; the source of truth, no?<br>
=C2=A0|&gt; <br>
=C2=A0|&gt; I went for the IANA copy because <a href=3D"http://data.iana.or=
g" rel=3D"noreferrer" target=3D"_blank">data.iana.org</a> is a much shorter=
 and <br>
=C2=A0|&gt; trustworthy looking URL.=C2=A0 And it&#39;s also where other op=
erating systems <br>
=C2=A0|&gt; get their copies.<br>
=C2=A0|<br>
=C2=A0|My understanding is that IANA&#39;s copy is part of tzdata and it&#3=
9;s only <br>
=C2=A0|updated when a new set of zone data is released, so it&#39;s sometim=
es <br>
=C2=A0|outdated.=C2=A0 It is actually going to be outdated really soon by t=
he way.<br>
<br>
But nothing will change.<br>
It is only about the included end-of-life tag why there is<br>
discussion at all.<br>
The IANA TZ data is always updated as necessary, &quot;early enough&quot;.<=
br></blockquote><div><br></div><div>Yes. TZ data updates multiple times a y=
ear. The lead time on NIST/BIPM</div><div>updating the file usually is with=
in days or weeks after the new leap is announced.</div><div>But ntpd can&#3=
9;t possibly use it for about 5 months. TZ updates are plenty fast.</div><d=
iv><br></div><div>The bigger problem is that we have to do a EN to get a ne=
w set of zone</div><div>files. If we had a way to fetch them, we could just=
 copy this file from the updated</div><div>zone files.</div><div>=C2=A0</di=
v><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;borde=
r-left:1px solid rgb(204,204,204);padding-left:1ex">
Also the beasts are about to get rid of leap seconds until 2035<br>
(and they have beaten onto the Russians which&#39; GLONASS is capable<br>
to deal properly, as far as the discussion was, the fact it is not<br>
earlier).=C2=A0 Bets can be placed whether it will happen before<br>
a possible occurring leap second, or not.=C2=A0 (My bet is that they<br>
run everything against the wall, and then run away yelling about<br>
the evil leap second, after having missed to create an appropriate<br>
environment to deal with the reached scientific level to keep us<br>
truly within one second of our home planet, and his star.<br>
O tempora, o mores.=C2=A0 But that is off-topic.)<br></blockquote><div><br>=
</div><div>Yea, we&#39;re years away from the next leap second. And there&#=
39;s still</div><div>a good chance we&#39;ll have at least one more. And th=
ere&#39;s also rumblings</div><div>that leaps will stop before 2035 (that&#=
39;s the current absolute last date,=C2=A0</div><div>and there&#39;s severa=
l folks that want to pull that in). What will happen</div><div>for sure isn=
&#39;t well known...</div><div><br></div><div>ntpv5 discussions have, at ti=
mes, assumed there will be no more leap</div><div>seconds and so ntpv5 need=
n&#39;t have anything to accommodate them.</div><div>=C2=A0</div><blockquot=
e class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px s=
olid rgb(204,204,204);padding-left:1ex">
=C2=A0|The IERS one is more up-to-date because they publish the bulletin.<b=
r>
<br>
In general i think distribution of load is a good thing, and<br>
i find it very unfriendly to put all the load onto some jealous<br>
institute (if it is one) and its single server.<br>
The FreeBSD project has an established set of mirrors, and, the<br>
way i see the excessive use of installations on clowds and such,<br>
for example for github actions which spawn dozens of OS<br>
installations to test a commit (doh!).<br></blockquote><div><br></div><div>=
We can skew the load in time by spreading all our users out over</div><div>=
the few months we have if there&#39;s a load issue.</div><div>=C2=A0</div><=
blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l=
eft:1px solid rgb(204,204,204);padding-left:1ex">
Btw PHK had a thrilling idea of DNS distributing leap ticks some<br>
years ago, and he even started to host it.=C2=A0 As it unfortunately<br>
did not fly i did not track it further.<br>
Would also be an idea for the FreeBSD project: simply download the<br>
file ones, then place a DNS record that FreeBSD installations then<br>
can query.=C2=A0 DNSSEC is in place i think.<br></blockquote><div><br></div=
><div>Yea, that&#39;s not a thing that&#39;s happening. It was an interesti=
ng idea,</div><div>but hasn&#39;t been standardized and there&#39;s little =
to apetite to distribute this way.</div><div>=C2=A0</div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex">
=C2=A0|The bundled version was from NIST ftp, but fetching from ftp for eve=
ry <br>
=C2=A0|FreeBSD system out there was too scary for me.<br>
=C2=A0|<br>
=C2=A0|There may be some security / privacy concerns if we direct users to =
a <br>
=C2=A0|place that we do not have control, by the way.<br>
<br>
Interesting aspect!<br></blockquote><div><br></div><div>There might be, but=
 this sounds somewhat speculative. What&#39;s the anticipated</div><div>con=
cerns?</div><div><br></div><div>Warner=C2=A0</div></div></div>

--00000000000092355e060bf438c7--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpHWRECi=DyhxJAW4MkA-CyPLK=OSdSwBdKQJ57MyPwNA>