🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #46432

Re: Diablo spool

#46432
From: Kjetil Torgrim Homme
Date: Mon, 15 May 2000 00:00
28 lines
2055 bytes
[Olaf Titz]

>   or better, use a true hash function. Perhaps something as
>   primitive as aabbccdd -> (bb^cc)+(aa^dd) mod n.
>   This way, you avoid higher patterns that could be in the time part
>   from the start.

Hmm.  I'm using 3 spools with the current scheme.  This means that I
am vulnerable to bursts in traffic which always appear on the same
time of day or hour.  If I have a peer which batches it up and sends
it every 30 minutes, his batch will always hit the same spool.  This
isn't really a problem in my case, since most my traffic is
"realtime", but it may be a concern for leaf sites.  One workaround is
to use a number of spools which is not divisible by 2, 3 or 5.  7
spools would be nice.

Using a hash feels risky though.  Diablo will store all the traffic
from a 10 minute period into one directory on one spool.  If the hash
function is only slightly repetitive occasionally, you can cause havoc
to the expiration times.  On my feeder, each of my 3 spools is 4 GB,
so I can hold 3 hours of a full feed in total...  I think I prefer the
deterministic algorithm, it being easier to reason about its
consequences.


Kjetil T.

Technical Details
Message-ID: <1rln1b7snh.fsf@haey.ifi.uio.no>
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: <957925631.861148@news.netscum.dk> <brad-881E22.12014311052000@news.skynet.be> <391af10b$0$63134@news.execpc.com> <877ld155f3.fsf@erlenstar.demon.co.uk> <8fo6dg$iel@bigred.inka.de>

Show Full Headers
Complete Article Headers
Message-ID: <1rln1b7snh.fsf@haey.ifi.uio.no>
Subject: Re: Diablo spool
Date: Mon, 15 May 2000 00:00:00 +0000
From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no>
References: <957925631.861148@news.netscum.dk> <brad-881E22.12014311052000@news.skynet.be> <391af10b$0$63134@news.execpc.com> <877ld155f3.fsf@erlenstar.demon.co.uk> <8fo6dg$iel@bigred.inka.de>
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: 624301060
X-Complaints-To: abuse@ifi.uio.no
X-Trace: maud.ifi.uio.no 958403635 21340 129.240.64.139 (15 May 2000 15:13:55 GMT)
Organization: Dept. of Informatics, University of Oslo, Norway
NNTP-Posting-Date: 15 May 2000 15:13:55 GMT
Newsgroups: news.software.nntp