Article View: news.software.nntp
Article #6918Re: newsfeed wanted.
From: Joe Greco
Date: Thu, 25 Apr 1996 00:00
Date: Thu, 25 Apr 1996 00:00
58 lines
3638 bytes
3638 bytes
In news.software.nntp article <4lmibb$ce7@bushwire.mira.net.au>, Mark Delany <markd@mira.net.au> wrote: :Gosh. Sounds like a simpler idea might be to disentangle the reader :process from the feeder process. If, eg, you could run two innds, one :that only handled reader processing and one that handles everything :else, wouldn't that get rid of your reader lags? Yes, and some of us are already doing it :-) Well, I'm not running two "innd"'s, I'm running "innd" on port 1119 and "connectd" on port 119. "connectd" has the sole mission in life of putzing with nnrp connections and forking off in.nnrpd's. I actually like this solution a lot more because with a very minimal investment of logic, one could put hard caps on factors such as "simultaneous readers", etc. :Sure you'd have to move one of the innds to a different port number - :naturally that'd be your feeder innd (as innxmit and nntplink both :trivially support that and negotiating a new port with your feeds is :typically much easier than getting all your readers to change). You :also might want to slim down the reader innd to have just enough code :to fork an nnrpd. Yeah, well done, it's still a trivial amount of code. If anyone wants it... the hard part is done ;-) However, this is not really solving the base performance issue. IMHO, nnrpd's are a side effect and simply serve to illustrate the greater ill that Jerry and others (including myself) have pointed out repeatedly. If you have half a dozen streaming and half a dozen nonstreaming NNTP sessions coming in, and maybe an average five articles "in the stream" on each of those streaming NNTP connections, you get the pleasure of processing (6 * 5 = 30, plus 6) 36 articles on a single pass through the service loop. Most machines I see accept articles at a rate of 10 or so per second peak, which means a minimum of four seconds between passes. That's OK for the streaming connections but really stinks bad for the nonstreaming connections... well it's a little more complicated than that, of course, but nonstreaming connections quickly get starved by the streamers. Personally, I would still like to see per-connection "nntpd"'s, a front end for INN that sit there and chat NNTP with the remote site, doing local history lookups, rejecting articles asynchronously w.r.t. other connections and/or the INN main loop. The nntpd would still pass off nonrejected articles to INN for "regular" processing, but reject processing would be totally offloaded (and most of my inbound feeds are rejecting 80% of the articles). I did a hacky proof of concept that appeared to work quite well. It would definitely be trading CPU for concurrency though. ... Joe ------------------------------------------------------------------------------- Joe Greco - Systems Administrator jgreco@ns.sol.net Solaria Public Access UNIX - Milwaukee, WI 414/546-7968
Technical Details
Message-ID:
<4logls$307@brasil.moneng.mei.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-mailReferences:
<4l8jg8$pcd@bull.hkstar.net> <4llpk2$m0a@olivea.atc.olivetti.com> <4lmccn$6df@panix4.panix.com> <4lmibb$ce7@bushwire.mira.net.au>Show Full Headers
Complete Article Headers
Message-ID: <4logls$307@brasil.moneng.mei.com> Subject: Re: newsfeed wanted. Date: Thu, 25 Apr 1996 00:00:00 +0000 From: jgreco@brasil.moneng.mei.com (Joe Greco) References: <4l8jg8$pcd@bull.hkstar.net> <4llpk2$m0a@olivea.atc.olivetti.com> <4lmccn$6df@panix4.panix.com> <4lmibb$ce7@bushwire.mira.net.au> 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: 151415391 Distribution: inet Organization: Marquette Electronics, Inc. - Milwaukee, WI. Newsgroups: news.software.nntp