🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
67 messages
67 total messages Page 1 of 2 Started by Matt Dillon Tue, 10 Feb 1998 00:00
Page 1 of 2 • 67 total messages
Diablo 1.15 will be ready in about 2 weeks
#26052
Author: Matt Dillon
Date: Tue, 10 Feb 1998 00:00
80 lines
5001 bytes
    Well, I'm back from my diablo hiatus... I got too stressed out trying
    to do a dozen projects at once and had to cut back a little :-(

    In anycase, I am planning the first reader release to happen in about
    two weeks.  I'm going to outline the strategy, open for comment:

    My strategy is to maximize the number of simultanious NNTP connections
    that can be supported.  With CPU power so cheap, this pretty much means
    minimizing disk accesses which in turns means reducing the amount of 
    disk-based I/O required.

    To accomplish this, the reader side of diablo is going to permanently
    store and track *ONLY* article group/number assignments and overview
    information.  There will be no history file and while there WILL be
    an article cache, it will operate strictly as a cache (not a spool) and
    can even be turned off.

    The reader side of diablo will require a header-only feed.  This is like
    a normal newsfeed, but without the article bodies... just the headers.
    The headers will be used to do the article number assignment and overview
    upkeep (Xref: will be optionally supported for article number assignment).
    The reader will be able to handle a normal feed, but will throw away the
    body portion of the articles and keep just the headers.   Thus, while
    the diablo reader is designed to operate with the diablo server, it should
    be useable as a standalone reader fed by non-diablo news software.

    Since the reader will not support a history file, you can push only one
    feed to it to ensure that no article duplication occurs.  HOWEVER, 
    you *can*, if you want, run diablo, INN, or some other news transit 
    system on the SAME BOX and use that to collect multiple feeds, then push 
    a single (header-only or normal) feed to the diablo reader.

    The reader will operate using a multi-thread/multi-fork model whereby the
    main reader daemon will fork a bunch of sub-reader servers and each sub
    server will be able to handle N NNTP sessions using select() as the core
    of the multi-threading.  I expect a standard PPro or PII-200 platform
    with a single 4G disk to be able to handle around 1000 simultanious
    sessions.   Due to the multi-threaded nature of the system, I expect around
    a 16K overhead per connection, so memory should not be an issue.  I
    would even go out on a limb and say that it may be possible to get several
    thousand simultanious sessions going on a single box.

    When an end-user makes a connection, his connection will be passed onto
    one of the sub-servers.  All standard NNTP commands will be supported
    and everything except the article body will be retrieved from local
    disk.  Article body requests will, if the local disk cache does not
    have the article in question, be farmed out to one of N remote 'spool'
    servers which can be Diablo, INN, or any other news system that supports
    retrieving articles by message-id.  Local disk-caching of retrieved article
    bodies will be optional.

    The diablo reader system will inherently be able to support multi-level
    article caching simply by having the readers the users connect to use
    another set of reader machines to fetch articles.  These middle reader
    machine(s) would be configured with a large cache and would then connect to
    the actual spools.  Furthermore, the middle reader machines would not
    only NOT require any sort of history file, they would not even require
    overview and so will be able to operate as standalone fall-through caches 
    with NO feeds whatsoever.

    Keep in mind that the enduser reader boxes will require some sort of 
    feed, but just the headers.  This is a tradeoff and may eventually not
    be a requirement, but I don't think I can get working code out in less
    then two weeks if I try to turn the overview operation into a cache
    as well, nor am I going to attempt self-synchronizing article number
    assignment yet.

    So, what do people think?  

						-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

Re: Diablo 1.15 will be ready in about 2 weeks
#26093
Author: coneill
Date: Wed, 11 Feb 1998 00:00
27 lines
1593 bytes
dillon@best.net (Matt Dillon) writes:

> :In article <87en1923ww.fsf@smart.ruhr.de>,
> :Thomas Neumann  <tom@smart.ruhr.de> wrote:
> :>coneill@blah.erols.com writes:
> :..
> :>
> :>Did I get this right, Matt?
> 
>     Exactly right.
> 
> :>Will the reader subsystem's configuration allow to select the
> :>full-article-server by newsgroup pattern? I'd like to tell
> :>the reader subsytem to go and get article bodies for alt.binaries.*
> :>from 'hugedisks.my.dom' and the rest from 'small-nntp.my.dom' for
> :>example. Kind of like nntpcache does.
> :>
> :>-t
> 
>     The first alpha release won't, but it's so easy to do that the
>     second one probably will.

So am I right in assuming that I've still got to run a INN or typhoon
box that stores all the articles and offers traditional functionality?

Re: Diablo 1.15 will be ready in about 2 weeks
#26108
Author: coneill
Date: Wed, 11 Feb 1998 00:00
15 lines
1262 bytes
dillon@best.net (Matt Dillon) writes:
>     Keep in mind that the enduser reader boxes will require some sort of 
>     feed, but just the headers.  This is a tradeoff and may eventually not
>     be a requirement, but I don't think I can get working code out in less
>     then two weeks if I try to turn the overview operation into a cache
>     as well, nor am I going to attempt self-synchronizing article number
>     assignment yet.
> 
>     So, what do people think?  

So where does the feeder retrieve the article body from, since it
doesn't have them?  From the feeder?

Re: Diablo 1.15 will be ready in about 2 weeks
#26110
Author: Matt Dillon
Date: Wed, 11 Feb 1998 00:00
22 lines
1545 bytes
:In article <86u3a5c0dz.fsf@blah.erols.com>,  <coneill@blah.erols.com> wrote:
:>dillon@best.net (Matt Dillon) writes:
:>>     Keep in mind that the enduser reader boxes will require some sort of 
>>     feed, but just the headers.  This is a tradeoff and may eventually not
:..
:>
:>So where does the feeder retrieve the article body from, since it
:>doesn't have them?  From the feeder?

    The reader retrieves the article body from one or more spool machines,
    via NNTP (so the spool machines can run diablo, inn... anything that
    understands 'article <message-id>'.

						-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

Re: Diablo 1.15 will be ready in about 2 weeks
#26111
Author: Thomas Neumann
Date: Wed, 11 Feb 1998 00:00
42 lines
2429 bytes
coneill@blah.erols.com writes:

> dillon@best.net (Matt Dillon) writes:
> >     Keep in mind that the enduser reader boxes will require some sort of 
> >     feed, but just the headers.  This is a tradeoff and may eventually not
> >     be a requirement, but I don't think I can get working code out in less
> >     then two weeks if I try to turn the overview operation into a cache
> >     as well, nor am I going to attempt self-synchronizing article number
> >     assignment yet.

> So where does the feeder retrieve the article body from, since it
> doesn't have them?  From the feeder?


The way I understand what Matt posted is that the body will come from
another server that stores complete articles, not just header
information like the diablo reader subsystem will. Fetching the
complete article (by message-id) from that other server will happen
the moment a reader performs an operation that requires more than just
the headers, e.g. when a newsreader fetches the article body. The
complete article, including body, is then cached locally by the diablo
reader subsystem so that subsequent fetches of the same article will
be more efficient.  The reader subsystem and the 'full storage server'
can of course be on the same physical machine, by moving the NNTP
feeder part to a port != 119 or by introducing a virtual interface
with another IP adress just for the reader subsystem and then running
the feeder and the reader subsystems explicitely bound to different
interfaces.

Did I get this right, Matt?

Will the reader subsystem's configuration allow to select the
full-article-server by newsgroup pattern? I'd like to tell
the reader subsytem to go and get article bodies for alt.binaries.*
from 'hugedisks.my.dom' and the rest from 'small-nntp.my.dom' for
example. Kind of like nntpcache does.

-t


Re: Diablo 1.15 will be ready in about 2 weeks
#26118
Author: bill davidsen
Date: Wed, 11 Feb 1998 00:00
68 lines
4210 bytes
In article <6br2ki$bh8$1@flea.best.net>, Matt Dillon <dillon@best.net> wrote:
|     Well, I'm back from my diablo hiatus... I got too stressed out trying
|     to do a dozen projects at once and had to cut back a little :-(
| 
|     In anycase, I am planning the first reader release to happen in about
|     two weeks.  I'm going to outline the strategy, open for comment:

First comment, glad you took some time off. Second, this all sounds
like the ideal solution to every caching server problem I ever
thought of having.

However... I hope you aren't going to forget about the feeder side,
which is the area in which I still see the most problems at most of
the sites I run (or advise).

|     The reader will operate using a multi-thread/multi-fork model whereby the
|     main reader daemon will fork a bunch of sub-reader servers and each sub
|     server will be able to handle N NNTP sessions using select() as the core
|     of the multi-threading.  I expect a standard PPro or PII-200 platform
|     with a single 4G disk to be able to handle around 1000 simultanious
|     sessions.   Due to the multi-threaded nature of the system, I expect around
|     a 16K overhead per connection, so memory should not be an issue.  I
|     would even go out on a limb and say that it may be possible to get several
|     thousand simultanious sessions going on a single box.

Could we hope that this model will appear for the feeder side as
well? The current version works well, but uses more processes than I
like. It takes a reasonable bit of tuning to make it fit some
systems, due to the number of processes. And of course each process
has more overhead than a thread would consume.

|     When an end-user makes a connection, his connection will be passed onto
|     one of the sub-servers.  All standard NNTP commands will be supported
|     and everything except the article body will be retrieved from local
|     disk.  Article body requests will, if the local disk cache does not
|     have the article in question, be farmed out to one of N remote 'spool'
|     servers which can be Diablo, INN, or any other news system that supports
|     retrieving articles by message-id.  Local disk-caching of retrieved article
|     bodies will be optional.

Sounds just like every other caching server, except that with the
Diablo track record I bet it will work reliably.

|     Keep in mind that the enduser reader boxes will require some sort of 
|     feed, but just the headers.  This is a tradeoff and may eventually not
|     be a requirement, but I don't think I can get working code out in less
|     then two weeks if I try to turn the overview operation into a cache
|     as well, nor am I going to attempt self-synchronizing article number
|     assignment yet.

All sounds great, but I hope you are going to have end-to-end Xref
support so I can have a single "main machine" feeding header feeds
to a number of reader boxes and have the reader's view of article
numbers be the same on every reader box.

Since it would be nice to be able to add a new box in some
reasonable realtime, will you be adding a catchup mechanism (even if
not in the first release)?

More details on your overview implementation?
-- 
Bill Davidsen <davidsen@tmr.com> CTO, TMR Associates
"She would hold a grudge until it died of old age. Then she would have it
stuffed and mounted."
	_Field of Dishonor_ by David Weber

Re: Diablo 1.15 will be ready in about 2 weeks
#26127
Author: Matt Dillon
Date: Wed, 11 Feb 1998 00:00
33 lines
2090 bytes
:In article <86oh0dbl82.fsf@blah.erols.com>,  <coneill@blah.erols.com> wrote:
:>dillon@best.net (Matt Dillon) writes:
:>
:..
:>
:>So am I right in assuming that I've still got to run a INN or typhoon
:>box that stores all the articles and offers traditional functionality?

    No, the server the diablo reader connects to to fetch articles does not
    have to be a reader box... i.e. it doesn't have to track newsgroups or 
    store overview or anything, it simply needs to be able to handle the
    'article <message-id>' NNTP command.

    This means that while INN will work there, strictly transit-only news
    servers such as the transit side to Diablo will also work and other
    traditional transit-only news servers (cyclone, though it has reader
    capability now, NNTPRelay, and so on) can be easily modified to add
    that one NNTP command without having to add all the group garbage on
    top of it.

    I expect that the spool infrastructure will wind up being strictly
    news-transit-systems rather then newsreader systems.

						-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

Re: Diablo 1.15 will be ready in about 2 weeks
#26132
Author: Matt Dillon
Date: Wed, 11 Feb 1998 00:00
23 lines
1350 bytes
:In article <slrn6e3oad.rpc.streiner@lurch.bv.sgi.net>,
:Justin M. Streiner <streiner@remove-to-mail-me.sgi.net> wrote:
:>On 10 Feb 1998 18:32:50 -0800, Matt Dillon <dillon@best.net> wrote:
:>>
:..
:>
:>Are there any changes in store for the diablo feeder side?
:>
:>jms

    Nothing major.   A few minor additions to support header-only feeds
    (to the reader side).

					-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

Re: Diablo 1.15 will be ready in about 2 weeks
#26134
Author: Matt Dillon
Date: Wed, 11 Feb 1998 00:00
28 lines
1560 bytes
:In article <Eo94Ay.Ktn@zorch.SF-Bay.ORG>,
:Scott Hazen Mueller <scott@zorch.sf-bay.org> wrote:
:>>With CPU power so cheap, this pretty much means minimizing disk accesses
:..
:>
:>Remind me again why we have to wait TWO WHOLE WEEKS for this?  Why isn't it
:>ready today, where's the beef?
:>
:>:-)
:>
:>                          \scott

    Diablo is like, my *quality time* you know!  Yessir, when I get tired of
    sloshing gigabytes worth of databases around at BEST, I pour myself a hot 
    chocolate and dig into a nice juicy Diablo module :-)

    Ahhh...  that hits the spot.

						-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

Re: Diablo 1.15 will be ready in about 2 weeks
#26139
Author: Matt Dillon
Date: Wed, 11 Feb 1998 00:00
38 lines
2379 bytes
:In article <Eo94Gn.Kzt@zorch.SF-Bay.ORG>,
:Scott Hazen Mueller <scott@zorch.sf-bay.org> wrote:
:>>However... I hope you aren't going to forget about the feeder side, which is
:>>the area in which I still see the most problems at most of the sites I run
:>>(or advise).
:>
:>Maybe I'm just out of the norm, but my diablo feeder is mostly OK except for
:>needing the dhistory file deleted periodically.  I'm guessing a bad juju in
:>BSDI 3.0, an OS with a long history of memmap() problems...  Anyway, I'm
:>having fits keeping (one of) my INN box(es) happy.  It looked like an extra-
:>hot history disk, but I cooled it off with a noatime mount and now the thing
:>is just plain sluggish.  I've honestly been trying to just keep it stable
:>until Matt got the Diablo reader out the door...
:>
:>                            \scott

    dhistory file... deleted ????  

    Are you running the biweekly.atrim cron job ?  Even if you think you are,
    make sure it's *actually* running.  Otherwise dhistory will just grow on
    forever.

    If the dhistory file is getting corrupted, you do not have to delete it,
    the same job (biweekly.atrim) does a full dump and reload of it as well
    performing the trim function, and can usually recover even a badly 
    corrupted dhistory file.  It shouldn't take more then 10 minutes or
    so to run.

						-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

Re: Diablo 1.15 will be ready in about 2 weeks
#26140
Author: Justin M. Streiner
Date: Wed, 11 Feb 1998 00:00
17 lines
1225 bytes
On 10 Feb 1998 18:32:50 -0800, Matt Dillon <dillon@best.net> wrote:
>
>    Keep in mind that the enduser reader boxes will require some sort of 
>    feed, but just the headers.  This is a tradeoff and may eventually not
>    be a requirement, but I don't think I can get working code out in less
>    then two weeks if I try to turn the overview operation into a cache
>    as well, nor am I going to attempt self-synchronizing article number
>    assignment yet.
>
>    So, what do people think?  

Are there any changes in store for the diablo feeder side?

jms

Re: Diablo 1.15 will be ready in about 2 weeks
#26143
Author: Matt Dillon
Date: Wed, 11 Feb 1998 00:00
31 lines
1598 bytes
:In article <87en1923ww.fsf@smart.ruhr.de>,
:Thomas Neumann  <tom@smart.ruhr.de> wrote:
:>coneill@blah.erols.com writes:
:..
:>
:>Did I get this right, Matt?

    Exactly right.

:>Will the reader subsystem's configuration allow to select the
:>full-article-server by newsgroup pattern? I'd like to tell
:>the reader subsytem to go and get article bodies for alt.binaries.*
:>from 'hugedisks.my.dom' and the rest from 'small-nntp.my.dom' for
:>example. Kind of like nntpcache does.
:>
:>-t

    The first alpha release won't, but it's so easy to do that the
    second one probably will.

						-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

Re: Diablo 1.15 will be ready in about 2 weeks
#26147
Author: Ken Leland
Date: Thu, 12 Feb 1998 00:00
32 lines
1879 bytes
In article <%5GE.1$Yg6.176973@news2.teleport.com>,
Jeff Garzik <jgarzik@raleigh.normnet.org> wrote:
>
>It sure seems like you're making the system more complex than it needs to be.
>
...
>
>Am I misunderstanding the system?  It seems to me the Diablo reader
>functionality will be too limited to stand on its own -- and it
>needs to.  Otherwise people are simply going to install Typhoon, INN,
>or Tortoise and be done with it.
>

If vanilla (feeder) Diablo and the new reader functionality co-operate
easily on the same box then I don't think there is necessarily a problem
here. I agree that I wouldn't want to massively goose the spool size
of my 2 existing peer machines, but that shouldn't be necessary.

I run my reader stuff (nnprd spawned by inetd) and a minimal feeder (innd)
on one box I call my reader machine and think nothing of it. I'm
actually glad they are disjoint processes and that the feeder(taker) process 
can be played with without affecting the readers.  

As always, the easier the most useful configuration is to setup, the wider
the adoption will be but Matt already knows that, judging from the size
of his user base.

Ken Leland
Monmouth Internet

Re: Diablo 1.15 will be ready in about 2 weeks
#26151
Author: Robert Collier
Date: Thu, 12 Feb 1998 00:00
27 lines
1482 bytes
On 10 Feb 1998 18:32:50 -0800, dillon@best.net (Matt Dillon) wrote:

>    Well, I'm back from my diablo hiatus... I got too stressed out trying
>    to do a dozen projects at once and had to cut back a little :-(

Welcome back!

<snip>

>    So, what do people think?  

Sounds good from where I'm sitting.

One quick question though - do you have any plans to add perl filtering
diablo? I'd love to be able to run cleanfeed or a variant thereof on my
diablo boxen - or should I get hacking myself?

	- Regards, Robert.

-- 
   Robert Collier   -   Network  Operations   -   Frontier Internet
   ----------------------------------------------------------------
   Disclaimer: The views contained herein may not reflect the views
      of my employer and reliance should not be placed thereon.   

Re: Diablo 1.15 will be ready in about 2 weeks
#26158
Author: Scott Hazen Mueller
Date: Thu, 12 Feb 1998 00:00
17 lines
1454 bytes
>However... I hope you aren't going to forget about the feeder side, which is
>the area in which I still see the most problems at most of the sites I run
>(or advise).

Maybe I'm just out of the norm, but my diablo feeder is mostly OK except for
needing the dhistory file deleted periodically.  I'm guessing a bad juju in
BSDI 3.0, an OS with a long history of memmap() problems...  Anyway, I'm
having fits keeping (one of) my INN box(es) happy.  It looked like an extra-
hot history disk, but I cooled it off with a noatime mount and now the thing
is just plain sluggish.  I've honestly been trying to just keep it stable
until Matt got the Diablo reader out the door...

                            \scott


Need programmers for IRIX, Solaris, linux, BSDI to test file descriptor passing for Diablo 1.15's reader daemon
#26159
Author: Matt Dillon
Date: Thu, 12 Feb 1998 00:00
101 lines
4385 bytes
    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

    Then run:

	dbin/dreaderd -d -p test

    If the file descriptor passing code is working correctly, you should see
    the following output:

    (xterm #1)

    apollo:/news# dbin/dreaderd -d -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

Re: Diablo 1.15 will be ready in about 2 weeks
#26166
Author: Garrett Wollman
Date: Thu, 12 Feb 1998 00:00
19 lines
1319 bytes
In article <M8GE.2$Yg6.176973@news2.teleport.com>,
Jeff Garzik <jgarzik@raleigh.normnet.org> wrote:

>Diablo is notoriously hard on your history disk.  1.14 purports to improve
>this, are you running the latest and greatest?

If I ever get around to upgrading newsswitch to 512 MB, I'm seriously
considering mlock()ing the history file....

-GAWollman

-- 
Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
wollman@lcs.mit.edu  | O Siem / The fires of freedom 
Opinions not those of| Dance in the burning flame
MIT, LCS, CRS, or NSA|                     - Susan Aglukark and Chad Irschick

Re: Diablo 1.15 will be ready in about 2 weeks
#26169
Author: Jeff Garzik
Date: Thu, 12 Feb 1998 00:00
21 lines
1493 bytes
Robert Collier (rrc@bofh.org.uk) wrote:
: One quick question though - do you have any plans to add perl filtering
: diablo? I'd love to be able to run cleanfeed or a variant thereof on my
: diablo boxen - or should I get hacking myself?

External filters are definitely the way to go.  It's much more flexible than
a compiled-in filter, and Cyclone, Typhoon, NNTPrelay, and INN (sorta)
support external filters.

Would be great to have Diablo a member of that group.  Now that
NNTPRelay supports "Cyclone-style" external filtering, following
that standard would be great:  stdin is sent the article data, and
stdout carries a 335/435 accept/reject response code back to the news
server proper.

--
Jeff Garzik			    Typhoon, Cyclone, Diablo, and INN
http://www.spinne.com/usenet/	           News tuning and consulting

Re: Diablo 1.15 will be ready in about 2 weeks
#26173
Author: bill davidsen
Date: Thu, 12 Feb 1998 00:00
23 lines
1598 bytes
In article <6bt8iq$he6$1@newssvr03-int.news.prodigy.com>,
bill davidsen <davidsen@tmr.com> wrote:
This pair of comments may have gotten lost, I didn't see an answer.
The first is probably only a concern at larger sites where you might
add more reader boxes on a regular basis.

| Since it would be nice to be able to add a new box in some
| reasonable realtime, will you be adding a catchup mechanism (even if
| not in the first release)?
| 
| More details on your overview implementation?
Built by the feed, or can I jump start it by a download of some type
from the spool machine?

-- 
Bill Davidsen (davidsen@tmr.com)
  Have you ever noticed when playing cards that the money you win
with a successful bluff always looks brighter and shinier than what
you win by fate giving you the best cards?


Re: Diablo 1.15 will be ready in about 2 weeks
#26176
Author: Scott Hazen Mueller
Date: Thu, 12 Feb 1998 00:00
26 lines
1575 bytes
>With CPU power so cheap, this pretty much means minimizing disk accesses
>which in turns means reducing the amount of disk-based I/O required.

It is reaching the point where it's easier to swap out a motherboard than it
is to restripe a news filesystem across yet one more disk...

>The reader side of diablo will require a header-only feed.  This is like a
>normal newsfeed, but without the article bodies... just the headers.

Haven't folks been knocking this idea around for years?  Your Diablo reader
design could easily be extended to the network of news caches referencing
articles directly off of origin spools that I've seen sketched probably a
dozen times.  NX records, anyone?

>So, what do people think?  

Remind me again why we have to wait TWO WHOLE WEEKS for this?  Why isn't it
ready today, where's the beef?

:-)

                          \scott


Re: Diablo 1.15 will be ready in about 2 weeks
#26178
Author: Scott Hazen Mueller
Date: Thu, 12 Feb 1998 00:00
29 lines
1920 bytes
>:>Maybe I'm just out of the norm, but my diablo feeder is mostly OK except for
>:>needing the dhistory file deleted periodically.  I'm guessing a bad juju in
>:>BSDI 3.0, an OS with a long history of memmap() problems...

>    dhistory file... deleted ????  

Yup.

>Are you running the biweekly.atrim cron job ?  Even if you think you are,
>make sure it's *actually* running.  Otherwise dhistory will just grow on
>forever.

It gives me the little output twice a week, telling me what it trimmed.

I get a feed from 'news1.best.com', so I poke at it periodically and issue an
'outq' command.  When I start seeing a persistent backlog, I nuke the dhistory
file and let it start over.  I may be short on RAM, or just suffering from
using a single disk for /var/news, but whatever it is, deleting the file cools
things off enough to suck that backlog down posthaste.

Someday I'll hire someone else who knows netnews and I'll tell them to go dig
into it; until then, it's cheaper timewise to spend a minute here and there
than to spend an hour all at once digging...

                              \scott


Re: Diablo 1.15 will be ready in about 2 weeks
#26179
Author: Jeff Garzik
Date: Thu, 12 Feb 1998 00:00
19 lines
1399 bytes
Mike Horwath (drechsau@yuck.net) wrote:
: Robert Collier <rrc@bofh.org.uk> wrote:
: : One quick question though - do you have any plans to add perl filtering
: : diablo? I'd love to be able to run cleanfeed or a variant thereof on my
: : diablo boxen - or should I get hacking myself?

: Personally, I am becoming a big spamhippo fanatic...

Plug-and-play under Cyclone and Typhoon baby, ya gotta love it.

Drawbacks to Spam Hippo:  Huge VM usage (MMAPs your entire article history),
disk hit for every article, and it gets false positives on NoCeM messages
sometimes.
--
Jeff Garzik			    Typhoon, Cyclone, Diablo, and INN
http://www.spinne.com/usenet/	           News tuning and consulting

Re: Diablo 1.15 will be ready in about 2 weeks
#26181
Author: Josh Wilmes
Date: Thu, 12 Feb 1998 00:00
23 lines
1209 bytes
In article <34e2ce57.135282402@eros.clara.net>, Steve Rawlinson wrote:
>>    Are you running the biweekly.atrim cron job ?  
>
>By the way matt, 'biweekly' means once every two weeks. From the
>sample crontab it is clear this is not the intended frequency but I
>wonder if people are being caught out (I was).
>

Word: 1bi.week.ly 
Pronunciation: (")bI-'wE-klE 
Function: adjective 
Date: 1832 
 
1 : occurring twice a week 
2 : occurring every two weeks : FORTNIGHTLY 


So, it can mean either :)

--Josh

Re: Diablo 1.15 will be ready in about 2 weeks
#26182
Author: Matt Dillon
Date: Thu, 12 Feb 1998 00:00
34 lines
2088 bytes
:In article <2MGE.3$Yg6.197532@news2.teleport.com>,
:Jeff Garzik <jgarzik@raleigh.normnet.org> wrote:
:>Robert Collier (rrc@bofh.org.uk) wrote:
:>: One quick question though - do you have any plans to add perl filtering
:>: diablo? I'd love to be able to run cleanfeed or a variant thereof on my
:>: diablo boxen - or should I get hacking myself?
:>
:>External filters are definitely the way to go.  It's much more flexible than
:>a compiled-in filter, and Cyclone, Typhoon, NNTPrelay, and INN (sorta)
:>support external filters.
:>
:>Would be great to have Diablo a member of that group.  Now that
:>NNTPRelay supports "Cyclone-style" external filtering, following
:>that standard would be great:  stdin is sent the article data, and
:>stdout carries a 335/435 accept/reject response code back to the news
:>server proper.
:>
:>--
:>Jeff Garzik			    Typhoon, Cyclone, Diablo, and INN
:>http://www.spinne.com/usenet/	           News tuning and consulting

    I agree, but I'm not going to commit to anything until the reader
    stuff has gone through a few revs.

					-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

Re: Diablo 1.15 will be ready in about 2 weeks
#26183
Author: Joe Greco
Date: Thu, 12 Feb 1998 00:00
61 lines
3362 bytes
In news.software.nntp article <2MGE.3$Yg6.197532@news2.teleport.com>, jgarzik@raleigh.normnet.org (Jeff Garzik) wrote:
:Robert Collier (rrc@bofh.org.uk) wrote:
:: One quick question though - do you have any plans to add perl filtering
:: diablo? I'd love to be able to run cleanfeed or a variant thereof on my
:: diablo boxen - or should I get hacking myself?
:
:External filters are definitely the way to go.  It's much more flexible than
:a compiled-in filter, and Cyclone, Typhoon, NNTPrelay, and INN (sorta)
:support external filters.
:
:Would be great to have Diablo a member of that group.  Now that
:NNTPRelay supports "Cyclone-style" external filtering, following
:that standard would be great:  stdin is sent the article data, and
:stdout carries a 335/435 accept/reject response code back to the news
:server proper.

One way to do this...

Diablo has a "central" process that writes batch file lines and
history entries (I think).  My understanding is this:

Diablo child channel process reads article from peer and streams
it onto disk.  Diablo child channel process then sends a message
that says "Message X received, at spool location N" to the central
batch file writer/history writer.

I haven't looked at it in detail, and if my understanding is wrong,
the following won't work.

I'm mainly interested in not _propagating_ spam, and I was going to 
do the following:

Modify the batch file "master" process so that before it figures out 
which sites to send an article to, and before it writes the lines out
to batch files, it actually READS the article and passes it to a
Cyclone style filter process.  If the Cyclone filter OK's it, then
you proceed as normal, otherwise you don't write the batch file lines
and the article fails to propagate.

This is nice because it even could be extended to allow you to feed 
spam to SOME sites and not others (maybe a "sendmespam" token in
dnewsfeeds?)  That's a feature that I need, because I do "Whole Usenet"
reporting and stuff like that.

Also, it could be extended to report such a rejection back to the
Diablo child channel process, and that process could rewind the file
and reclaim the disk space, but obviously only if you weren't doing
"sendmespam" feeds.

I was going to work on this, but got sidetracked.  I reallyreally
want to do this sort of filtering though.

This and the multiprocess problems referred to elsewhere in this
thread are the major weaknesses that are making me consider Cyclone.

(I _love_ Cyclone but Solaris bites)

... JG

Re: Diablo 1.15 will be ready in about 2 weeks
#26184
Author: bill davidsen
Date: Thu, 12 Feb 1998 00:00
32 lines
2365 bytes
In article <Eo94Gn.Kzt@zorch.SF-Bay.ORG>,
Scott Hazen Mueller <scott@zorch.sf-bay.org> wrote:
|I (bill davidsen) wrote:
| >However... I hope you aren't going to forget about the feeder side, which is
| >the area in which I still see the most problems at most of the sites I run
| >(or advise).
| 
| Maybe I'm just out of the norm, but my diablo feeder is mostly OK except for
| needing the dhistory file deleted periodically.  I'm guessing a bad juju in
| BSDI 3.0, an OS with a long history of memmap() problems...  Anyway, I'm
| having fits keeping (one of) my INN box(es) happy.  It looked like an extra-
| hot history disk, but I cooled it off with a noatime mount and now the thing
| is just plain sluggish.  I've honestly been trying to just keep it stable
| until Matt got the Diablo reader out the door...

By problems I mean that the feeder side uses a process slot and
memory per connect, which has been a problem on many systems. I wind
up setting the max processes up, having a high load average, etc.

I would really rather have a single process, or a few processes.
Although Diablo is fast enough to keep up with anything with good
connectivity, in the real network I get up to four connects running
from a feed, sometimes one for small arts, one for cancels, etc. Too
many processes in many cases.
-- 
Bill Davidsen (davidsen@tmr.com)
  Have you ever noticed when playing cards that the money you win
with a successful bluff always looks brighter and shinier than what
you win by fate giving you the best cards?

Re: Diablo 1.15 will be ready in about 2 weeks
#26187
Author: Jeff Garzik
Date: Thu, 12 Feb 1998 00:00
41 lines
2616 bytes
Matt Dillon (dillon@best.net) wrote:
:     This means that while INN will work there, strictly transit-only news
:     servers such as the transit side to Diablo will also work and other
:     traditional transit-only news servers (cyclone, though it has reader
:     capability now, NNTPRelay, and so on) can be easily modified to add
:     that one NNTP command without having to add all the group garbage on
:     top of it.

Cyclone has reader capability?  News to me... (no pun intended)
Cyclone may support the ARTICLE <msgid> command, not sure.

It seems to me this scheme *requires* a traditional reader server to
set between the feeder and the reader.  It is not realistic to expect
that a feeder will have anywhere near the disk space required of a
reader server.

Unless the Diablo reader system can stand on its own taking a full
feed, it sounds like a maintenance nightmare.  A site is forced
to either upgrade their feeder to a reader-sized spool, OR run a
Diablo feeder [or INN/Typhoon] on the same machine to support dynamic
article retrieval.

It sure seems like you're making the system more complex than it needs to be.

As the NNTPcache folks (and DNEWS folks) have discovered, it is
often advantageous to have a full feed of certain groups, and then
dynamically request the rest as the users themselves request articles.
Certainly makes sense to support a full (>10G daily) feed, without
having one crammed down a single T1, choking off everything else.

Am I misunderstanding the system?  It seems to me the Diablo reader
functionality will be too limited to stand on its own -- and it
needs to.  Otherwise people are simply going to install Typhoon, INN,
or Tortoise and be done with it.

--
Jeff Garzik			    Typhoon, Cyclone, Diablo, and INN
http://www.spinne.com/usenet/	           News tuning and consulting

Re: Diablo 1.15 will be ready in about 2 weeks
#26191
Author: Jeff Garzik
Date: Thu, 12 Feb 1998 00:00
17 lines
1485 bytes
Scott Hazen Mueller (scott@zorch.sf-bay.org) wrote:
: I get a feed from 'news1.best.com', so I poke at it periodically and issue an
: 'outq' command.  When I start seeing a persistent backlog, I nuke the dhistory
: file and let it start over.  I may be short on RAM, or just suffering from
: using a single disk for /var/news, but whatever it is, deleting the file cools
: things off enough to suck that backlog down posthaste.

What version of Diablo are you running?

Diablo is notoriously hard on your history disk.  1.14 purports to improve
this, are you running the latest and greatest?
--
Jeff Garzik			    Typhoon, Cyclone, Diablo, and INN
http://www.spinne.com/usenet/	           News tuning and consulting

Re: Diablo 1.15 will be ready in about 2 weeks
#26192
Author: Steve Rawlinson
Date: Thu, 12 Feb 1998 00:00
18 lines
948 bytes
>    Are you running the biweekly.atrim cron job ?  

By the way matt, 'biweekly' means once every two weeks. From the
sample crontab it is clear this is not the intended frequency but I
wonder if people are being caught out (I was).

steve



-- 
Steve Rawlinson
ClaraNet Ltd
steve@clara.net
0171 903 3000

Re: Diablo 1.15 will be ready in about 2 weeks
#26195
Author: bill davidsen
Date: Fri, 13 Feb 1998 00:00
19 lines
1536 bytes
In article <6bvsna$8tk$1@flea.best.net>, Matt Dillon <dillon@best.net> wrote:

|     I agree, but I'm not going to commit to anything until the reader
|     stuff has gone through a few revs.

If/when you do this, could you start by making the existing SPAM
filter external? I have an urge to diddle the post-rate stuff and
rely more heavily on content. At some point a daemon is probably
desirable to prevent getting too many processes and eliminate
startup overhead.

-- 
Bill Davidsen (davidsen@tmr.com)
  Have you ever noticed when playing cards that the money you win
with a successful bluff always looks brighter and shinier than what
you win by fate giving you the best cards?

Re: Diablo 1.15 will be ready in about 2 weeks
#26199
Author: bill davidsen
Date: Fri, 13 Feb 1998 00:00
39 lines
2669 bytes
In article <%5GE.1$Yg6.176973@news2.teleport.com>,
Jeff Garzik <jgarzik@raleigh.normnet.org> wrote:

| Unless the Diablo reader system can stand on its own taking a full
| feed, it sounds like a maintenance nightmare.  A site is forced
| to either upgrade their feeder to a reader-sized spool, OR run a
| Diablo feeder [or INN/Typhoon] on the same machine to support dynamic
| article retrieval.

All current system require that the article be *somewhere*
accessible, what's your point? If you want local news you need a big
spool on some machine, and the software to build and maintain it.

| As the NNTPcache folks (and DNEWS folks) have discovered, it is
| often advantageous to have a full feed of certain groups, and then
| dynamically request the rest as the users themselves request articles.
| Certainly makes sense to support a full (>10G daily) feed, without
| having one crammed down a single T1, choking off everything else.

Sounds like a capability which would be easy to add, or to provide
with a simple script running a suck feed to preload the cache.

| Am I misunderstanding the system?  It seems to me the Diablo reader
| functionality will be too limited to stand on its own -- and it
| needs to.  Otherwise people are simply going to install Typhoon, INN,
| or Tortoise and be done with it.

nntpcache doesn't stand on it's own, either. However, this seems to
require both caching *and* a feed, which is rather a PITA. I haven't
seen a reply to my question about getting one of these up to speed
quickly, either, but I have a lot of unread stuff in this group yet.
-- 
Bill Davidsen (davidsen@tmr.com)
  Have you ever noticed when playing cards that the money you win
with a successful bluff always looks brighter and shinier than what
you win by fate giving you the best cards?

Re: Diablo 1.15 will be ready in about 2 weeks
#26202
Author: Matt Dillon
Date: Fri, 13 Feb 1998 00:00
61 lines
3540 bytes
:In article <6c1tib$k0m$1@newssvr03-int.news.prodigy.com>,
:bill davidsen <davidsen@tmr.com> wrote:
:>In article <M8GE.2$Yg6.176973@news2.teleport.com>,
:>Jeff Garzik <jgarzik@raleigh.normnet.org> wrote:
:>
:>| Diablo is notoriously hard on your history disk.  1.14 purports to improve
:>| this, are you running the latest and greatest?
:>
:>The latest version, *if* you use crc instead of prime, does indeed
:>seem to be easier on the history file, I'll ballpark guess a factor
:>of two or a little more.

    Well, it shouldn't :-).  The move to the CRC fixes a bug in the old
    hash function that caused a much higher duplication rate then theoretical,
    but the difference betwen the two should have no effect on disk I/O.

    The easiest way to reduce the load on the history file is to reduce
    the retention time.  For example, setting 'remember 4' in diablo.config.
    This should result in a more manageable history file with a 
    6 day or so retention at the cost of refusing articles that are 
    over 4 days old.

    Article volume has gone up significantly in the last four months, we are
    getting upwards of a million articles a day now where it was 800K articles
    a day last november (see: http://news1.best.com/stats/ )

    Short of making the history records smaller, or changing the mechanism
    entirely, there isn't much we can do.  Diablo's history records are 
    already pretty small -- 28 bytes per entry (INN's average record size
    is 75 bytes or so), and even with a 6 day retention my news's dhistory
    file is still sitting at 190 MBytes or so.  My INN reader boxes's history 
    file is sitting at 300 MBytes or so with a 5 day retention, refusing
    articles over 4 days old, AND getting an already-spam-filtered feed.  

    Without the spam filter my INN box's history would sit at 400MB and with 
    a 6 day retention it would be 475MB.  With the standard two-week retention
    and no spam filter it would sit at 800MB or so.

    -

    The history file is definitely a big problem, but I'm still using
    a non-striped /news partition on my news box as my working baseline.
    When I'm forced to stripe, I'll have to think up a new history storage
    algorithm.

					-Matt
 
:>Bill Davidsen (davidsen@tmr.com)
:>  Have you ever noticed when playing cards that the money you win
:>with a successful bluff always looks brighter and shinier than what
:>you win by fate giving you the best cards?


-- 
    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

Re: Diablo 1.15 will be ready in about 2 weeks
#26205
Author: bill davidsen
Date: Fri, 13 Feb 1998 00:00
25 lines
1646 bytes
In article <slrn6e6jaa.j59.josh@sky.net>, Josh Wilmes <josh@sky.net> wrote:

| Word: 1bi.week.ly 
| Pronunciation: (")bI-'wE-klE 
| Function: adjective 
| Date: 1832 
|  
| 1 : occurring twice a week 
| 2 : occurring every two weeks : FORTNIGHTLY 
I think 1 should include SEMIWEEKLY if you're doing synonyms.

biweekly - verb+adj
"My husband drinks all the beer in the 'fridge, so I biweekly"

Someone posted a great quote about usenet "not only beating a dead
horse, but dragging the carcass through the streets." Consider the
poor joke my last post on this part of the topic ;-)
-- 
Bill Davidsen (davidsen@tmr.com)
  Have you ever noticed when playing cards that the money you win
with a successful bluff always looks brighter and shinier than what
you win by fate giving you the best cards?

Re: Diablo 1.15 will be ready in about 2 weeks
#26208
Author: bill davidsen
Date: Fri, 13 Feb 1998 00:00
17 lines
1446 bytes
In article <M8GE.2$Yg6.176973@news2.teleport.com>,
Jeff Garzik <jgarzik@raleigh.normnet.org> wrote:

| Diablo is notoriously hard on your history disk.  1.14 purports to improve
| this, are you running the latest and greatest?

The latest version, *if* you use crc instead of prime, does indeed
seem to be easier on the history file, I'll ballpark guess a factor
of two or a little more.
-- 
Bill Davidsen (davidsen@tmr.com)
  Have you ever noticed when playing cards that the money you win
with a successful bluff always looks brighter and shinier than what
you win by fate giving you the best cards?

Re: Diablo 1.15 will be ready in about 2 weeks
#26212
Author: Scott Hazen Mueller
Date: Fri, 13 Feb 1998 00:00
12 lines
1231 bytes
>Diablo is notoriously hard on your history disk.  1.14 purports to improve
>this, are you running the latest and greatest?

1.13.  I have a vague recollection of something convincing me that 1.14 and
BSDI 3.0 was not a good combination.  It's not in the release notes, so I'll
have to download the package and look again...

                              \scott


Re: Diablo 1.15 will be ready in about 2 weeks
#26223
Author: bill davidsen
Date: Fri, 13 Feb 1998 00:00
17 lines
1440 bytes
In article <JUGE.5$Yg6.197532@news2.teleport.com>,
Jeff Garzik <jgarzik@raleigh.normnet.org> wrote:

| Drawbacks to Spam Hippo:  Huge VM usage (MMAPs your entire article history),
| disk hit for every article, and it gets false positives on NoCeM messages
| sometimes.

Someone posted a case where it zapped one of its own NoCeM messages
as spam. NOT expected behaviour!
-- 
Bill Davidsen (davidsen@tmr.com)
  Have you ever noticed when playing cards that the money you win
with a successful bluff always looks brighter and shinier than what
you win by fate giving you the best cards?

Diablo progress report for 1.15
#26241
Author: Matt Dillon
Date: Sat, 14 Feb 1998 00:00
141 lines
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

Re: Diablo progress report for 1.15
#26256
Author: Marc Slemko
Date: Sat, 14 Feb 1998 00:00
11 lines
1087 bytes
In <6c50t0$16u$1@flea.best.net> dillon@best.net (Matt Dillon) writes:

>    However, I *STILL* need people to help with the file descriptor passing
>    code on non-FreeBSD platforms.

FYI, if you want to look at examples of how it can be done, look at
a "recent" NCSA httpd.  It does it for three or four different types of 
system, including Linux which is different from everything else.

Re: Diablo 1.15 will be ready in about 2 weeks
#26262
Author: Joe Greco
Date: Sun, 15 Feb 1998 00:00
46 lines
2251 bytes
In news.software.nntp article <uhPE.145$b%5.471477@ptah.visi.com>, drechsau@yuck.net (Mike Horwath) wrote:
:Joe Greco <jgreco@ns.sol.net> wrote:
:: (I _love_ Cyclone but Solaris bites)
:
:You are satan!
:
::)
:
:/me the big solaris bigot...and defender of solarii everywhere

I used to work for an OEM that had Solaris source code.  Didn't improve
my respect at all.

So if Solaris is so wonderful, why do I need to run:

> cat /usr/local/bin/fuckingsolaris
#! /bin/sh -

echo "Checking net" > /dev/console
ping 169.207.0.1 > /dev/null || (
	echo "Net dead; reboot" > /dev/console
	/news/cyclone/bin/stop
	sleep 30
	uadmin 2 1
)
> last -9
reboot    system boot                   Sat Dec 13 08:23
reboot    system boot                   Sat Dec 13 03:58
reboot    system boot                   Fri Dec 12 09:58
reboot    system boot                   Fri Dec 12 07:48
reboot    system boot                   Thu Dec 11 09:08
reboot    system boot                   Wed Dec 10 13:48
reboot    system boot                   Wed Dec 10 05:08
reboot    system boot                   Sun Dec  7 15:43
reboot    system boot                   Sun Dec  7 09:43

Heh, for that matter, why does my "last" command not show the last two
months...

The network (one of two interfaces) seems to die completely under high
traffic loads.  Tried different brands of network cards and everything.

... JG

Re: Diablo progress report for 1.15
#26268
Author: Miquel van Smoorenburg
Date: Sun, 15 Feb 1998 00:00
25 lines
1632 bytes
In article <6c59ba$q7b$1@scanner.worldgate.com>,
Marc Slemko  <marcs@znep.com> wrote:
>In <6c50t0$16u$1@flea.best.net> dillon@best.net (Matt Dillon) writes:
>
>>    However, I *STILL* need people to help with the file descriptor passing
>>    code on non-FreeBSD platforms.
>
>FYI, if you want to look at examples of how it can be done, look at
>a "recent" NCSA httpd.  It does it for three or four different types of 
>system, including Linux which is different from everything else.

Don't. Linux is not different. The implementation in NCSA is a gross hack
using the proc filesystem which I did for Linux 1.2.x. Linux 2.0.x supports
FD passing the BSD 4.4 way.

I'll see if I can make some time today to help Matt out with the Linux side
of things.

Mike.
-- 
 Miquel van Smoorenburg |  The dyslexic, agnostic, insomniac lay in his bed
    miquels@cistron.nl  |  awake all night wondering if there is a doG

Re: Diablo progress report for 1.15
#26275
Author: Matt Dillon
Date: Sun, 15 Feb 1998 00:00
28 lines
1589 bytes
:In article <6c6iaf$v1l$1@defiant.cistron.nl>,
:Miquel van Smoorenburg <miquels@cistron.nl> wrote:
:>In article <6c59ba$q7b$1@scanner.worldgate.com>,
:>Marc Slemko  <marcs@znep.com> wrote:
:
:>
:>I'll see if I can make some time today to help Matt out with the Linux side
:>of things.
:>
:>Mike.

    ... and I got it, thanks! 

    Only minor missing #define's were required, linux has come a long way!

    I've got confirmation for FreeBSD, BSDI, Linux, and AIX.  I still need
    SunOS, Solaris, and IRIX (and any other UNIX's people use, of course). 

						-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

Re: Diablo 1.15 will be ready in about 2 weeks
#26278
Author: Brett Hawn
Date: Mon, 16 Feb 1998 00:00
31 lines
1827 bytes
On Mon, 16 Feb 1998 05:01:57 GMT, Mike Horwath <drechsau@yuck.net> wrote:
>solaris x86?
>
>I don't have much running for x86 at this point, but, I could put a
>x86 server online with Cyclone and pummel it some to see how it lives.
>
>Maybe I will do that tomorrow, and make it a piece of shit computer as
>well, 64MB, IDE disk...yeah, I will do that.
>
>Thanks :)

Mike, remind me tomorrow and I'll send you a little perl jobbie I wrote
that'll put your machine under some heavy duty stress :)

Give it an active file and run it like so

./newsblast 500

it'll take the first 500 groups in the active file, spawn off one process
per, get xover information from the group and then read every article in it.

Just don't look at the load average while its running eh

-- 
<HTML><META HTTP-EQUIV="Content-Type:text/html"> <SCRIPT>
function X() {var Text = "HTML is not acceptable for using in mail " +
"or usenet so your browser will stop."; alert(Text); parent.close();};
</SCRIPT> </HEAD><BODY onLoad="X();return true">Hi</HTML>

Re: Diablo 1.15 will be ready in about 2 weeks
#26279
Author: Terry Kennedy
Date: Mon, 16 Feb 1998 00:00
18 lines
1584 bytes
bill davidsen <davidsen@tmr.com> writes:
> On a serious note, I reject lots of articles, how to tell why an
> article is rejected. I tried running with debug, unless you have to
> use more than two levels to get the info, it isn't telling.
>
> I'd like to have an idea of "too old" vs. precancel vs. ???

  Seconded. I don't really care if I pass the reason in a response code to
the peer that's feeding me, but I'd really like to see these logged in the
Diablo summaries. Ideally I'd like to have them broken out by every possible
reason.

	Terry Kennedy		  Operations Manager, Academic Computing
	terry@spcvxa.spc.edu	  St. Peter's College, Jersey City, NJ USA
        +1 201 915 9381 (voice)   +1 201 435-3662 (FAX)

Re: Diablo 1.15 will be ready in about 2 weeks
#26282
Author: bill davidsen
Date: Mon, 16 Feb 1998 00:00
56 lines
3686 bytes
In article <Pine.LNX.3.96.980216154657.7679B-100000@coredump.int.tele.dk>,
Department of Redundancy Department  <ag786@yfn.ysu.edu> wrote:

| 2) I can't tune my feed to the peer based on non-streaming rejection
| notices.  There are several peers I feed which throw away an abnormally
| large amount of the data we deliver.  I'm able to tune my feeds to many
| other sites based on the rejection messages I get, but I'm reduced to
| guessing why a Diablo peer has just thrown away the article.

I've tried to find out why articles are getting rejected, see below.

| 3) I often see a few Diablo peers apparently getting confused and
| returning unexpected responses to me.  I believe I've fixed innfeed not to
| crash on the occasional bogus respose, but I've seen Diablo peers get
| stuck repeatedly returning responses (431, if I remember, plus an
| unexpected message ID) which cause that connection to immediately close,
| and again, would hammer my backlog disk, if I bothered.

