Article View: news.software.nntp
Article #8597Re: idea: pre-spawned nnrpds
From: Eric Stern
Date: Tue, 18 Jun 1996 00:00
Date: Tue, 18 Jun 1996 00:00
40 lines
2840 bytes
2840 bytes
Joe Greco (jgreco@brasil.moneng.mei.com) wrote: : In news.software.nntp article <4p9ta0$1vn@thunder.mgl.ca>, estern@lightning.mgl.ca (Eric Stern) wrote: : :Just a thought that occured to me...my httpd (Apache) keeps pre-spawned : :children around to improve the reponse time of the web server. ie when a : :new request comes in it can be passed off to one of the children without : :the overhead of spawning a new process. Works well. : : : :I noticed that when connecting to my news server, it takes a while to make : :the connection (this is the time it takes for innd to spawn a nnrpd) but : :once your connected it runs pretty quick. So if innd kept a nnrpd : :ready to go, when it got a connection it could hand it off quicker. : :Then spawn *another* nnrpd in preparation for the next connection. : : The problem isn't that it takes a while to spawn an nnrpd. It's that it : takes a while for INN to come to the realization that there's another : connection.. due to the monolithic singlethreaded design, it's hard to : avoid this. The real solution, which some of us are working on in prototype : form, is to pull nnrpd processing out of INN entirely, which allows nifty : new features (such as connection concurrency counters, etc) to be added. Ya, someone else pointed this out to me. So, I got a patch for innd that tunes the main IO loop to put a highter priority on watching for new connections. Works beautifully! New connects aren't instantaneous, but its a heck of a lot faster than it used to be, even with 2 or 3 streaming feeds coming in. Got the patch (and other goodies) from Dave Barr's INN page. (http://www.math.psu.edu/barr/INN.html in case you didn't know) -- /-----------------------------Business----------------------------------/ / Eric Stern - Network Manager - MGL Systems Internet - (519) 651-2713 / / $30/month Unlimited time Internet access - http://www.mgl.ca / /-----------------------------Personal----------------------------------/ / estern@mgl.ca - http://www.mgl.ca/~estern - Stormalong &| Sethanis / / Winsock MU* client - http://www.mgl.ca/~estern/winworld.html / /-----------------------------------------------------------------------/
Technical Details
Message-ID:
<4q6hj3$arv@thunder.mgl.ca>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:
<4p9ta0$1vn@thunder.mgl.ca> <4q3gth$n03@brasil.moneng.mei.com>Show Full Headers
Complete Article Headers
Message-ID: <4q6hj3$arv@thunder.mgl.ca> Subject: Re: idea: pre-spawned nnrpds Date: Tue, 18 Jun 1996 00:00:00 +0000 From: estern@lightning.mgl.ca (Eric Stern) References: <4p9ta0$1vn@thunder.mgl.ca> <4q3gth$n03@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-mail X-Deja-AN: 160853980 Distribution: inet Organization: MGL Systems Internet Newsgroups: news.software.nntp