From hmurray at megapathdsl.net Fri Jan 1 01:20:57 2016 From: hmurray at megapathdsl.net (Hal Murray) Date: Thu, 31 Dec 2015 17:20:57 -0800 Subject: ntpdsim status and question In-Reply-To: Message from "Eric S. Raymond" of "Thu, 31 Dec 2015 15:38:04 EST." <20151231203804.GA30545@thyrsus.com> Message-ID: <20160101012057.424B6406057@ip-64-139-1-69.sjc.megapath.net> >> If/when we decide to build a minimal version of ntpd, I could >> easily imagine that a compile time option to avoid the intercept >> layer would be a useful idea. > The only reasonable way to do this would be to not compile in the replay/ > capture support in the intercept layer, leaving the normal-mode > implementations in place. I was thinking of pushing it up to the header file so it didn't have to bounce through a useless intercept layer. -- These are my opinions. I hate spam. From esr at thyrsus.com Fri Jan 1 07:06:27 2016 From: esr at thyrsus.com (Eric S. Raymond) Date: Fri, 1 Jan 2016 02:06:27 -0500 Subject: Cannot compile on Windows 7 64 bits with Visual Studio 2013 community. In-Reply-To: <20151231220952.79C96406057@ip-64-139-1-69.sjc.megapath.net> References: <20151231210247.GC30545@thyrsus.com> <20151231220952.79C96406057@ip-64-139-1-69.sjc.megapath.net> Message-ID: <20160101070627.GA2128@thyrsus.com> Hal Murray : > > > With a little work (a simple enough job that I don't need to be the one to > > do it, I think) it should be possible to change the --disable-dns-lookup > > option to always use synchronous lookup on hostnames, so the IP-only > > restriction is removed at the cost of a small amount of startup lag. > > I think you are confusing things by thinking of it as a startup problem. OK, the places where I made asynchronous lookups an option are on command line and config-file hostames. > The pool stuff also does DNS lookups and those may happen at non-startup time. Right, I do tend to forget about that case. > Even if startup works, I'd like to be able to occasionally (say daily) use > DNS to verify that the server is still in the pool. That's a long-term > project. Something like that would also be useful to verify that a > (non-pool) server hadn't moved. Noted. > I agree that it's worth investigating using synchronous DNS. I expect it > will work fine on a lightly loaded system which covers most of the systems > running ntpd. > > On the other hand, I think we should be able to make a clean threaded > version. Don't get fooled by the current code. It's not an inherently hard > problem. A good example might be useful for other projects. Maybe. This is me looking for complexity reductions; important part of my job. > > Later, after I deliver replay, I'm going to do a bunch of profiling. I'm not > > actually convinced that the async-dns code is worth its complexity cost in > > avoided startup lag, and I mean to measure the difference over a large > > number of runs to find out. > > I think that will be misleading on several counts. > > The question is not what is the average time, but rather what is the worst > case. > > The performance in your environment may not tell you much about my > environment. You are certainly right on the first count, but I question the second. I believe the cost of synchronous lookups is dominated by WAN latency rather than the local system's performance, and I think those latencies have dropped a lot in the last decade. Instead of theorizing I want to *look*. -- Eric S. Raymond From hmurray at megapathdsl.net Fri Jan 1 09:47:51 2016 From: hmurray at megapathdsl.net (Hal Murray) Date: Fri, 01 Jan 2016 01:47:51 -0800 Subject: Cannot compile on Windows 7 64 bits with Visual Studio 2013 community. In-Reply-To: Message from "Eric S. Raymond" of "Fri, 01 Jan 2016 02:06:27 EST." <20160101070627.GA2128@thyrsus.com> Message-ID: <20160101094751.93F02406057@ip-64-139-1-69.sjc.megapath.net> esr at thyrsus.com said: > I believe the cost of synchronous lookups is dominated by WAN latency rather > than the local system's performance, and I think those latencies have > dropped a lot in the last decade. Instead of theorizing I want to *look*. If everything goes right, WAN latency may be the major delay. But my ISP may be less competent than yours and one of their DNS servers may be down more than yours, or more overloaded, or ... Maybe we should start a project outside of NTP to measure DNS lookup times. -- These are my opinions. I hate spam. From hmurray at megapathdsl.net Sun Jan 3 07:37:12 2016 From: hmurray at megapathdsl.net (Hal Murray) Date: Sat, 02 Jan 2016 23:37:12 -0800 Subject: asciidoc tables - column widths Message-ID: <20160103073713.1009C406057@ip-64-139-1-69.sjc.megapath.net> Many of the tables in decode.html are hard to read. I just hacked things a bit, but I can't find a way to say what I want. I can set the width of the whole table as a fraction of the window and each column as a fraction of the table width. But I have no idea how wide the user has setup their window for the web page. Expressing things in fractions is good most of the time, but this seems to be one of the nasty examples. With a reasonable width window, the table only needs a small fraction of the window. But if the window is narrower, the table needs the full width. Is there any way to tell asciidoc to make this column wide enough to hold the longest text in this column? I'd be willing to describe widths in characters if that will help. -- These are my opinions. I hate spam. From esr at thyrsus.com Sun Jan 3 18:02:40 2016 From: esr at thyrsus.com (Eric) Date: Sun, 3 Jan 2016 13:02:40 -0500 Subject: asciidoc tables - column widths In-Reply-To: <20160103073713.1009C406057@ip-64-139-1-69.sjc.megapath.net> References: <20160103073713.1009C406057@ip-64-139-1-69.sjc.megapath.net> Message-ID: <20160103180240.GB31346@thyrsus.com> Hal Murray : > > Many of the tables in decode.html are hard to read. I just hacked things a > bit, but I can't find a way to say what I want. I can set the width of the > whole table as a fraction of the window and each column as a fraction of the > table width. > > But I have no idea how wide the user has setup their window for the web page. > Expressing things in fractions is good most of the time, but this seems to > be one of the nasty examples. With a reasonable width window, the table only > needs a small fraction of the window. But if the window is narrower, the > table needs the full width. > > Is there any way to tell asciidoc to make this column wide enough to hold the > longest text in this column? > > I'd be willing to describe widths in characters if that will help. TL;DR I don't think there's any way to express column widths in absolute units. IIRC the underlying XML-DocBook can't do that. Here's the relevant documentation. In the second bullet point of 23.4, "output column width markup attributes" links to 23.7. http://www.methods.co.nz/asciidoc/userguide.html#X70 23.4. Column Specifiers Column specifiers define how columns are rendered and appear in the table cols attribute. A column specifier consists of an optional column multiplier followed by optional alignment, width and style values and is formatted like: [*][][][