Article View: news.software.nntp
Article #92746Re: High and low water marks vs active file
From: InterLinked
Date: Sun, 03 May 2026 22:17
Date: Sun, 03 May 2026 22:17
79 lines
5250 bytes
5250 bytes
On 5/3/2026 5:49 PM, Julien ÉLIE wrote: > Hi InterLinked, > >> To make an extreme example, if a group with a lot of articles had all >> of them except the low water mark article deleted (and "last" is >> 3000), you could have a response like: >> >> 211 3000 1 3000 misc.test >> >> [and the count has to be at least 3000, per the RFC, so we can't even >> have 211 1 1 3000 misc.test to indicate there are definite gaps] > > Where do you read in RFC 3977 that the estimate "has to be at least 3000"? > > The wording is: > > If the group is not empty, the estimate MUST be at least the actual > number of articles available and MUST be no greater than one more > than the difference between the reported low and high water marks. That was what I was looking at, but I don't think my brain was working when I read that, disregard :) >> That brings me to another observation: I've noticed that most inactive >> newsgroups in INN return high 0 and low 1 (at least for those I've >> analyzed in responses for Usenet groups), which seemed odd to me as I >> would have thought INN would naturally take the <high> in the active >> file, and taking low = <high> and high = low - 1, return something >> more like 211 0 3000 2999 misc.test >> Is there a reason INN just uses 1/0 instead? > > I confirm what Russ said: high = low - 1 is what INN replies for empty > newsgroups which formerly received at least one article. Isn't this also true for empty newsgroups which have never received an article either? Per my earlier comment about seeing a bunch of low=1 and high=0 in the LIST ACTIVE response from Eternal September, e.g.: LIST ACTIVE comp.dcom* 215 Newsgroups in form "group high low status" comp.dcom.cabling 0000000000 0000000001 y comp.dcom.cell-relay 0000000000 0000000001 y comp.dcom.fax 0000000000 0000000001 y comp.dcom.isdn.capi 0000000000 0000000001 y comp.dcom.lans.ethernet 0000000000 0000000001 y comp.dcom.lans.misc 0000000000 0000000001 y > We even had a bug until recently as for versions prior to 2.7.1, INN > returned low = high + 1 which was unfortunately wrong when high was > 2^31-1... A pretty rare case though :) > It now returns high = low - 1 except of course when low is 0 (for > newsgroups which have never received any article). > You already spotted that as you referenced the related issue in the > Github tracker :) Yes, in fact, I found both the issue and the fix to be very helpful (as well as the submitted erratum, the rejection to which was not very clear to me initially) as I was thinking about this, prior to my initial post. Had I not seen that, I would have gone ahead and made the same "mistake" of doing LOW = HIGH + 1 (in fact, I had already started to do that). The "wrong" way seemed more natural to me, because you can then set LOW = HIGH + 1 and not have to worry about adjusting LOW when the next article is assigned. Setting LOW = HIGH (well, LOW = LAST, to be specific) and then HIGH = LOW - 1 isn't really intuitive. To confirm my own understanding, the only reason we do LOW = LAST (which is the same as LOW = HIGH in INN) and then HIGH = LOW + 1, rather than LOW = HIGH + 1, is to account for overflow when LAST/HIGH is the max article number? Circling back to a previous point that it's ideal to set the low water mark as high as "legally" valid at any given point, the LOW = HIGH + 1 method also has the advantage of being one higher than the other way, which you pointed out in the erratum. I kind of wonder if it would be valid to do it this way, except in the case that HIGH is the max article number (which seems unlikely to happen often, and when it does, the group is saturated anyways). Not that I'm planning to do that, but maybe that will help me understand something else I missed.
Technical Details
Message-ID:
<10t8hh9$38008$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<10t0m5h$1177o$1@dont-email.me> <877bpo570b.fsf@hope.eyrie.org> <10t12o5$14bjd$1@dont-email.me> <10t8fss$2a1vp$4@news.trigofacile.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: InterLinked <nntp@phreaknet.org> Newsgroups: news.software.nntp Subject: Re: High and low water marks vs active file Date: Sun, 3 May 2026 18:17:11 -0400 Organization: A noiseless patient Spider Lines: 79 Message-ID: <10t8hh9$38008$1@dont-email.me> References: <10t0m5h$1177o$1@dont-email.me> <877bpo570b.fsf@hope.eyrie.org> <10t12o5$14bjd$1@dont-email.me> <10t8fss$2a1vp$4@news.trigofacile.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sun, 03 May 2026 22:17:14 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3407880"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+2wTH+83nWozM9ksl/5YkIYBBe1yiUz/g="; posting-host="7e9888228dde5efb41cfd03af16168d3" Cancel-Lock: sha1:nNzKDzVxaNPf0wK9a84M+klbUmA= sha256:sAys6AokG5g0ZT+b1muKOnM5JDMA9WQuCJLi2//a66w= sha1:LdOh0H26fP1f1VhSlWXSOMY0/9A= Content-Language: en-US X-Mailer: MailNews/52.9.9224a1 In-Reply-To: <10t8fss$2a1vp$4@news.trigofacile.com>