🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #7669

Re: Storage of Usenet News Articles by MD5 Hash

#7669
From: Mark Delany
Date: Thu, 16 May 1996 00:00
63 lines
3434 bytes
Evan Champion <evanc@synapse.net> writes:

>> define cycle1 alt.*   /dsk1/somefile,500M /dsk2/somefile,2G /dsk3/..
>> define cycle2 local.* /dsk5/somefile,200M
>> 
>> The code complexity to handle news in a cyclic buffer is reasonably
>> large, so the code fragment needed to calculate an offset into an
>> array of files is not much of an additional burden.

>I don't like this particular method because you are saying that only
>a certain set of disks will be used to store particular hierarchies.
>That is effectively what happens in the current INN configuration
>with multiple disks, where you end up having an alt disk, an
>alt.binaries disk, a comp disk, etc.  You end up wasting a lot of
>space

Space is never wasted as such in the above scheme. It may not be being
used in a way that matches your desired article TTL strategy
however...

What the above configuration is saying is to use X amount of disk
space for group Y, if that means the articles get to hang around for 2
months (or 2 days) all well and good. But, you allocate how much space
per group pattern and that's all that's ever used.

>if you are not prepared to constantly juggle things around.  It

I agree. Everyone has their own article TTL policy and a generalized
thing cannot hope to be prescient about such strategies.  I would
probably punt for one or two supplied rule mechanisms such as above
and provide an escape hatch for user supplied strategies. It's just
too hard and too variable to have a mechanism that solves everyone's
needs.

>The best I could come up with for a circular buffer model that is
>more condusive to multi-disk (non-RAID) systems would be to have
>files for all the buffers existing on all the disks.  Articles would
>be written to each disk in some sort of round-robin fashion.

Could that be solved thus?

define cycle2 * /dsk1/somefile,2G /dsk2/somefile/,2G /dsk3/somefile/,2G ...

But then all articles would have the same TTL which isn't what most
people want.

>The problem is that if you have M active buffers (ie: buffers being
>updated) and N disks, you need M*N open files.  It doesn't take much
>to get that to grow to a number that could cause some concern.

I'm sortof expecting largish files, so fd usage would be of the order
of 20-30. You might, eg, have one file/partition per TTL rule. How
many different TTL rules do you want to apply to your news?

But yeah, it is potentially a problem for OSes running significant
news systems on serious machines with multiple spindles (and maybe
multiple controllers) that only support, say, 64 open fds per process.


Regards.

Technical Details
Message-ID: <4ne3qm$il8@bushwire.mira.net.au>
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: <4mrljr$ho@olivea.ATC.Olivetti.Com> <4mt0lg$eag@piano.synapse.net> <4n883e$o6m@olivea.ATC.Olivetti.Com> <3197E129.5327@synapse.net> <4naukm$8lf@fugue.clari.net> <3199EB10.7C5C@synapse.net> <4ndn5k$hr6@bushwire.mira.net.au> <319A7F0F.2633@synapse.net>

Show Full Headers
Complete Article Headers
Message-ID: <4ne3qm$il8@bushwire.mira.net.au>
Subject: Re: Storage of Usenet News Articles by MD5 Hash
Date: Thu, 16 May 1996 00:00:00 +0000
From: Mark Delany <markd@mira.net.au>
References: <4mrljr$ho@olivea.ATC.Olivetti.Com> <4mt0lg$eag@piano.synapse.net> <4n883e$o6m@olivea.ATC.Olivetti.Com> <3197E129.5327@synapse.net> <4naukm$8lf@fugue.clari.net> <3199EB10.7C5C@synapse.net> <4ndn5k$hr6@bushwire.mira.net.au> <319A7F0F.2633@synapse.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: 155047904
Organization: Werple Internet, Melbourne
Newsgroups: news.software.nntp