I think part of the problem is innfeed itself, at least in stock
form. When innfeed gets a high number of accepts to check messages,
it goes into "NOCHECK_MODE" (say the logs) and starts doing
"takethis" without a check. Unfortunately if you offer a bunch of
articles I like and then a bunch I don't want, you get a boatload of
rejects. The answer to this is to set the "no-check" values to
prevent ever offering articles without a check.

| 4) For my incoming feeds, the majority of my Diablo peers send me far more
| articles that are rejected as duplicates than are accepted, sometimes five
| times as many or more.  Perhaps this could be due to poor network
| performance and the problem Matt noted a day or two earlier -- at another
| machine, with even worse network performance, there are some peers which
| offer several hundred thousand articles daily and are lucky to get a
| single one accepted, while normally we take close to 900k out of more than
| 20 million offered from our remaining peers.

I have noted that with propigation times dropping it's harder than
ever to get articles accepted anywhere which has multiple feeds. I
don't think I take more than 20% from any one site averaged over a
week.

| 5) Access still seems to be too dependent on DNS lookups, and I see my
| servers being denied permission several times a day to many sites.

I thought the name to IP was done once and the IP cached. Is this
not the case? In any case, looking through a few day's results, I
see no log errors in the report which look as if this was happening.

-- 
Bill Davidsen (davidsen@tmr.com)
  Have you ever noticed when playing cards that the money you win
