🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #32518

Xref in overview Pros and Cons (was Re: Not a problem, a curiosity)

#32518
From: Danhiel Baker
Date: Wed, 09 Apr 1997 00:00
92 lines
5192 bytes
I've received a couple of email replies to my question about the effects
of removing Xrefs from the overview files.  Both mentioned that Trn
makes use of this, and I've had "user feedback" that if you are using
Trn on a system that goes from supporting Xrefs to not supporting them,
Trn gets very confused and thinks all of the articles have disappeared -
apparently IF Xrefs should exist THEN Trn does an 'xhdr xref <range>'
and expects at least:

221 xref fields follow
1234 (none)
1235 (none)
..

which would signify that the individual articles in question lack Xref
headers.  If you don't have "Xref:full" in your overview.fmt, however,
the response is just

221 xref fields follow
..

Trn thinks (incorrectly and rather rashly, IMO) that those articles must
have been expired, and ditches them.  Aside from the niceness of
"chasing Xrefs", I'd personally have been checking 'xhdr references' and
go ahead and build my threaded list while verifying what exists and what
doesn't; after that's retrieved, pull down Xrefs and kill already-seen
or -read articles.  (Wayne Davison, are you listening? Assuming you
still maintain Trn... :)  As far as I can tell, you can't do:
XOVER 1233,1236-1238,1240-1252
anyway, so finding small gaps by asking for Xrefs doesn't seem to be
more useful than going straight for actually useful threading info with
XOVER or XHDR references.

Anyway, here's the rub - in today's Usenet, with insanely-crossposted
articles (mainly SPAMed sex-site adverts), Xrefs take up a heck of a lot
of space.  How much, you ask?  Well, a quick check of my
alt.binaries.pictures .overview file showed that
the average line length _with_ the Xref header was just over 650 chars;
after pruning it from each one, the average line length was 160 chars. 
That's a 400% swelling of the file, which will result in slower
performance for all users accessing the group.
INN's nnrpd (in my copy of 1.4unoff4, at least) relies on the .overview
file to determine the article count - the active file is untouched
(which REALLY boggled me the first time it was pointed out to me in a
truss, and still seems mildly odd - nothing in the config.data seems to
relate to this, but maybe I overlooked it...).  This means the entire
(possibly bloated with Xrefs) .overview is read in just to get the high
and low water marks.  And it's not cached, as near as I can tell; this
means that first off, the .overview (which can be sizeable) is opened
and read end-to-end to reply to a 'group alt.blah' command with an
article count and high/low marks.  I'm unsure whether or not this
actually counts the articles or generates the difference based on the
high and low marks.  I'd prefer a guess at the number of articles and
fast retrieval over a possibly slow but precise article count.  Then, of
course, a reader will typically pull down the headers it's interested
for the range it's interested in.  That's another open and reads on the
.overview, but this time the results may be being passed to someone on
the end of a 28.8 line.

I know that some of our .overview files are over a megabyte.  Even in
"manageable chunks", this adds up to a fair amount of time for a modem
user with a reader doing an XOVER.

In the end, is it worthwhile to provide Xref information in the overview
files when compared to the bloating (400%?!?) it causes (primarily) in
the binary groups which increases:
	disk space usage
	the number of blocks read/written/opened when accessing the overview
file
	donwload time for modem users w/reader software using 'XOVER'

With the possible benefits of:
	killfile overly-crossposted articles (but you could use other headers)
	properly "chase Xrefs" when marking an article/thread/group unread
without 		opening the article(s) in question
	keep at least one version of Trn happy (very important in some
environs)

As you probably have guessed, I have come to think Xrefs in the overview
are burdensome and that their meager benefits don't outweigh their
resource costs to the system and the users.  I'm not sure that
expireover runs any faster overall without the Xref headers, but I'd bet
it makes it through alt.binaries more quickly.

Hopefully this will stir up some interest; if I've missed something,
please point it out.

Danhiel Baker
Chief SysAdmin,
Supernews

Technical Details
Message-ID: <334C4AC9.17FD@moreinfo.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <5i38mj$djn$1@news.wco.com> <5i3md2$e47$1@tabby.kudra.com> <33496F19.22A2@REM_THIS.moreinfo.com> <33499DBF.6D1F34EA@spinne.com> <x7912t9mdq.fsf@blodwen.watching.org> <87hghgetb7.fsf@erlenstar.demon.co.uk> <ymlo6sdx9a.fsf@tang.ccr-p.ida.org> <5igoa4$83i@crcnis3.unl.edu>

Show Full Headers
Complete Article Headers
Message-ID: <334C4AC9.17FD@moreinfo.com>
Subject: Xref in overview Pros and Cons (was Re: Not a problem, a curiosity)
Date: Wed, 09 Apr 1997 00:00:00 +0000
From: Danhiel Baker <danhiel@REM_THIS.moreinfo.com>
References: <5i38mj$djn$1@news.wco.com> <5i3md2$e47$1@tabby.kudra.com> <33496F19.22A2@REM_THIS.moreinfo.com> <33499DBF.6D1F34EA@spinne.com> <x7912t9mdq.fsf@blodwen.watching.org> <87hghgetb7.fsf@erlenstar.demon.co.uk> <ymlo6sdx9a.fsf@tang.ccr-p.ida.org> <5igoa4$83i@crcnis3.unl.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 231935663
Organization: All USENET -- http://www.Supernews.com
Newsgroups: news.software.readers,news.software.nntp