🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by John Gorst Wed, 13 Aug 1997 00:00
Which is the best news download method.
#20479
Author: John Gorst
Date: Wed, 13 Aug 1997 00:00
32 lines
1960 bytes
I use the FASTRAQ post server to download news from my ISP's news server
(Virgin.Net). I did use the newnews method of downloading news which worked
fine.

Yesterday Virgin _upgraded_ their news server to a completely new system.
Part of this upgrade was to disable the newnews method of downloading news.
Are there any specific reasons why a system operator would want to do this?
Does it put an excessive load on the system - or is it because Virgin do
not want to put enough money into their news service to provide the
processing power to allow the NEWNEWS command to work efficiently?

Anyway I had to change FASTRAQ to download news via a different method. I
am faced with choosing between GROUP,XOVER,XHDR. Which is the fastest
method for me to use? (I download all the articles for all my subscribed
groups)

I am currently trying to convince the Operations Manager to enable the
NEWNEWS command without success. My reason for doing this is because I find
that downloading news via the other methods is a lot slower, and a lot of
other people on the Virgin service are noting slower downloads using the
Agent software. I assume that the NEWNEWS method is used by the Agent
software by default, and is the fastest method for the client?

Thank you for any advice you can give me
--
JG
j.gorst@virgin.net         http://jgorst.home.ml.org
         PGP key available on request


Re: Which is the best news download method.
#20529
Author: Ian Stirling
Date: Thu, 14 Aug 1997 00:00
34 lines
2799 bytes
John Gorst <j.gorst@virgin.net> wrote:
<snip>
: Yesterday Virgin _upgraded_ their news server to a completely new system.
: Part of this upgrade was to disable the newnews method of downloading news.
: Are there any specific reasons why a system operator would want to do this?
: Does it put an excessive load on the system - or is it because Virgin do
: not want to put enough money into their news service to provide the
: processing power to allow the NEWNEWS command to work efficiently?

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.
The proper way to do this is not to break commands because your
server is not well written enough to handle them, but to fix
things. Of course, some people do not have this choice.
There are of course many ways that it could be improved, perhaps
the simplest way might be to write each message-ID as it comes in
to a file in it's newsgroup, and and it's time to an index.
Newnews would then be done by opening the time index file, doing
a binary search (or maybe some more efficiant method) for the time, 
and reading message-ID's out of the other file.

Newnews is a usefull command, it's a pity that it's implementation
in some news-servers makes it so heavy a load.

-- 
Ian Stirling.   Designing a linux PDA, see  http://www.mauve.demon.co.uk/
-----******* If replying by email, check notices in header *******-------
He who lives in a glass house should not invite he who is without sin.


Re: Which is the best news download method.
#20544
Author: Ian Stirling
Date: Fri, 15 Aug 1997 00:00
45 lines
3263 bytes
Mike Horwath <drechsau@yuck.net> wrote:
: Ian Stirling <000033F371A2.NO_UCE@mauve.demon.co.uk> wrote:
: : John Gorst <j.gorst@virgin.net> wrote:
: : <snip>
: : : Yesterday Virgin _upgraded_ their news server to a completely new system.
: : : Part of this upgrade was to disable the newnews method of downloading news.
: : : Are there any specific reasons why a system operator would want to do this?
: : : Does it put an excessive load on the system - or is it because Virgin do
: : : not want to put enough money into their news service to provide the
: : : processing power to allow the NEWNEWS command to work efficiently?

: : 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.

Doesn't it need to search through the history file to find which
articles are posted in which groups?
I can see how NEWNEWS could be done using a binary search on the
database, if it outputted only new message-ID's, and was not
bothered about checking the groups these were in. But 
how can it work if the database does not hold the list of 
groups to which an article was posted?

: -- 
: Mike Horwath    IRC: Drechsau    LIFE: Lover    drechsau@yuck.net
: Visi:  info@visi.com                           drechsau@Geeks.ORG
: Twin Cities area Internet Access:  612-288-0880 for more info
: The founding member of Minn. Coalition for Internet Accessibility

-- 
Ian Stirling.   Designing a linux PDA, see  http://www.mauve.demon.co.uk/
-----******* If replying by email, check notices in header *******-------
Get off a shot FAST, this upsets him long enough to let you make your
second shot perfect.                                Robert A Heinlein.


Re: Which is the best news download method.
#20556
Author: coneill
Date: Fri, 15 Aug 1997 00:00
20 lines
1454 bytes
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.

I believe Ian's point was that for good NEWNEWS support w/INN that you
need enough ram to cache the entire history text file.  FWIW, Ian's
100% correct above.  It is kind of silly that no one has implemented
a fast NEWNEWS for INN, it's rather straightforward.

Re: Which is the best news download method.
#20572
Author: 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

Re: Which is the best news download method.
#20631
Author: Ade Lovett
Date: Mon, 18 Aug 1997 00:00
36 lines
1860 bytes
In article <5t0qdo$i7r$4@darla.visi.com>,
Mike Horwath <drechsau@yuck.net> wrote:
>
>Uhm, bullshit :)

Uhm, bullshit :)  [ok. apologies for the somewhat overkill snipping :)]

See my previous postings on how NEWNEWS can (and is, right now, this
instant, no vaporware) be made to work *effectively* with 2000+
simultaneous connections over a cluster of machines.

Of course, doing this opens y'all up to a whole can of extra
worms (if they can get the article IDs faster, they'll request
the articles themselves faster, and you better make *damn* certain
your 10baseT cards are upgraded to 100baseT :), but it can, relatively
easily, be done.

NEWNEWS is a classic example of where "reference implementations"
fall over.  The easy route is to assume that the reference implementation
is the *only* way things can be done.

cf: recent work by Jerry Aguire (and others) with patches to stock-standard
INN to improve the stall-time during a 'ctlinnd renumber' from many
minutes to a couple of seconds.

All it takes is lateral thinking.  The software is free.  The source
is free.  Don't expect things to be completely handed to y'all on
a plate.  *Work* to make things better.

-aDe

-- 
Ade Lovett, Demon Internet Ltd.

Re: Which is the best news download method.
#20695
Author: Ian Stirling
Date: Tue, 19 Aug 1997 00:00
56 lines
3799 bytes
Per Hedeland <per@erix.ericsson.se> wrote:
: 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 :)
<snip>
: 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...?

It's a pity there is no way (that I see) to add a recieved date 
to the .overview, as then this would be very easy.
The overhead I see with trying this is, for each newsgroup that
NEWNEWS requests, 
binary search to find the first article after the requested date, 
by looking at the .overview file, finding a message-ID, looking 
up the date in the history file, and then continuing the search.

So, for someone taking 40 groups, with an average of 1000 messages
in each .overview, you would see about 10*40=400 history lookups, 
and a similar number of seeks over .overview files.
So, you swap 800 seeks, for a search of a 300Mb file.
Of course, you get dramatic speedups by adding an 
overview.times file, say a 4 byte timestamp, and offset into the
..overview file
This cuts the overhead to 40 reads of 8K or so files, and of 
course stripping the message-ID's out of the 90K*40=3600K of remaining
..overview files (assuming that the NEWNEWS comes requests about
halfway to expire)
So, we need to read about 4M, do very little processor intensive
work, to generate 20K message-ID's, which will need 20K history
lookups, (or maybe not, if you remember the overview files you
read) and maybe 40 or 50 meg of reading articles.

You would gain a little by storing the messageID's not in a 
..overview, but some other structure, but only to the extent of
cutting volume of data read to extract messageID's by maybe a factor
of three.

Anyone see more dramatic speedups available?

-- 
Ian Stirling.   Designing a linux PDA, see  http://www.mauve.demon.co.uk/
-----******* If replying by email, check notices in header *******-------
Acting is merely the art of stopping a large number of people from coughing 
Sir Ralph Richardson


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads