Re: lockclock runtime option

2019-01-23 Thread Eric S. Raymond via devel
Hal Murray : > > e...@thyrsus.com said: > >> Perhaps we should review this area. What will we want to see > >> when NTS is deployed. > > You and Achim are probably the best judges of that we have. So write a > > strawman and put it in nts.adoc. > > I don't plan to put anything related to this

Re: lockclock runtime option

2019-01-23 Thread Eric S. Raymond via devel
Hal Murray via devel : > ntp_control really needs a big cleanup. There are several tables that must > be > kept in sync by hand. I added issue #539 for that. (It may be a duplicate, > but I didn't see an old one.) I noticed that back when I was in "rip out all the code" mode. Priority: ba

Re: lockclock runtime option

2019-01-23 Thread Eric S. Raymond via devel
Achim Gratz via devel : > Well, it turns out ntpq has regressed from classic and doesn't > understand at least some of that syntax anymore: > > Classic> /usr/sbin/ntpq -c 'rv 0 offset' > offset=-0.023122 > > NTPsec~> ntpq -c 'rv 0 offset' > server=0 status=0415 leap_none, sync_uhf_radio, 1 event,

Re: lockclock runtime option

2019-01-23 Thread Hal Murray via devel
e...@thyrsus.com said: >> Perhaps we should review this area. What will we want to see >> when NTS is deployed. > You and Achim are probably the best judges of that we have. So write a > strawman and put it in nts.adoc. I don't plan to put anything related to this into nts.adoc ntp_control

Re: lockclock runtime option

2019-01-23 Thread Hal Murray via devel
> So, lockclock is not known as a system variable of course. I just pushed a fix for that. $ ntpq ntpq> rv 0 lockclock lockclock=0 ntpq> ntp_control really needs a big cleanup. There are several tables that must be kept in sync by hand. I added issue #539 for that. (It may be a

Re: lockclock runtime option

2019-01-23 Thread Achim Gratz via devel
io, 1 event, clock_sync, >> version="ntpd ntpsec-1.1.3+ 2019-01-21T16:51:20Z (git rev 6c029ef4c)", > ... > > Works for me. Anything interesting about your setup? No, just plain stupidity on my side. I tried to run the command via ssh and forgot I need to double-quote

Re: lockclock runtime option

2019-01-23 Thread Hal Murray via devel
Achim said: > Well, it turns out ntpq has regressed from classic and doesn't understand at > least some of that syntax anymore: > NTPsec~> ntpq -c 'rv 0 offset' > server=0 status=0415 leap_none, sync_uhf_radio, 1 event, clock_sync, > version="ntpd ntpsec-1.1.3+ 2019-01-21T16:51:20Z (git rev 6c0

Re: lockclock runtime option

2019-01-23 Thread Achim Gratz via devel
Hal Murray via devel writes: > It's easy to add new variables. Old ntpq may not show them in any of its > packaged printout like peers or kerninfo, but you can get them by asking > explicityly. Well, it turns out ntpq has regressed from classic and doesn't understand at least some of that synta

Re: lockclock runtime option

2019-01-23 Thread Achim Gratz via devel
Eric S. Raymond via devel writes: > Achim Gratz via devel : >> It would be nice if lockclock mode would get displayed in the system >> variables in ntpq if it was on, however. > > Alas, it's not a system variable. > > I could, I suppose, make it one. But you can

Re: lockclock runtime option

2019-01-22 Thread Eric S. Raymond via devel
Hal Murray : > Perhaps we should review this area. What will we want to see when NTS is > deployed. You and Achim are probably the best judges of that we have. So write a strawman and put it in nts.adoc. -- http://www.catb.org/~esr/";>Eric S. Raymond My work is funded by the I

Re: lockclock runtime option

