🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #7986

Re: INN nnrpd as a shared library

#7986
From: Joe Greco
Date: Sun, 26 May 1996 00:00
57 lines
3465 bytes
In news.software.nntp article <4o85ru$q94@euas20.eua.ericsson.se>, per@erix.ericsson.se (Per Hedeland) wrote:
:In article <ny091eiau0h.fsf@nvwls.cc.purdue.edu> nuspl@nvwls.cc.purdue.edu (Joseph J. Nuspl Jr.) writes:
:>>>>>> "Dave" == Dave Barr <barr@math.psu.edu> writes:
:>In article <4o4nfn$7i1@augusta.math.psu.edu> barr@math.psu.edu (Dave Barr) writes:
:>
:>    Dave> What would be the benefit?  nnrpd shares little code between
:>    Dave> it and other programs.
:>
:>300+ nnrpd's on one host...
:
:Read Dave's reply again - "other programs". Multiple processes executing
:the same file always share their code segment on Unix (and any other
:sane OS, I'd guess) - i.e. turning code used by a single binary into a
:shared library buys you nothing.

Shame on you guys!  You could explain the problem a little better than this.

The problem is not nnrpd's code segment, which most modern UNIX variants
will share (to the extent possible) between the programs anyways.  Making a
shared library out of this might help shake a little extra efficiency out of
the process, but the reality is that it will buy you so very little..

Each nnrpd maintains a separate copy of a lot of data, and this is the real
problem.  The biggest pig is the active file, someone else already noticed
this and fixed it with the sharedactive patch.  Other pigs can include the
history.pag (or is it .dat) file.  The nnrpd sample configuration brings
this into core after a rather small number of by-Message-ID lookups.

The REAL fix?  It is not clear.

Some of us are moving our INND's up to different ports (I use 1119), the
point being to free up the Well Known Port 119 for nnrpd's.  I wrote a
little nnrpd spawner a while back, and it will be revisited in the near
future to impose per-host client limits, etc...  :-)

This, however, also clears the way for a monolithic threaded nnrpd client.
The monolith can handle multiple simultaneous clients, since the connection
rendezvous is not a problem (as it is when nnrpd is spawned from innd).  It
would even be possible to have several monoliths run simultaneously (i.e.
when it is handling too many clients, it can break itself into two, one will
stop listening on the listen() fd and just run until all connections are
serviced).

Nobody's interested in putting the effort into writing this, however.  I've
suggested it many times..  :-(

I would anticipate that the VM requirements would be greatly reduced.
Creative use of mmap(), etc., would do wonders.

... Joe

-------------------------------------------------------------------------------
Joe Greco - Systems Administrator			      jgreco@ns.sol.net
Solaria Public Access UNIX - Milwaukee, WI			   414/546-7968

Technical Details
Message-ID: <4oa4bp$rdl@brasil.moneng.mei.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: <ny07mu3icaf.fsf@nvwls.cc.purdue.edu> <4o4nfn$7i1@augusta.math.psu.edu> <ny091eiau0h.fsf@nvwls.cc.purdue.edu> <4o85ru$q94@euas20.eua.ericsson.se>

Show Full Headers
Complete Article Headers
Message-ID: <4oa4bp$rdl@brasil.moneng.mei.com>
Subject: Re: INN nnrpd as a shared library
Date: Sun, 26 May 1996 00:00:00 +0000
From: jgreco@brasil.moneng.mei.com (Joe Greco)
References: <ny07mu3icaf.fsf@nvwls.cc.purdue.edu> <4o4nfn$7i1@augusta.math.psu.edu> <ny091eiau0h.fsf@nvwls.cc.purdue.edu> <4o85ru$q94@euas20.eua.ericsson.se>
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: 156837712
Distribution: inet
Organization: Marquette Electronics, Inc. - Milwaukee, WI.
Newsgroups: news.software.nntp