with a successful bluff always looks brighter and shinier than what
you win by fate giving you the best cards?


Re: Diablo 1.15 will be ready in about 2 weeks
#26283
Author: Joe Greco
Date: Mon, 16 Feb 1998 00:00
31 lines
1875 bytes
In news.software.nntp article <6c8hln$9vs$1@synthemesc.insync.net>, Andrew <aos@insync.net> wrote:
:Joe Greco <jgreco@ns.sol.net> wrote:
:> So if Solaris is so wonderful, why do I need to run:
:<snip>
:> The network (one of two interfaces) seems to die completely under high
:> traffic loads.  Tried different brands of network cards and everything.
:
:I sincerely doubt this is really a Solaris problem you're dealing with.
:I'm running many servers on Solarisen ranging from 2.4 to 2.6 and I've
:never ever seen a problem like that.

And I've heard from others who have.  :-(

Worse, this very platform had been working with hundred-plus-day-uptimes
under FreeBSD and INN.

:Have you got a software support contract with Sun?  Call them.  They will
:help.

HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA!!!!!!

They can't even figure out how to get my pet SPARCstation 10/30 to run
without locking up.  And that's been a running complaint for years.  And
several hardware swapouts.

Sorry, it's late...

... JG

Re: Diablo 1.15 will be ready in about 2 weeks
#26285
Author: Jeff Garzik
Date: Mon, 16 Feb 1998 00:00
59 lines
3474 bytes
In article <6caa24$gfb$1@flea.best.net>, Matt Dillon <dillon@best.net> wrote:
>    Hmm.  If a diablo peer ever runs out of space, there's something seriously
>    wrong with it... like the admin isn't running (the relatively cheap)
>    expire often enough.  I can't really generate an error on startup because
>    not all connections to the server are to push feeds.  It is my feeling
>    that if a newsfeeder sees a 400 error, it should do the right thing and
>    should not depend on the initial connection returning a 400 or 502 error.

