Article View: news.software.nntp
Article #40483Re: INN maxed? Time to add a Diablo router?
From: Brad Knowles
Date: Mon, 04 Oct 1999 00:00
Date: Mon, 04 Oct 1999 00:00
69 lines
3991 bytes
3991 bytes
In article <37f8c10e$0$7751@news.execpc.com>, jgreco@ns.sol.net (Joe
Greco) wrote:
> You're insane.
Well, I did admit (a while back) that it had been over ten years since
I had done any real programming, and that I was hoping to be able to use
hacking on Diablo as an excuse to get my hands dirty again.
I am not surprised by my lack of knowledge of things related to system
programming, but I figure there's only one real way to learn -- make
mistakes and actually try them.
I don't know whether a lobotomy would help me become a better system
programmer, but if that's the case, then maybe I don't want to try to find
an excuse to get my hands dirty again.
> Diablo is most
> of what you'd want to see in a news reception engine.
Given that explanation, I think I have a slightly better (up to
0.000000001% now) understanding of the Diablo architecture, etc....
> You'd want to
> pull the filter processing out of the main process. This almost certainly
> would involve a dedicated child subprocess and some rather interesting IPC,
> but could be done.
This could either be done with shared memory and the existing forking
daemon model, or with threaded processing, right?
> Doing the same thing to the outbound feed process
> would also help, and would trivialize the master Diablo process into mostly
> accepting new connections.
Hmm. Wow. Yeah, that'd be pretty cool.
> However, Diablo's real shortcoming is its outbound feed system, which is
> where INN has some strength (sigh!) innfeed has some of the same pitfalls,
> being select-oriented, but at least you can have several of them running,
> to gain concurrency.
Running the outbound feed process as a separate thread wouldn't help
solve this problem?
> Ultimately, you want to write a monolithic news system that is either
> threaded at the kernel level (more ideal) or uses async disk I/O (less
> ideal but OK for non-SMP). One of the Sedores mailed me some new news
> server code that implements this, but I've yet to find the time to putz
> with it :-( :-( :-(
Uhh, I'm already running on SMP machines, and the idea of fully async
disk I/O scares the heebie-jeebies out of me -- the same way that async
mounted filesystems under Linux or FreeBSD scare me.
Myself, I would prefer to do I/O on the outbound feed system as
non-blocking pipes or sockets, with file I/O reserved for overflow and
delayed feeds. In that case, file I/O could be buffered or otherwise done
pretty much however you want in order to get maximum efficiency.
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
Are you a USENET news server administrator outside of North America or
Western Europe? Would you like a newsfeed from a site in the Freenix
Top 100? If so, please contact me via private e-mail for details.
Technical Details
Message-ID:
<brad-0410991800210001@brad.techos.skynet.be>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:
<foo-0210991412200001@192.168.2.3> <brad-0310991300490001@dialup995.brussels2.skynet.be> <ylvh8olmsi.fsf@windlord.stanford.edu> <brad-0410991314520001@brad.techos.skynet.be> <37f8c10e$0$7751@news.execpc.com>Show Full Headers
Complete Article Headers
Message-ID: <brad-0410991800210001@brad.techos.skynet.be> Subject: Re: INN maxed? Time to add a Diablo router? Date: Mon, 04 Oct 1999 00:00:00 +0000 From: brad@shub-internet.org (Brad Knowles) References: <foo-0210991412200001@192.168.2.3> <brad-0310991300490001@dialup995.brussels2.skynet.be> <ylvh8olmsi.fsf@windlord.stanford.edu> <brad-0410991314520001@brad.techos.skynet.be> <37f8c10e$0$7751@news.execpc.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: 532689413 X-Complaints-To: abuse@skynet.be X-Trace: news1.skynet.be 939052830 20495 195.238.1.121 (4 Oct 1999 16:00:30 GMT) Organization: Shub-Internet X-URL: http://www.shub-internet.org/ NNTP-Posting-Date: 4 Oct 1999 16:00:30 GMT Newsgroups: news.software.nntp