🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #190477

Re: Why is Xnews such a resource hog?

#190477
From: Murray Peterson
Date: Thu, 07 Sep 2006 01:40
37 lines
2817 bytes
"Jacques E. Bouchard" <invalid@invalid.invalid> wrote in 
news:Xns9835EC6249272jebouchard451yahooca@212.227.76.70:

> I guess I should have been clearer and stated right out that I *do* use 
> Xnews for binaries, but although I've set retention to "headers only" 
> for seven days and rarely if ever load more than 300,000 headers at 
> once, Xnews takes much too much time and resources - and I know it's
> not caught in a loop, it just seems like it.
> 
> I'm sure other people who handle large binaries might know what I mean.

I do, but I also think that your expectations are out of line with 
reality.  Read up a bit on threading algorithms (e.g. 
www.jwz.org/doc/threading.html) and see how much work has to be done.  If 
you do read that article, be warned that it doesn't account for binaries, 
where most of the threading must be done via the subject header.  Add in 
handling of bad subjects, and things get *really* hard.  For example, how 
would you thread these article subjects:
    	"[0/1] pic.jpg(1/1)"
    	"[1/1] pic.jpg(1/1)"
    	"[1/1] pic.jpg(0/1)"
    	"[1/1] pic.jpg(1/1)"
Now multiply that sort of logic by 100,000, and you have some serious 
computational overhead.  It doesn't increase in a linear fashion either;  
double the headers and you require more than double the cpu cycles.

On top of that, just look at the downloading itself.  Each header is 
about 1Kb, so your 300,000 headers requires a download of 300 megabytes 
over a 10 megabit line (or worse) -- there is 300+ seconds of waiting 
time (e.g. 5 minutes).

Limit your header downloads to smaller chunks.

-- 
Murray Peterson
Email: murray.spam3trap@shaw.ca
URL:   http://members.shaw.ca/murraypeterson/
Technical Details
Message-ID: <Xns9836C83129FA3farkle@64.59.135.159>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!pd7cy3no!pd7cy4no!shaw.ca!pd7tw3no.POSTED!53ab2750!not-for-mail
References: <Xns9835BDEBA882jebouchard451yahooca@212.227.76.70> <Xns9835EAFCFCC5Duniquelyme@tomate.motzarella.org> <Xns9835EC6249272jebouchard451yahooca@212.227.76.70>

Show Full Headers
Complete Article Headers
Message-ID: <Xns9836C83129FA3farkle@64.59.135.159>
Subject: Re: Why is Xnews such a resource hog?
Date: Thu, 07 Sep 2006 01:40:36 GMT
From: Murray Peterson <mwp@home.com.invalid>
References: <Xns9835BDEBA882jebouchard451yahooca@212.227.76.70> <Xns9835EAFCFCC5Duniquelyme@tomate.motzarella.org> <Xns9835EC6249272jebouchard451yahooca@212.227.76.70>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!pd7cy3no!pd7cy4no!shaw.ca!pd7tw3no.POSTED!53ab2750!not-for-mail
X-Trace-PostClient-IP: 70.72.140.252
Newsgroups: news.software.readers
Organization: None
User-Agent: Xnews/06.02.16
Lines: 37
NNTP-Posting-Host: 64.59.135.176
X-Complaints-To: abuse@shaw.ca
X-Trace: pd7tw3no 1157593236 64.59.135.176 (Wed, 06 Sep 2006 19:40:36 MDT)
NNTP-Posting-Date: Wed, 06 Sep 2006 19:40:36 MDT