Agreed, the feeder should be smart enough to recognize a no-access
error whereever it may appear.

Consider, too, under normal circumstances a Diablo spool may not fill up 
until a connection has progressed for several minutes...  Perfectly
legitimate to return a 400 then.


>:>2) I can't tune my feed to the peer based on non-streaming rejection
>:>notices.  There are several peers I feed which throw away an abnormally
>:>large amount of the data we deliver.  I'm able to tune my feeds to many
>:>other sites based on the rejection messages I get, but I'm reduced to
>:>guessing why a Diablo peer has just thrown away the article.

>    This has been a complaint for a while.  I'll stick something in my 
>    TODO.  I can't do anything about streaming rejections, but I can do
>    something about non-streaming rejections as you said.

When I was running Diablo was my feeder, I often saw occasions where
sites would reject everything I was sending them.  (ie. dnewslink ->
peer) Every article.  Caused huge, intermittant spikes in bandwidth
used.


>    I often find that some of my outgoing feed destinations reject as 
>    duplicates nearly all the articles I offer, even though I offer them
>    within a few seconds of receiving them and take feeds from 9 of the top
>    10 on the freenix 1000, but when those destinations other incoming
>    feeds blow up, or (if INN) decide to do an expire, they suddenly start 
>    accepting everything from me.

