Article View: news.software.nntp
Article #14447Re: News over NFS
From: bill davidsen
Date: Mon, 27 Jan 1997 00:00
Date: Mon, 27 Jan 1997 00:00
43 lines
2566 bytes
2566 bytes
In article <5c9dnh$q4e@node6.frontiernet.net>, Dan Foster <dsf@node6.frontiernet.net> wrote: | Wouldn't it, out of curiosity, have a lower cost to have a nnrpd that | binds to port 119 and forks as needed children to handle each NNRP | connect as opposed to having an huge select() loop like you do with | inetd? Or would that offer neglible advantage (little or none)? Offer a big advantage on most machines. You avoid all the overhead of startup. | Or, like most httpd's... pre-fork x numbers of daemons, which would | possibly make sense because you'd usually know roughly how many you were | running during an average period as well as during peak times. What you *really* want is to have a single nnrpd which threads rather than forks, and have innd and nnrpd share the active file by something like the the shared active patch. You can pass the socket rather than fork, and just start a thread when nnrpd gets it. Historical note: my first attach on this was to memory map the active file in innd and nnrpd, thrying to save both rereads and memory. The good news is that it works perfectly on some machines. The bad news is that it fails in a number of ways on other machines. I'm currently looking at adding innd to the shared active patch, which should eliminate ever rereading the file on a busy system. I've had some problems which may be my code or may be the test machines. Before I release it I want it to run on AIX, Linux and SCO, and maybe Solaris. That hasn't happened yet, and I just lost a drive on my development system. I have backup (of course) but the system will be down for a bit, I'm doing a waranty replace rather than just funding a new drive, so I bet it takes two weeks. -- -bill davidsen (davidsen@tmr.com) "As a software development model, Anarchy does not scale well." -Dave Welch
Technical Details
Message-ID:
<5cj2qh$39ni@usenet1y.prodigy.net>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-mailReferences:
<32DD4F82.652A@isdnet.net> <5c03av$eib$1@thor.atcon.com> <5c988r$99i@thailand.it.earthlink.net> <5c9dnh$q4e@node6.frontiernet.net>Show Full Headers
Complete Article Headers
Message-ID: <5cj2qh$39ni@usenet1y.prodigy.net> Subject: Re: News over NFS Date: Mon, 27 Jan 1997 00:00:00 +0000 From: davidsen@tmr.com (bill davidsen) References: <32DD4F82.652A@isdnet.net> <5c03av$eib$1@thor.atcon.com> <5c988r$99i@thailand.it.earthlink.net> <5c9dnh$q4e@node6.frontiernet.net> 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: 212585274 Distribution: inet Organization: TMR Associates, Schenectady NY Newsgroups: news.software.nntp Originator: davidsen@darkstar.prodigy.com