2019-01-22 Thread Hal Murray via devel
Eric said: > It's never been an an *ntpq* "system variable" that can be queried through > that interface, I meant. It's easy to add new variables. Old ntpq may not show them in any of its packaged printout like peers or kerninfo, but you can get them by asking explicityly. There are also 2

Re: lockclock runtime option

2019-01-22 Thread Eric S. Raymond via devel
Hal Murray : > > Alas, it's not a system variable. > > Looks like it is: > include/ntpd.h:extern bool lockclock; /* lock to the system > clock? */ It's never been an an *ntpq* "system variable" that can be queried through that interf

Re: lockclock runtime option

2019-01-22 Thread Hal Murray via devel
> Alas, it's not a system variable. Looks like it is: include/ntpd.h:extern bool lockclock; /* lock to the system clock? */ -- These are my opinions. I hate spam. ___ devel mailing list devel@ntpsec.org http://lists.nt

Re: lockclock runtime option

2019-01-22 Thread Eric S. Raymond via devel
Achim Gratz via devel : > It would be nice if lockclock mode would get displayed in the system > variables in ntpq if it was on, however. Alas, it's not a system variable. I could, I suppose, make it one. But you can get the same effect by querying the driver tyo

Re: lockclock runtime option

2019-01-22 Thread Achim Gratz via devel
or me. It would be nice if lockclock mode would get displayed in the system variables in ntpq if it was on, however. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for KORG EX-800 and Poly-800MkII V0.9: http://Synth.Stromeko.net

Re: lockclock runtime option

2019-01-21 Thread Eric S. Raymond via devel
Richard Laager : > On 1/21/19 2:28 PM, Eric S. Raymond via devel wrote: > > I don't either, and I think there is no functional point in trying to cope > > with that. So I'm going to deal with this by adding to the documentation a > > line that says changing this flag at runtime may produce undefine

Re: lockclock runtime option

2019-01-21 Thread Richard Laager via devel
On 1/21/19 2:28 PM, Eric S. Raymond via devel wrote: > I don't either, and I think there is no functional point in trying to cope > with that. So I'm going to deal with this by adding to the documentation a > line that says changing this flag at runtime may produce undefined behavior. Is it easy t

Re: lockclock runtime option

2019-01-21 Thread Eric S. Raymond via devel
yself > that all the initializations are going to happen correctly when > lockclock is switched on and off, I really don't see how I'd go about > that. I don't either, and I think there is no functional point in trying to cope with that. So I'm going to deal with t

Re: lockclock runtime option

2019-01-21 Thread Achim Gratz via devel
that patch. In principle you can mobilize/demobilize associations and change their flags at runtime (I haven't done that in a while so I don't know if it still works the same as in classic). So if I need to convince myself that all the initializations are going to happen correctly when lockcl

Re: lockclock runtime option

2019-01-17 Thread Eric S. Raymond via devel
Richard Laager via devel : > docs/driver_local.adoc has a typo: disctplined Fixed, thanks. -- http://www.catb.org/~esr/";>Eric S. Raymond My work is funded by the Internet Civil Engineering Institute: https://icei.org Please visit their site and donate: the civilization you save

Re: lockclock runtime option

2019-01-16 Thread Richard Laager via devel
docs/driver_local.adoc has a typo: disctplined -- Richard ___ devel mailing list devel@ntpsec.org http://lists.ntpsec.org/mailman/listinfo/devel

lockclock runtime option

2019-01-16 Thread Eric S. Raymond via devel
I have converted ENABLE_LOCKCLOCK to a runtime option. Following a review suggestion, it is controlled by flag1 of the localclock driver. Please test carefully. I think I avoided breaking the loopfilter code, but there;s always that outside chance... -- http://www.catb.org/~esr/"

Re: Lockclock internalization patch

2019-01-12 Thread Eric S. Raymond via devel
- I generally push directly. > If not... > > +* NIST lockclock mode is now a tinker flag rather than a compile-time > + option, heading off bad things that can occur if a distro packager > + gets careless and enables every compile-time option by default. > > ^ "g

