Article View: news.software.nntp
Article #26241Diablo progress report for 1.15
From: Matt Dillon
Date: Sat, 14 Feb 1998 00:00
Date: Sat, 14 Feb 1998 00:00
141 lines
6638 bytes
6638 bytes
Here's a progress report on the upcoming 1.15 release: I'm making real
good progress. I am successfully reading news via the diablo reader module
work-in-progress (!). This is a major milestone.
Now here's the cool thing: I'm taking a full header-only feed into my
home machine (apollo.backplane.com) over my dinky 56K frame and am
able to read news locally via trn (NNTPSERVER set to localhost, running
through the diablo work-in-progress reader system) almost as quickly as
if I were to run trn on one of BEST's machines. I still have bunches
of work to do: I need to make the round-robin/priority spool server
scheduling work, I need to make POST work, I need to make overview
stuff work (though trn is able to use HEAD commands very nicely as it
currently stands since all headers are cached), and bunches of other
things. The most difficult part, though, the article fetching, caching,
multi-threading, and integration, is done.
However, I *STILL* need people to help with the file descriptor passing
code on non-FreeBSD platforms.
I have included my last plea, which has instructions to programmers,
below (slightly modified from the original). There is also a new test
version available:
THIS IS NON-WORKING AND SHOULD ONLY BE USED BY PROGRAMMERS WHO INTEND TO
HELP ME WITH THE FILE DESCRIPTOR PASSING CODE! Do not, I repeat do
*not* even consider installing this on a production machine.
http://www.backplane.com/diablo/diablo-1.15-test1.tgz
http://www.backplane.com/diablo/diablo-1.15-test2.tgz
The instructions below apply to test1 but should work similarly
on test2.
:In article <6c0pse$1sf$1@flea.best.net>, Matt Dillon <dillon@best.net> wrote:
:> Subject says it all. I need programmers who understand file descriptor
:> passing to test my file descriptor passing code in the reader portion of
:> the new diablo.
:>
:> I need test/programming work done for solaris, irix, BSDI, linux, and
:> other non-FreeBSD OS's (does linux even have file descriptor passing?
:> It must!). Then I need the appropriate context diffs back for the various
:> architectures.
:>
:> I have it working on FreeBSD, of course, but file descriptor passing
:> is quirky at best and the code is almost certain not to be compatible
:> across UNIXes.
:>
:> THE URL I GIVE BELOW DOES NOT POINT TO A WORKING DIABLO! DO NOT RETRIEVE
:> IT UNLESS YOU WANT TO HELP WITH THE FILE DESCRIPTOR PASSING CODE!
:>
:> ---
:>
:> Testing the file descriptor passing portion of dreaderd involves compiling
:> up the test distribution (NOT on your news machine!). You may hit
:> compilation errors with the messaging code which you will have to fix.
:> Then create a basic diablo directory structure as per normal, then:
:>
:> cp samples/dactive.kp /news
:> cp samples/dreader.hosts /news
:> cp samples/dserver.hosts /news (for 1.15 test2)
:>
:> Then run:
:>
:> dbin/dreaderd -d3 -p test -M4 -D2
:>
:> If the file descriptor passing code is working correctly, you should see
:> the following output:
:>
:> (xterm #1)
:>
:> apollo:/news# dbin/dreaderd -d3 -p test -D2 -M4
:> forked reader child process 1713
:> forked reader child process 1714
:> forked reader child process 1715
:> forked reader child process 1716
:> forked dns child process 1717
:> forked dns child process 1718
:> (pauses)
:>
:>
:> Then in (xterm #2):
:>
:> apollo:/news# telnet localhost nntp
:> Trying 127.0.0.1...
:> Connected to localhost (127.0.0.1).
:> Escape character is '^]'.
:> 200 apollo.backplane.com Diablo NNRP Server ready (posting ok).
:> (pauses)
:>
:> (xterm #1) should generate the following debug info:
:> Pass file descriptor fd=11
:> dreaderd[1792]: connect from 127.0.0.1 (127.0.0.1)
:> add thread fd=5
:>
:> If it disconnects immediately, the file descriptor passing is not
:> working. If you don't get the banner, the file descriptor passing
:> is not working. If you get the connection, try the 'date' command:
:>
:> (xterm #2)
:> date (type this)
:> 111 19980213062818
:>
:> (xterm #1)
:> server command: date
:>
:>
:> This is where I need help: If it doesn't work on other platforms, I
:> someone to track down the problem and actually fix it, then send me
:> the diffs for that platform.
:>
:> File descriptor passing has always been add-hoc on UNIX boxes. I fully
:> expect there to be major compatibility problems. But it's absolutely
:> KEY to making the system work efficiently. It not only allows me to
:> have one primary accept()or process which passes descriptors to
:> multi-threaded subprocesses, it also allows me to load balance the
:> subprocesses.
:>
:> Ok, where is it?
:>
:> http://www.backplane.com/diablo/diablo-1.15-test1.tgz
:>
:> Remember, PROGRAMMERS ONLY! The reader code isn't working yet :-) ...
:> We are still a week and a half away. I've managed to get most of the
:> raw infrastructure in, with only remote-server article retrieval left.
:> The rest is all maintenance, logging, blah blah blah.
:>
:> -Matt
:>
:>--
:> Matthew Dillon Engineering, BEST Internet Communications, Inc.
:> <dillon@best.net>, include original article w/ any response.
:> do not under any circumstances send email to joeblow@bigspender.idiom.com
:> and, for gods sake, don't email bucktram@popserver.idiom.com
--
Matthew Dillon Engineering, BEST Internet Communications, Inc.
<dillon@best.net>, include original article w/ any response.
do not under any circumstances send email to joeblow@bigspender.idiom.com
and, for gods sake, don't email bucktram@popserver.idiom.com
Technical Details
Message-ID:
<6c50t0$16u$1@flea.best.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:
<6br2ki$bh8$1@flea.best.net> <6bvv08$pim@newsops.execpc.com> <uhPE.145$b%5.471477@ptah.visi.com> <6c0pse$1sf$1@flea.best.net>Show Full Headers
Complete Article Headers
Message-ID: <6c50t0$16u$1@flea.best.net> Subject: Diablo progress report for 1.15 Date: Sat, 14 Feb 1998 00:00:00 +0000 From: dillon@best.net (Matt Dillon) References: <6br2ki$bh8$1@flea.best.net> <6bvv08$pim@newsops.execpc.com> <uhPE.145$b%5.471477@ptah.visi.com> <6c0pse$1sf$1@flea.best.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: 325115442 X-Trace: 887490273 967 dillon 206.184.139.132 Organization: Best Internet Communications, Inc. - 650 964 BEST Newsgroups: news.software.nntp