This may purely be a word usage problem here, but...

I thought the idea was to *refuse* articles, not reject them as
duplicates after the bandwidth.  Rejected articles still cost you
bandwidth, refused do not.



>    The purpose of having multiple incoming feeds is to add presumed 
>    reliability to your news system.  Once you get beyond 3 incoming feeds
>    it's no longer just a matter of trying to get newsgroup saturation.

When you are battling spotty alt.* coverage, having three incoming
feeds may not nearly be enough (depending on the feeds).

Various article size limits, out-of-date to "adminified" active files,
hop limits, and other factors serve to limit an outgoing "full feed."

Re: Diablo 1.15 will be ready in about 2 weeks
#26291
Author: Matt Dillon
Date: Mon, 16 Feb 1998 00:00
33 lines
2151 bytes
:In article <6ca5o9$lf6$1@newssvr03-int.news.prodigy.com>,
:bill davidsen <davidsen@tmr.com> wrote:
:>In article <6c229u$aet$1@flea.best.net>, Matt Dillon <dillon@best.net> wrote:
:..
:>|     Article volume has gone up significantly in the last four
:>|     months, we are getting upwards of a million articles a day
:>|     now where it was 800K articles a day last november (see:
:>|     http://news1.best.com/stats/ )
:>
:>Offered or accepted? I am getting ~3M offered on two Diablo servers and
:>accepting ~650k (1259517 + 1739369).
:
    unique message-id's.  We get offered around 10 million/day, accept 
    around 550K/day, reject another 350K/day in spam... numbers from last
    thursday.  It didn't quite hit a million unique message id's.  For
    outgoing we offer around 14 million articles/day, 4.7 million are
    accepted, 8.2 million are dups, and 1.2 million are rejected.

    Not bad for a PPro 200 with 192MB of ram and three 4G disks running
    FreeBSD.  If I were able to think up an algorithm to do the same with
    even less memory and disk, I'd do it.

						-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

Re: Diablo 1.15 will be ready in about 2 weeks
#26293
Author: Joe Greco
Date: Mon, 16 Feb 1998 00:00
47 lines
2231 bytes
In news.software.nntp article <9LPF.92$mj4.581914@ptah.visi.com>, drechsau@yuck.net (Mike Horwath) wrote:
:bad install?

Doubtful.  A minimal install.

:Bad hardware?

Worked with hundred-plus-day uptimes under FreeBSD.  For over a year.

:I have 30+ servers running at my current workplace, and there are
:other servers at my old workplace still running far as I know.

Nice.  But I tend to beat on equipment - I expect performance under
stressful loads.  This machine is living as "newspump.sol.net", and
came in at #14 on the Freenix list this last month.

One of my SPARC machines locks on a semiregular basis (~2 weeks) and
Sun's been no real help.  :-(

:solaris x86?

Yes.

:I don't have much running for x86 at this point, but, I could put a
:x86 server online with Cyclone and pummel it some to see how it lives.
:
:Maybe I will do that tomorrow, and make it a piece of shit computer as
:well, 64MB, IDE disk...yeah, I will do that.

:-)  64MB, enough to boot...  heh.

