🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #38448

Re: Submitting to Freenix

#38448
From: bill davidsen
Date: Tue, 06 Jul 1999 00:00
62 lines
3936 bytes
In article <9303290311991906734-1@dp-news.maxwell.syr.edu>,
Chris Sedore <cmsedore@maxwell.syr.edu> wrote:

| Threads are not the only possibility:  async IO can provide an alternative
| design methodology.

But it doesn't scale. I can add more processors a lot more easily than I
can make the current processor N times faster, and I get fewer context
switches because at least some of the time I don't have to preempt one
cpu from a task to do another.


| I've seen peaks of 360 incoming articles/second, and it is just loafing at
| 50-70 articles per second..  This machine is a 512MB PII-400, so it isn't
| puny hardware.  Just one disk (system and spool) and a single full-duplex
| 100Mbit link.

I'm certainly interested, assuming that this process generates enough
tracks. one of the problems I face is that non-INN solutions don't
always leave a good audit trail. INN babbles enough to add measurable
overhead, but I can always tell if and when I got a message-id, if
someone else offered it to me later, and to which queues it was added.

This saves more time placating management than debugging, but it's
useful for both.

| As Joe correclty pointed out (in a part trimmed), you have to be careful wrt
| threads packages.  FreeBSD's threads are userland wrappers around select(),
| etc and they really won't do anything significant to improve the situation.
| I believe Linux is in this boat also.  (Both offer kernel threads, but the
| implementations are a bit immature and suffer from other problems).

You could probably find a user level threads for Linux, but it isn't in
any of the regular libraries which use the kernel threads. I don't know
about maturity, all the posix threads apps I have work as I got them.

| One other area worth noting is select().  Select becomes considerably less
| efficient as more connections are added to check.  For the aio routines
| (which are not as efficient as I hope they will eventually be), there is a
| crossover at about 40 descriptors where it becomes faster to use aio
| routines over select.  The crossover is FreeBSD specific, but I suspect it
| holds true for any OS that implements select() by running through the
| descriptor table and setting a flag for each.

The whole select() thing is a can of worms, in many cases the call
returns multiple sockets ready and the application has to take steps to
do scheduling and avoid poor response to some sockets. Threads would
help this a good bit if properly done. I actually think that many of the
systems do kernel threads well, so this may be a non-issue.

I played with splitting innd with fork() for certain operations, and the
overhead was well worth it using SMP. The reliability and portability
were what you expect in a proof of concept, but I did see enough to
suggest that gains can be made.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.


Technical Details
Message-ID: <7lu3k8$2m0a$1@newssvr03-int.news.prodigy.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: <7lu3k8$2m0a$1@newssvr03-int.news.prodigy.com>
Subject: Re: Submitting to Freenix
Date: Tue, 06 Jul 1999 00:00:00 +0000
From: davidsen@tmr.com (bill davidsen)
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: 498182466
X-Complaints-To: abuse@prodigy.net
X-Trace: newssvr03-int.news.prodigy.com 931303880 88074 199.4.137.118 (6 Jul 1999 23:31:20 GMT)
Organization: TMR Associates, Schenectady NY
NNTP-Posting-Date: 6 Jul 1999 23:31:20 GMT
Newsgroups: news.software.nntp
Originator: davidsen@darkstar.prodigy.com