🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #21176

Re: proposal: separate ports for xfer and client access

#21176
From: Vidar Hokstad
Date: Mon, 01 Sep 1997 00:00
51 lines
3177 bytes
In article <8690xhwk9k.fsf@blah.erols.com>,
	coneill@blah.erols.com writes:
> drechsau@yuck.net (Mike Horwath) writes:
>> 	Fun item: multithreaded nnrpd without any forking :) (and this
>> 	would not interfere with a non-multithreaded INN)
> 
> It'll be fun until it starts segv'ing.  I'll take a per process model
> any day.

If it starts segv'ing, it's not written well enough ;)

> I've yet to see anyone cite a worthwhile reason to thread 
> nnrpd.  I doubt that you'd see a performance benefit that would be
> worth the effort.

Same reasons you do it for Web cache's like Harvest and Squid for instance.
Allthough I doubt "true" multithreading would help much. Much of the
advantage of a non forking, cooperatively multithreading approach lies in
reduced dependency on locking and less expensive context switches.

As the first release of my newscache software is nearing availability (just
cleaning up some code before it goes beta), we've already started working on
a non-forking version, and we already see massive speedups, as well as
reduced memory usage (and for our particular application, I've so far cut
the code size by approximately 20%, that became unnecessary when we
stopped forking...) Stability has not been a problem.

You won't see the same performance benefits as a webcache does (which is
largely due to the lack of the fork() system call), since connections
usually have a longer duration, but you will see some.

And particularly because you have a large potential for optimizations that
are messy with a forking approach: All data is already shared. And you can
often know that a resource should be available for use.

Besides, if implemented cleanly, a state based implementation can be very
easy to maintain - especially if you use a tool like Libero
<URL:http://www.imatix.com/> for instance.

-- 
--- Vidar Hokstad <v@ncg.net> ------+-+-- NorConnect Internet Services AS ---
  DrStrange on Undernet / EFnet     |+| Consulting on Internet and intranets
 <URL:http://a.ncg.net/DrStrange/>  |+|   <URL:http://www.norconnect.no/>
------------------------------------+-+--------------------------------------

-- 
 Posted through a PRERELEASE of NCG NewsCache. For info or complaints:
 <URL:mailto:newscache@ncg.net> or <URL:http://www.ncg.net/newscache/>

Technical Details
Message-ID: <5ue94q$br2$1@nntp.newmedia.no>
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: <5tu8lj$l1m$1@samba.rahul.net> <5tunnh$p43$1@samba.rahul.net> <5tv2m2$fe9$1@earth.execpc.com> <5tvs11$dtn$2@darla.visi.com> <5u1dr7$dom$1@earth.execpc.com> <5ud7is$moh$2@darla.visi.com> <8690xhwk9k.fsf@blah.erols.com>

Show Full Headers
Complete Article Headers
Message-ID: <5ue94q$br2$1@nntp.newmedia.no>
Subject: Re: proposal: separate ports for xfer and client access
Date: Mon, 01 Sep 1997 00:00:00 +0000
From: vidarh@ncg.net (Vidar Hokstad)
References: <5tu8lj$l1m$1@samba.rahul.net> <5tunnh$p43$1@samba.rahul.net> <5tv2m2$fe9$1@earth.execpc.com> <5tvs11$dtn$2@darla.visi.com> <5u1dr7$dom$1@earth.execpc.com> <5ud7is$moh$2@darla.visi.com> <8690xhwk9k.fsf@blah.erols.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: 269341011
Organization: IDG New Media <firmapost@idg.no> - ISP in the IDG group
X-Cache: NCIS ProxyCache <URL:http://www.ncg.net/newscache/>
Newsgroups: news.software.nntp