🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #38611

Re: Balancing flow to spools (was: Re: Broadband news sever comparison)

#38611
From: bill davidsen
Date: Mon, 12 Jul 1999 00:00
58 lines
3849 bytes
In article <19990709174730.429$lS@newsreader.com>,
Curt Welch <curt@kcwc.com> wrote:
| davidsen@tmr.com (bill davidsen) wrote:

| I don't precreate the files (they aren't cycbufs) so they start empty and
| then grow to full size.  That's why I was thinking that way.
| 
| BTW, I haven't done any testing, but I doubt the contiguous issue is a
| valid concern.  The Berkeley file system allocates blocks in a fashion to
| minimize those types of problems.  And though you write the files
| sequentialy, you seldom read them that way - so I suspect the pre-alocating
| the files to try and get them more continguous does little good.
| Pre-alocationg might be a big win because it prevents having to do the fs
| alocation work as you write - but not because of the contigous issue.  At
| least that is my guess.

I don't have a BSD system handy, but unless you have each spool on a
separate device or at least filesystem I would worry that various
categories of spool would interleave and result in extra or longer seeks.

| > Preferentially using a new cycbuff
| > both spreads the reader load quickly and speeds the extension of
| > effective retention period. Making an effort to keep the oldest article
| > in all cycbuffs the same age lengthens the retention also,
| 
| Yes, that makes some sense for cycbufs.  But in my system where 1/10 of the
| entire spool will vanish in 3 seconds - the concept of keeping the articles
| the same age is mostly impossible.  So that's why I didn't bother with
| trying to optimize for that when I selected my algorithm.

Okay, totally unrelated approach. Back in inn-1.5 days I played with
creating files in directories based on the expected expiration date at
the time the article arrived. Reduced expire to "rm -rf" complexity,
applied to the oldest directory.


| In my system, you have multiple spools.  Each spool is a single directory
| which you tell the server to store up to N MB of articles in.  For each
| spool, you define which articles you want to go in to it using the same
| complex language you use when defining feeds to other servers.
| 
| At any time, you can change those definitions about which articles are
| being stored in which spool, and it has no effect on the old articles
| already stored there (other than the fact that it changes how quickly those
| old articles are being overwritten), but it has a big effect on where new
| articles are stored.

Not unlike the INN behavior which allows you to assign articles to a
given class, which can change. But in general this isn't a change in the
policy for a class, just in what determined a member. The value for
"oversize" keeps changing, for instance.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.

Technical Details
Message-ID: <7mdfpi$3u8e$1@newssvr03-int.news.prodigy.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: <7lj35i$cct$1@usenet45.supernews.com> <19990708205106.164$l5@newsreader.com> <7m5ekb$2mfg$1@newssvr03-int.news.prodigy.com> <19990709174730.429$lS@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <7mdfpi$3u8e$1@newssvr03-int.news.prodigy.com>
Subject: Re: Balancing flow to spools (was: Re: Broadband news sever comparison)
Date: Mon, 12 Jul 1999 00:00:00 +0000
From: davidsen@tmr.com (bill davidsen)
References: <7lj35i$cct$1@usenet45.supernews.com> <19990708205106.164$l5@newsreader.com> <7m5ekb$2mfg$1@newssvr03-int.news.prodigy.com> <19990709174730.429$lS@newsreader.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: 500217568
X-Complaints-To: abuse@prodigy.net
X-Trace: newssvr03-int.news.prodigy.com 931807858 129294 199.4.137.118 (12 Jul 1999 19:30:58 GMT)
Organization: TMR Associates, Schenectady NY
NNTP-Posting-Date: 12 Jul 1999 19:30:58 GMT
Newsgroups: news.software.nntp
Originator: davidsen@darkstar.prodigy.com