Re: lockclock

2019-01-12 Thread Achim Gratz via devel
Hal Murray via devel writes: >> The easiest is probably to configure the GPS refclock into a private ntpd >> instance running on a hidden port. Another exposed ntpd then runs in >> lockclock mode and serves the system time controlled by the hidden instance. > > That

Re: Lockclock internalization patch

2019-01-12 Thread Richard Laager via devel
On 1/12/19 8:10 AM, Eric S. Raymond via devel wrote: > Please review and test. Can you please post this as a merge request, so we can use GitLab comment/review/approval processes and automated testing? If not... +* NIST lockclock mode is now a tinker flag rather than a compile-time + opt

Lockclock internalization patch

2019-01-12 Thread Eric S. Raymond via devel
447cc231e9b Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 12 Jan 2019 09:04:16 -0500 Subject: [PATCH] Change NIST lockclock enable from a compile-time option to a tinker flag. Heads off a problem with distro packagers carelessly enabling all compile-time options. Thi

Re: lockclock

2019-01-12 Thread Eric S. Raymond via devel
Hal Murray : > > >> If we are serious about supporting lockclock, we have to figure out a way > to > >> test it. We can probably make something that supports GPSDOs with PPS. > > > That, on the other hand, seems to me like a good idea. But I don't

Re: lockclock

2019-01-12 Thread Eric S. Raymond via devel
Hal Murray : > > e...@thyrsus.com said: > > Not only is it possible, I wrote a patch to do it today. Complete with > > documentation changes. I'll post it shortly - I want it carefully reviewed > > and tested by others before we merge it, as it touched the loppfilter code. > > Are you planning

Re: lockclock

2019-01-12 Thread Hal Murray via devel
> The easiest is probably to configure the GPS refclock into a private ntpd > instance running on a hidden port. Another exposed ntpd then runs in > lockclock mode and serves the system time controlled by the hidden instance. That's a good straw man. Thanks. If I understa

Re: lockclock

2019-01-11 Thread Hal Murray via devel
e...@thyrsus.com said: > Not only is it possible, I wrote a patch to do it today. Complete with > documentation changes. I'll post it shortly - I want it carefully reviewed > and tested by others before we merge it, as it touched the loppfilter code. Are you planning to push it before or afte

Re: lockclock

2019-01-11 Thread Hal Murray via devel
>> If we are serious about supporting lockclock, we have to figure out a way to >> test it. We can probably make something that supports GPSDOs with PPS. > That, on the other hand, seems to me like a good idea. But I don't have the > domain expertise to do it. Ind

Re: lockclock

2019-01-11 Thread Eric S. Raymond via devel
Hal Murray via devel : > > devel@ntpsec.org said: > > Is it possible to make lockclock a run-time-only option, instead of a > > compile-time + runtime otion? > > I think so. That will require adding something to ntp.conf to turn it on. Not only is it possible, I wrot

Re: lockclock

2019-01-11 Thread Hal Murray via devel
devel@ntpsec.org said: > Is it possible to make lockclock a run-time-only option, instead of a > compile-time + runtime otion? I think so. That will require adding something to ntp.conf to turn it on. > If remains a compile-time option, then we'll need to add CI targets for it s

Re: lockclock

2019-01-11 Thread Eric S. Raymond via devel
Gary E. Miller via devel : > Yo Matthew! > > On Fri, 11 Jan 2019 17:44:42 + > Matthew Selsky via devel wrote: > > > Is it possible to make lockclock a run-time-only option, instead of a > > compile-time + runtime otion? > > I'd love to get rid of ev

Re: lockclock

2019-01-11 Thread Gary E. Miller via devel
Yo Matthew! On Fri, 11 Jan 2019 17:44:42 + Matthew Selsky via devel wrote: > Is it possible to make lockclock a run-time-only option, instead of a > compile-time + runtime otion? I'd love to get rid of every compile time option. They confuse distro maintainers, which leads to

