🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #40560

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

#40560
From: Joe Greco
Date: Tue, 05 Oct 1999 00:00
35 lines
2558 bytes
In news.software.nntp article <brad-0510990950470001@dialup401.brussels2.skynet.be>, brad@shub-internet.org (Brad Knowles) wrote:
:In article <37f95476$0$7750@news.execpc.com>, jgreco@ns.sol.net (Joe
:Greco) wrote:
:> Yes.  In the event of threaded processing, you "virtually" still have
:> shared memory, and need to arbitrate between threads just like you would
:> for the forking model, but in reality it is just a hunk of sbrk'd (yeah
:> yeah I'm a dinosaur) memory within the monolithic process.  It is _used_
:> the same way as the shared memory in the forking model though.
:
:    IIIC, what you'd basically be doing is trading problems with mmap() on
:shared memory for problems with threading.  Some OSes seem to handle one
:better than the other, and I can think of only one OS that I believe does
:them both fairly well.

"Strange that I cannot."

:> So low latency connections are actually getting fed articles that may
:> not have been written to disk yet.
:
:    Well, in theory, even with the current model you should be mostly
:reading them out of disk cache that hasn't been flushed yet, right?  This
:would just be an application-sepcific way of doing what is today handled
:by general-purpose OS caching algorithms.

Yeah, but you're crossing the process boundary a few times (copy data to
kernelland, copy data to userland...).  Using shared memory "solves" that
but you still have context switches to deal with.  Using threads 
eliminates even that, but depending on your threads implementation, may 
not be terribly more efficient than individual processes.

Or it may.  At least that way you have the chance.

... JG

Technical Details
Message-ID: <37f9bea6$0$10177@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: <foo-0210991412200001@192.168.2.3> <brad-0410991800210001@brad.techos.skynet.be> <37f95476$0$7750@news.execpc.com> <brad-0510990950470001@dialup401.brussels2.skynet.be>

Show Full Headers
Complete Article Headers
Message-ID: <37f9bea6$0$10177@news.execpc.com>
Subject: Re: INN maxed? Time to add a Diablo router?
Date: Tue, 05 Oct 1999 00:00:00 +0000
From: jgreco@ns.sol.net (Joe Greco)
References: <foo-0210991412200001@192.168.2.3> <brad-0410991800210001@brad.techos.skynet.be> <37f95476$0$7750@news.execpc.com> <brad-0510990950470001@dialup401.brussels2.skynet.be>
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: 532999862
Sender: jgreco@earth.execpc.com
X-Trace: S=T[4Gb?NPQI5[332>a9Y[bfNiaEHUgJWRYcgIRLSUE]8Ff5h^\D:J[jRe[>K[^>jQ=2TJP5mJl:SGhaMU<hZ^NWF4FfQ?Mh6U]
Organization: sol.net Network Services - Milwaukee, WI
Newsgroups: news.software.nntp
X-Complaints-To: abuse@execpc.com