🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #11533

Re: What's wrong with sucking? and how do we fix it?

#11533
From: Julio Sanchez
Date: Wed, 09 Oct 1996 00:00
66 lines
3387 bytes
In article <53e24d$1j8@pixi.com> boby@pixi.com (Robert A. Yetman) writes:

> I should be using:
> 
> for each group {
> 	GROUP
> 	XOVER msg-id
> 	if not dupe {
> 		ARTICLE
> 	}
> }

I suggested something similar in a parallel thread.  I was thinking
that to go from an article number to a message-ID you needed to hit
the spool.  Then I actually read the INN code and found out that XHDR
is implemented using the NOV data if available.  So, for INN, it isn't
necessarily better to use XOVER instead of XHDR.  So I retract what I
said.  Also, since XHDR or XOVER won't hit the spool, you can collect
info first and retrieve the articles later the way you do now.

However, when you do ARTICLE, you'll hit history and this is
unnecessary since you already collected enough info to avoid that
history hit.

You said that you sort message-ID's to dedupe.  Is this true?  I think
not all suck versions do, because I have seen articles come in group
order, not ramdomly.  Maybe it changed later.

If you read ramdomly, you'll be jumping around the spool.  If you read
in group order, better access locality is obtained in most
environments.  Spindle moves kill performance (I used to work 10 years
ago on database administration and we would send developers back to
the design table just by hearing the disk noises).  In some cases, other
processes will conspire to nullify your access locality, but at least
suck will not make things worse.

> The only problem with your approach that I see right away,
> is that is makes restarts about 10 times more difficult.
> With my current algorithm, I can write out the list of msg-ids
> after de-duping, then just keep track of which I last succesffully
> downloaded.  Then if I get aborted, I know exactly what articles
> I have left to download.  

If, and only if, you get message-ids for deduping from the overview,
you probably need no major changes to the algorithm.  You write to
suck.sorted the group name and the article number instead of the
message-ids.  Then you run over it doing GROUP and ARTICLE when
needed.

On the other hand, if you must cater for servers unable to give you
message-ids without hitting the spool, you need a complete overhaul.
Not only restarting is a problem, but bookkeeping in sucknewsrc is
more difficult.  I don't think you need to do this.

A satisfied user (I am both a sucker and an administrator for a sucked
server),

Julio
-- 
Julio Sanchez, SGI Soluciones Globales Internet
Tel: (91) 804 28 37 Fax: (91) 804 14 05  WWW: http://www.esegi.es
jsanchez@esegi.es jsanchez@gmv.es
 PGP Key fingerprint =  E5 29 93 6F 41 4E 00 E2  90 11 A1 8C 72 D0 DE 71 

Technical Details
Message-ID: <x0n2xwbh6k.fsf@melmac.gmv.es>
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: <DyuynJ.CIA@djwhome.demon.co.uk> <53e24d$1j8@pixi.com>

Show Full Headers
Complete Article Headers
Message-ID: <x0n2xwbh6k.fsf@melmac.gmv.es>
Subject: Re: What's wrong with sucking? and how do we fix it?
Date: Wed, 09 Oct 1996 00:00:00 +0000
From: Julio Sanchez <jsanchez@esegi.es>
References: <DyuynJ.CIA@djwhome.demon.co.uk> <53e24d$1j8@pixi.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
X-Deja-AN: 188237093
Sender: jjsf@melmac.gmv.es
Content-type: text/plain; charset=US-ASCII
Organization: GMV, S.A.
Mime-version: 1.0 (generated by tm-edit 7.46)
Newsgroups: news.software.nntp