Re: lockclock

2019-01-11 Thread Matthew Selsky via devel
Is it possible to make lockclock a run-time-only option, instead of a compile-time + runtime otion? If remains a compile-time option, then we'll need to add CI targets for it so that we're always testing that it compiles cleanly. Tha

Re: lockclock

2019-01-11 Thread Eric S. Raymond via devel
nt > > NIST was running NTP Classic on the master fountain clock. For all we know > > they might still be doing that. > > I expect the lockclock code is a partnership between Dave Mills and Judah > Levine at NIST. I didn't have a name at the NIST end but, yeah, I was

Re: lockclock

2019-01-10 Thread Achim Gratz via devel
Hal Murray via devel writes: > If we are serious about supporting lockclock, we have to figure out a way to > test it. We can probably make something that supports GPSDOs with PPS. The easiest is probably to configure the GPS refclock into a private ntpd instance running on a hidde

Re: lockclock

2019-01-10 Thread Hal Murray via devel
n the master fountain clock. For all we know > they might still be doing that. I expect the lockclock code is a partnership between Dave Mills and Judah Levine at NIST. > This is an NTPsec use case we *absolutely* want to encourage. What better > reference user could we have? > So, y

Re: lockclock

2019-01-10 Thread Hal Murray via devel
Gary said: > Lockclock mode is very important to the PTP people. They use PTP to > distribute time on the local net to the clients. Then a PTP client can use > NTP to server time to not PTP clients. Thanks. Is there any sort of documentation (email?) or a HOWTO? Do they actually

Re: lockclock

2019-01-10 Thread Hal Murray via devel
> lockclock stays in OK You need to think about what "stays in" means. Do you want to support it? If so, we need documentation and a test case. I will let somebody else take care of Issue #524 The simplest fix that I can think of is to change --enable-lockclock to something

Re: lockclock

2019-01-09 Thread Mark Atwood, Project Manager via devel
lockclock stays in Thanks! ..m On Sun, Jan 6, 2019 at 6:28 AM Eric S. Raymond via devel wrote: > Gary E. Miller via devel : > > Lockclock mode is very important to the PTP people. They use PTP to > > distribute time on the local net to the clients. Then a PTP client can

Re: lockclock

2019-01-06 Thread Eric S. Raymond via devel
Gary E. Miller via devel : > Lockclock mode is very important to the PTP people. They use PTP to > distribute time on the local net to the clients. Then a PTP client can > use NTP to server time to not PTP clients. While I have no doubt you are correct about the PTP deployment, I see

Re: lockclock

2019-01-06 Thread Achim Gratz via devel
Eric S. Raymond via devel writes: > It's because the only way this code makes any sense to me is if at one > point NIST was running NTP Classic on the master fountain clock. For all > we know they might still be doing that. …the other (and more practical one) is if your system clock is disciplined

Re: lockclock

2019-01-06 Thread Eric S. Raymond via devel
Hal Murray via devel : > > Context is Issue #524, NTPsec daemon hangs after startup > > The problem is that if configured with --enable-lockclock, ntpd doesn't work > as a server if you don't activate the local clock driver in your ntp.conf. > (It doe

Re: lockclock

2019-01-05 Thread Gary E. Miller via devel
Yo Hal! On Fri, 04 Jan 2019 23:13:39 -0800 Hal Murray via devel wrote: > I vote for dropping it. We can put things back together if we find a > customer who wants it. Lockclock mode is very important to the PTP people. They use PTP to distribute time on the local net to the clients.

lockclock

2019-01-04 Thread Hal Murray via devel
Context is Issue #524, NTPsec daemon hangs after startup The problem is that if configured with --enable-lockclock, ntpd doesn't work as a server if you don't activate the local clock driver in your ntp.conf. (It doesn't work as a client either.) --- Ther