Article View: news.software.nntp
Article #40167Diablo vs. INN questions...
From: Brad Knowles
Date: Mon, 27 Sep 1999 00:00
Date: Mon, 27 Sep 1999 00:00
60 lines
3293 bytes
3293 bytes
Folks,
I think I'm beginning to understand just a bit more how Diablo works
as compared to INN. I would like confirmation or clarification as to the
following.
For INN:
1. When receiving an article, it is written into shared memory,
and from then on only a pointer to this shared memory is passed around.
2. When executing the perl filter, a copy of the program is
always kept running (a la apache w/ mod_perl), and a pointer to the
article (stored in shared memory) is passed.
3. When this article is to be offerred to one or more peers, a
pointer to this shared memory is passed to the routine that writes the
article to a spool file to be read by innfeed, and depending on the
feeding method (0 to 3), if an innfeed process is not currently running or
is not currently idle, a new one will be fired up to handle this article
(up to the maximum simultaneous connections that have been configured).
Otherwise the article id is written to one of the existing spool files via
an algorithm that either guarantees absolute minimum latency to offer that
article to a particular peer, or maximizes the number of articles per
second, or some combination of the two.
For Diablo:
1. When receiving an article, it is written into memory that is
private to that particular child of the Diablo daemon, and therefore if
the article is to be passed around it must copy the data as opposed to
using a pointer to shared memory.
2. When executing the perl filter, a copy of the program is
typically kept running (a la apache w/ mod_perl), but the article has to
be fed in on stdin (i.e., copied), instead of a pointer to the appropriate
shared memory area being passed.
3. When this article is to be offered to one or more peers, it is
written to the end of the currently active spool file for that peer, and
this spool file is being read by a single dnewslink process. Only if
there is a backlog of spool files for that peer will multiple dnewslink
processes be started up so as to have more than one simultaneous
connection open.
Did I get all that correct? If so, it sounds to me like there are
some pretty obvious performance enhancements to be added to Diablo....
;-)
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
Are you a USENET news server administrator outside of North America or
Western Europe? Would you like a newsfeed from a site in the Freenix
Top 100? If so, please contact me via private e-mail for details.
Technical Details
Message-ID:
<brad-2709991944100001@brad.techos.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-mailShow Full Headers
Complete Article Headers
Message-ID: <brad-2709991944100001@brad.techos.skynet.be> Subject: Diablo vs. INN questions... Date: Mon, 27 Sep 1999 00:00:00 +0000 From: brad@shub-internet.org (Brad Knowles) 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: 529951504 X-Complaints-To: abuse@skynet.be X-Trace: news0.skynet.be 938454260 27690 195.238.1.121 (27 Sep 1999 17:44:20 GMT) Organization: Shub-Internet X-URL: http://www.shub-internet.org/ NNTP-Posting-Date: 27 Sep 1999 17:44:20 GMT Newsgroups: news.software.nntp