Article View: news.software.nntp
Article #40473Re: INN maxed? Time to add a Diablo router?
From: Joe Greco
Date: Mon, 04 Oct 1999 00:00
Date: Mon, 04 Oct 1999 00:00
34 lines
2393 bytes
2393 bytes
In news.software.nntp article <ylpuyuakvk.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: :bill davidsen <davidsen@tmr.com> writes: : :> The advantage of (kernel level) threads is that you can make better use :> of SMP. : :[...] : :> Not that I want to go back to the days of assembler on 36 bit machines, :> but threads are really effective if you get CPU demand in bursts and can :> gain performance by having more on tap for a moment. : :Right, async I/O isn't really as good as threading in general. It has the :advantage of being a lot easier, though, both to write and to debug :(debugging threaded applications can be a horrid pain). Async I/O will ultimately run into the 100%-busy-in-core-loop problem as well; you can only execute a program "so fast". It'll merely take the disk I/O out of the loop and would essentially be like removing all the I/O wait states in INN. This'll still max out when you need all your CPU just to receive articles (for example), and can't really take advantage of N-way SMP. A nifty kernel-threaded model "should" have the potential to do better. And, in many ways, I'd think it would be _easier_ to write, since you can remove the complex logic that handles multiple connections, attempts to optimize socket I/O, etc. I don't really know how well a user-threaded model would work, but I believe some use async I/O in the background anyways so it might actually work nearly-as-well as the async I/O model would allow. ... JG
Technical Details
Message-ID:
<37f94ee5$0$7742@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-mailReferences:
<foo-0210991412200001@192.168.2.3> <ylr9jbdsan.fsf@windlord.stanford.edu> <7tb517$bsu$1@newssvr02.news.prodigy.com> <ylpuyuakvk.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <37f94ee5$0$7742@news.execpc.com> Subject: Re: INN maxed? Time to add a Diablo router? Date: Mon, 04 Oct 1999 00:00:00 +0000 From: jgreco@ns.sol.net (Joe Greco) References: <foo-0210991412200001@192.168.2.3> <ylr9jbdsan.fsf@windlord.stanford.edu> <7tb517$bsu$1@newssvr02.news.prodigy.com> <ylpuyuakvk.fsf@windlord.stanford.edu> 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: 532882888 Sender: jgreco@earth.execpc.com X-Trace: S=T[4Gb?NPAI5[332>a9YKbfNiaEHUgJGRYcgIRLSUEMlHTKm3AfB6I=UHSLCB4ToK21Vkhja922Fl=jlCRBl;3C4dTgmFn@ShG Organization: sol.net Network Services - Milwaukee, WI Newsgroups: news.software.nntp X-Complaints-To: abuse@execpc.com