Seriously, I probably stress the machine far more than your average 
user.  My Cyclone has 300-400 threads active on average, sometimes more
like 500.  Running a custom spam filter too.

I'd be more understanding if the damn thing would just die.  But it
doesn't - the second net ifc is still alive and I can even telnet into
the box.  It's just ... gone.

:Thanks :)

Yer welcome.

... JG

Re: Diablo 1.15 will be ready in about 2 weeks
#26300
Author: Chris Sedore
Date: Mon, 16 Feb 1998 00:00
80 lines
5109 bytes
Department of Redundancy Department wrote:
> 
> On 16 Feb 1998, Jeff Garzik wrote:
> 
> > Various article size limits, out-of-date to "adminified" active files,
> > hop limits, and other factors serve to limit an outgoing "full feed."
> 
>     Probably the biggest factor is the pervasiveness of what are called
> `best-shot feeds' nowadays -- feeders which keep only a very small backlog
> for a peer, often only what will fit into an in-memory queue.
> 
>     The feeder at Maxwell is one example of this, for which statistics are
> readily available, including the percentage of articles scheduled for that
> peer which actually were handled, rather than being dropped on the floor.
> Many other sites, running Cyclone or innfeed, will also drop undelivered
> articles.
> 
>     A quick glance at that stats page show sites ranging from only getting
> some 6% of what they should, up to nearly 100%, but with the majority of
> sites dropping a significant amount of news over the last 18 days for
> various reasons.
> 
>     If a site has feeds like this, no matter how many, there's always the
> possibility of missing articles after downtime, network problems,
> whatever.  Even Cyclone and Diablo sites are at less than 90% or 80% rate
> seen here.  This had better not be your only feed.
> 
>     It behooves each site to find out what the parameters of are for all
> the incoming feeds, so a site doesn't unexpectedly find itself with three
> best-shot no-backlog incoming feeds and a flaky network.  Likewise,
> editorial control from the feeder, plus all the other reasons Jeff
> mentioned.

Just FYI on our processed numbers.  For many of the sites on
news.maxwell, we won't offer articles to hosts that hit the precommit
entry for that article.  In other words, if you offer us an article
while its in transit to us from someone else, we remember that it was
offered and then don't reoffer it back to you.  

Unfortunately, our stats don't reflect that in the processed numbers
(because of the disconnect between incoming and outgoing feeds) so it
appears that some folks don't process all the articles when they do. 
It's possible to compute the statistics, but I haven't got around to
doing the work on the script yet.  We can now also track, on average,
how far "behind" a site is when it offers us articles.

Stats for our top 5 peers (as sorted by how many articles were dequeued
from that site's outgoing feed list).  The time in ms is the average
time between the creation of a precommit entry and when this site
offered it.  Sample size for the latency stat is about the same is it is
for the number of dequeues.

peer1	5370682  743ms
peer2	5342264 
640ms                                                                                                                                                                                                         
peer3	4605790 
836ms                                                                                                                                                                                                         
peer4	4000221 
713ms                                                                                                                                                                                                         

This is over the full uptime which is about 18 days.  We save about
30-40 offers per second with this code.  I'd like to do nice graphs of
each of these for our site someday.

Someday I'm hoping to get around to writing delayed feed code so that
you can use this as a backup mechanism--an I'll feed you anything you
don't offer me kind of thing.  I already can dequeue out of the feed
database, but that hurts a little more on the performance side, and
doesn't buy (us) much since most of our peers have already received a
check from us by the time they go to offer (if they didn't hit the
precommit cache).

(Geez, I just noticed that we did 768 million history lookups over that
time period as well.  I've been waiting for it to roll over 1 billion
without a restart.)

-Chris

Re: Diablo 1.15 will be ready in about 2 weeks
#26302
Author: Marc Slemko
Date: Mon, 16 Feb 1998 00:00
10 lines
1030 bytes
In <6c8m46$ll6@newsops.execpc.com> jgreco@ns.sol.net (Joe Greco) writes:

>I'd be more understanding if the damn thing would just die.  But it
>doesn't - the second net ifc is still alive and I can even telnet into
>the box.  It's just ... gone.

Have you tried an ifconfig down then up or even unplumb then plumb?

Re: Diablo 1.15 will be ready in about 2 weeks
#26308
Author: Joe Greco
Date: Mon, 16 Feb 1998 00:00
14 lines
1277 bytes
In news.software.nntp article <6c8sjb$qec$1@scanner.worldgate.com>, Marc Slemko <marcs@znep.com> wrote:
:>I'd be more understanding if the damn thing would just die.  But it
:>doesn't - the second net ifc is still alive and I can even telnet into
:>the box.  It's just ... gone.
:
:Have you tried an ifconfig down then up or even unplumb then plumb?

Yes.  It's really gone.  The symptoms are near identical to having the
cable unplugged.

... JG

Page 1 of 2 • 67 total messages
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads