🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #38277

Re: Submitting to Freenix

#38277
From: Joe Greco
Date: Sat, 26 Jun 1999 00:00
49 lines
3484 bytes
In news.software.nntp article <9303290311991906734-1@dp-news.maxwell.syr.edu>, "Chris Sedore" <cmsedore@maxwell.syr.edu> wrote:
:[somewhat trimmed]
:Joe Greco wrote in message <3773780d$0$374@news.execpc.com>...
:>In news.software.nntp article <ylg13gyawh.fsf@windlord.stanford.edu>, Russ
:Allbery <rra@stanford.edu> wrote:
:>:Joe Greco <jgreco@ns.sol.net> writes:
:>:> I'm willing to bet otherwise, unless INN has suddenly become radically
:>:> different than in the days of 1.4*.  INN essentially causes I/O streams
:>:> to sleep while it is busy doing other things (like serving other streams
:>:> and waiting on disk I/O).  This performs poorly on a single-CPU system,
:>:> and sucks rocks on a SMP system where your other CPU could be doing
:>:> something useful like accepting data, but isn't.
:>:
:>:Oh, you'll definitely get throughput improvements with multiple processes.
:>:I just don't find that problem particularly interesting, since in my
:>:experience INN without overview has more than enough throughput to spare,
:>:and with overview writing overview becomes the overwhelming problem and
:>:nothing else is worth optimizing.
:>
:>In my experience, that's not true...  and I ran things like MD5-based
:>article storage and CNFS before most of the rest of the world had even
:>heard of them.  This is, of course, not with current revisions, but my
:>experiences did do a great job of pointing out architectural flaws (and
:>innd-timer was part of all that).
:>
:>First off, I will (of course) immediately concede that a good design
:>with real threads would beat either Diablo or INN quite easily.
:
:Threads are not the only possibility:  async IO can provide an alternative
:design methodology.
:
:I've been playing with a transit engine running on FreeBSD that is single
:threaded and uses aio routines (which are also standardized and appearing
:widely in Unix implementations, though I've tweaked this one from stock
:sources and added at least one thing not in the standard to make up for
:missing real-time signals in FreeBSD).  It doesn't have trouble with IO on
:incoming feeds (the outgoing feeds take about 45 seconds to pick up, so they
:haven't yet kicked in--unfortunately most backlogs don't last long enough to
:see how it fairs when both are running flat out) :

This is interesting.  I wonder how it would fare in an SMP environment.
FreeBSD's SMP support has some drawbacks (can you say "big giant lock")
and I suspect aio is subject to this.  However, it is at least a step in
a useful direction, and opens up the floor to speculation about how it
would compare to a threaded model.

... JG

Technical Details
Message-ID: <3774636e$0$374@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
References: <7g24e7$ckh$1@info.cs.uofs.edu> <ylg13gyawh.fsf@windlord.stanford.edu> <3773780d$0$374@news.execpc.com> <9303290311991906734-1@dp-news.maxwell.syr.edu>

Show Full Headers
Complete Article Headers
Message-ID: <3774636e$0$374@news.execpc.com>
Subject: Re: Submitting to Freenix
Date: Sat, 26 Jun 1999 00:00:00 +0000
From: jgreco@ns.sol.net (Joe Greco)
References: <7g24e7$ckh$1@info.cs.uofs.edu> <ylg13gyawh.fsf@windlord.stanford.edu> <3773780d$0$374@news.execpc.com> <9303290311991906734-1@dp-news.maxwell.syr.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: 494037221
Sender: jgreco@earth.execpc.com
X-Trace: nreader1.newsops.execpc.com 930374510 374 jgreco@169.207.16.1
Organization: sol.net Network Services - Milwaukee, WI
Newsgroups: news.software.nntp
X-Complaints-To: abuse@execpc.com