🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #20572

Re: Which is the best news download method.

#20572
From: Per Hedeland
Date: Sat, 16 Aug 1997 00:00
39 lines
2472 bytes
In article <5t0qdo$i7r$4@darla.visi.com> drechsau@yuck.net (Mike
Horwath) writes:
>Ian Stirling <000033F371A2.NO_UCE@mauve.demon.co.uk> wrote:
>: Well, you really need to put a lot of memory into the box, for good 
>: newnews support, as IIRC INN simply searches through the history
>: file for new articles, which means you need to hold the whole
>: 300++ Mb of it in RAM.
>
>Uhm, bullshit :)
>
>It has to hold the database, not the text file.  Depending on their
>history retention, that database could be from 20MB to well over 180MB
>in size.

Bullshit to you too:-) - the database (i.e. .dir/.pag) is useless for
NEWNEWS. Which isn't to say that INN (nnrpd) needs to get the whole text
file into memory, it does do a binary search to find the right place -
and if I remember correctly the measurements I did long ago, this is
pretty fast (though it probably wastes a bit of RAM in the form of
filesystem cache, due to misguided read-ahead by the OS).

The bad part is the subsequent reading and checking of all the remaining
lines in history. It does sequentially pull that part (which obviously
can be arbitrarily big depending on the date/time specified in NEWNEWS)
into RAM of course, but it also costs *a lot* of CPU to do the parsing
and newsgroup pattern matching on each line - and if distributions are
specified, every matching article must be opened and read since this
info isn't in history (though this part has rarely worked in INN:-).

And btw, given Ian's domain name, and past discussions here, the
suggestion about "per-group history files" isn't just speculation, but
in fact a proven method to get NEWNEWS to work in a large-scale
operation. Hmm, perhaps one could do NEWNEWS off the .overview files...?

--Per Hedeland
per@erix.ericsson.se

Technical Details
Message-ID: <5t503s$omi$1@news.du.etx.ericsson.se>
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: <3407314d.43537089@223.103.5.35> <000033F371A2.NO_UCE@mauve.demon.co.uk> <5t0qdo$i7r$4@darla.visi.com>

Show Full Headers
Complete Article Headers
Message-ID: <5t503s$omi$1@news.du.etx.ericsson.se>
Subject: Re: Which is the best news download method.
Date: Sat, 16 Aug 1997 00:00:00 +0000
From: per@erix.ericsson.se (Per Hedeland)
References: <3407314d.43537089@223.103.5.35> <000033F371A2.NO_UCE@mauve.demon.co.uk> <5t0qdo$i7r$4@darla.visi.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: 264604664
Organization: Ericsson Telecom, Stockholm, Sweden
NNTP-Posting-User: per
Newsgroups: news.software.nntp