🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #40540

Re: INN maxed? Time to add a Diablo router?

#40540
From: Christopher M Sedore
Date: Tue, 05 Oct 1999 00:00
53 lines
2946 bytes
In article <37f94ee5$0$7742@news.execpc.com>,
  jgreco@ns.sol.net (Joe Greco) wrote:
[...]
> 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.

It depends on how big N gets.  If N==2, then I'm not sure that it
really matters.  At 2 processors, you get a fairly nice spilt between
handling io (disk/net) and actually mucking with articles.  At N==3,
running an external process for filtering means you get decent use of 3
processors.  Frankly, I'd be a little shocked if someone could
demonstrate need for quad processing for transit.

> 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.

Having written news software covering three different approaches
(multiple threads/blocking io;thread pool/async io;single thread/async
io), I can say that it is significantly easier to do thread per
connection with blocking io.  Maybe my brain isn't big enough, but
having to deal with tracking state through async io while using
multiple threads and mutexes can drive a person crazy.

Most of the user-threading models I've seen assume disk io is instant.
Thus they face significant limitations when instant isn't quite how it
works out.

-Chris


Sent via Deja.com http://www.deja.com/
Before you buy.

Technical Details
Message-ID: <7tcv4u$te4$1@nnrp1.deja.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
References: <foo-0210991412200001@192.168.2.3> <ylr9jbdsan.fsf@windlord.stanford.edu> <7tb517$bsu$1@newssvr02.news.prodigy.com> <ylpuyuakvk.fsf@windlord.stanford.edu> <37f94ee5$0$7742@news.execpc.com>

Show Full Headers
Complete Article Headers
Message-ID: <7tcv4u$te4$1@nnrp1.deja.com>
Subject: Re: INN maxed? Time to add a Diablo router?
Date: Tue, 05 Oct 1999 00:00:00 +0000
From: Christopher M Sedore <cmsedore@maxwell.syr.edu>
References: <foo-0210991412200001@192.168.2.3> <ylr9jbdsan.fsf@windlord.stanford.edu> <7tb517$bsu$1@newssvr02.news.prodigy.com> <ylpuyuakvk.fsf@windlord.stanford.edu> <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-mail
X-Deja-AN: 533074073
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows 95)
X-Http-Proxy: 1.1 x30.deja.com:80 (Squid/1.1.22) for client 130.128.22.128
Organization: Deja.com - Before you buy.
X-Article-Creation-Date: Tue Oct 05 13:40:49 1999 GMT
X-MyDeja-Info: XMYDJUIDcmsedore
Newsgroups: news.software.nntp