🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44128

Re: Q: Wildcard Authentication for Diablo Reader

#44128
From: Joe Greco
Date: Wed, 16 Feb 2000 00:00
92 lines
5046 bytes
In news.software.nntp article <lQnq4.46720$ox5.12256086@tw11.nn.bcandid.com>, cmadams@HiWAAY.net (Chris Adams) wrote:
:Once upon a time, Joe Greco <jgreco@ns.sol.net> said:
:>In news.software.nntp article <slrn8adu8n.35p.pm@manlap.zetnet.co.uk>,
:>pm@nowster-zetnet.co.uk (Paul Martin) wrote:
:>:Tip: Diablo doesn't generate many files in /news/spool/news, probably
:>:50000 tops, so why bother having millions of inodes on that filesystem?
:>:Also, the files that it does generate are large, so increasing the
:>:block size (and blocks per inode) is a win.
:>
:>Don't mess with the block size on FreeBSD.  Does odd things.
:
:I'm using Linux.  I've set it to 4k blocks.
:
:>My 180-day text spool has about 114136 inodes consumed.  However, to get
:>that kind of performance, you do have to make sure that you've a reasonable
:>spool filling policy.  Getting a hundred feeds from all over will ruin the
:>nice low number-of-inodes, since Diablo creates a file per inbound stream.
:>To keep the numbers as low as I've got, I can only create 635 files/day, or
:>26 an hour.
:
:Since you mentioned a text spool; I've got another (non Diablo)
:question: I'm working at the moment on setting up a text-only server.
:What should I request from a feeder/peer to get a "text-only" feed?
:Will something like '*,!*binar*,!*binaer*' catch the various spellings
:of binaries?  Do I need to also have them limit article size (and if so,
:what is a good size to call text-only)?

I classify:

if (type & ARTTYPE_BINARY || type & ARTTYPE_PS || type & ARTTYPE_PARTIAL || type & ARTTYPE_PGPMESSAGE) {
}

as binary.  This uses the articleType function that I've passed around once
or twice before.  I do plan to put this function into Diablo, so that you
may actually have a feed object like

label	site
	alias	site
	addgroup	*
	delarttype	binaries,ps,partial,pgpmessage
end

and it'll just weed out the binaries.  I have this running in production
now, as a backend to Diablo.  It is ugly but works.  Integration is the
right way to go.

:Also, how much space should you allow for overview information for a
:text-only feed?  If I want 50G of articles, how much space should I
:allow for overviews?

Dunno.  Never did the math.  My readers have 36GB of overview space,
for ~16000 groups, including binaries, and store things an average of
about 80 days.  My estimate is that there are probably about 25 million
articles on overview.

1.5K/article?  Seems about right.

:>:All fsck is checking is metadata. If you tune things correctly, you can
:>:get your diablo spool fscked in a few minutes.
:>
:>Better tip: take best of both worlds.  Make multiple filesystems which can
:>be efficiently checked in parallel.  Gets fsck times down to ~30 seconds
:>for 250GB (9 spools).
:
:That's why I was asking about your Diablo patch that splits spool across
:multiple drives - I thought of that.  Also, how does your patch affect
:performance?  Does it spread the load across multiple drives fairly
:well, or does it it hit on one for a bit, then the next one, then the
:next one, and so on?  I've set up large spools in the past by setting
:up RAID 0 across lots of drives, both to make a large filesystem and to
:improve performance.  Is that necessary with Diablo, with (or without)
:your patch?

It's always necessary to consider performance.

As far as write performance goes, Diablo still tends to localize writes on
one area of the spool, and therefore on one filesystem - but the target fs
rotates slowly.  That's OK because write activity is rather minimal when
compared to read.  Read performance is probably not _enhanced_ by having
multiple spool fs's, either, though.  So I'd say it's probably more of a
wash when considering runtime performance.  Now that we've concluded that
performance isn't a big deal...

Where you win is recovery.  The ability to do parallelizing fsck's, to lose
only a portion of your spool if a drive goes bad, etc.

The actual structure of the machine was described on freebsd-chat just a
bit ago, and highlights a clever way to make the most of your spindles.

... JG

Technical Details
Message-ID: <38aadefa$0$1408@news.execpc.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: <87vvl4$dl5$1@nnrp1.deja.com> <slrn8adu8n.35p.pm@manlap.zetnet.co.uk> <38a89fd5$0$88716@news.execpc.com> <lQnq4.46720$ox5.12256086@tw11.nn.bcandid.com>

Show Full Headers
Complete Article Headers
Message-ID: <38aadefa$0$1408@news.execpc.com>
Subject: Re: Q: Wildcard Authentication for Diablo Reader
Date: Wed, 16 Feb 2000 00:00:00 +0000
From: jgreco@ns.sol.net (Joe Greco)
References: <87vvl4$dl5$1@nnrp1.deja.com> <slrn8adu8n.35p.pm@manlap.zetnet.co.uk> <38a89fd5$0$88716@news.execpc.com> <lQnq4.46720$ox5.12256086@tw11.nn.bcandid.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
X-Deja-AN: 586598097
Sender: jgreco@earth.execpc.com
X-Trace: 0RW8S?BXNaRI5[332>a9Y[bfNiaEHUgJWRYcgIRLSUE]cdVXdaHc[G]G^cMD4Sa65Q21Vkhja922Vl=jlCRBl;3S4dTgmFn@ShW
Organization: sol.net Network Services - Milwaukee, WI
Newsgroups: news.software.nntp
X-Complaints-To: abuse@execpc.com