Article View: news.software.nntp
Article #20695Re: Which is the best news download method.
From: Ian Stirling
Date: Tue, 19 Aug 1997 00:00
Date: Tue, 19 Aug 1997 00:00
56 lines
3799 bytes
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
Technical Details
Message-ID:
<000033F9D134.NO_UCE@mauve.demon.co.uk>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-mailReferences:
<3407314d.43537089@223.103.5.35> <000033F371A2.NO_UCE@mauve.demon.co.uk> <5t0qdo$i7r$4@darla.visi.com> <5t503s$omi$1@news.du.etx.ericsson.se>Show Full Headers
Complete Article Headers
Message-ID: <000033F9D134.NO_UCE@mauve.demon.co.uk> Subject: Re: Which is the best news download method. Date: Tue, 19 Aug 1997 00:00:00 +0000 From: Ian Stirling <000033F9D134.NO_UCE@mauve.demon.co.uk> References: <3407314d.43537089@223.103.5.35> <000033F371A2.NO_UCE@mauve.demon.co.uk> <5t0qdo$i7r$4@darla.visi.com> <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 X-Deja-AN: 265296453 X-Mail2News-Path: punt-1.mail.demon.net!mauve.demon.co.uk X-Note: Anti-UCE in effect, replying should work if you are not UCE'ng X-Mail2News-User: Send.NO_UCE@mauve.demon.co.uk MMDF-Warning: Parse error in original version of preceding line at punt-1.mail.demon.net X-Warning0: For unsolicited commercial email, sent (or for causing such to be sent) to X-Warning1: the email address on this message, I reserve the right to levy a charge X-Warning2: for my time and expenses of up to 100 pounds sterling per message, plus X-Warning3: 10 pounds per 100 lines of message body, plus legal, penalty or other costs Newsgroups: news.software.nntp