🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #32378

Re: Diablo and multiple spool filesystems

#32378
From: Matt Dillon
Date: Thu, 22 Oct 1998 00:00
61 lines
3477 bytes
:In article <70le0n$b19$1@samba.rahul.net>,
:Rahul Dhesi <c.c.eiftj@46.usenet.us.com> wrote:
:>In <7mqX1.6582$1d.1059812@news.novia.net> mcmahon@novia.net (Michael S.
:>McMahon) writes:
:>
:>>In <706lbh$m5i@newsops.execpc.com>, jgreco@ns.sol.net (Joe Greco) writes:
:>>>[...] one of the things that I would _really_ like to see: support for
:>>>multiple spool filesystems.  I like to build my spools out of a lot of
:>>>disks.  One of my Diablo spools is 108GB (12 x 9GB), and I am scared to
:>>>think that there will come a day I need to run fsck on it after a crash.
:>
:>>	Create another config file called diablo.spools which lists, one
:>>per line, paths to directories which can be used for spools.
:>
:>Yes, please.  And include a space parameter limiting total size to that
:>much, if possible.
:>-- 
:>Rahul Dhesi <dhesi@spams.r.us.com>

    Hmmm.  Well, to do it right would mean adding a spool directory prefix
    pattern to diablo.config which might then contain %-escapes for various
    flavors, e.g.:

	# Stripe%t/D.xxxxxxxx/B.yyyy
	#
	#	%t -    rotate 0-5 (*10 minutes), i.e. rotate through 6
	#		directories each hour.
	#
	spool_prefix	Stripe%t		

    It would be fairly easy to put this into 80% of the code, but the last
    20% would require significant work.  dexpire would have to be able to
    figure out the three-level directory structure (vs the prexisting two-level
    directory structure), plus dexpire's expire would have to be more
    sophisticated.  Diablo's directory scan would also have to be more
    sophisticated.  Not difficult, but at least several hours of programming
    to get it right.

    I don't think it would be possible to expire each partition independantly
    due to Diablo's requirement that the spool directory range be linear.
    dexpire would have to run in sequence until all four spools met an
    appropriate free space margin.  If we rotated through the partitions on
    10 minute boundries they ought to be balanced well enough that this would
    probably work ok.

    I'm not sure how well it would work in practice, though.  It might be
    easier to simply make one massive spool and use a big block size, like
    32K or something to reduce fsck's overhead.  In fact, you could
    also tune the bytes-per-inode ratio to reduce the number of inodes
    to make the fsck go even faster.  A 100G spool would not need more then
    a million inodes (my 40G spool is eating only 320,000 inodes in
    steady-state).  Say, 2 million to be safe.  That isn't too bad.

					-Matt

-- 
    Matthew Dillon  Engineering, HiWay Technologies, Inc. & BEST Internet
                    Communications
    <dillon@best.net> (Please include original email in any response)

Technical Details
Message-ID: <70mlcm$jlu$1@flea.best.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
References: <706lbh$m5i@newsops.execpc.com> <7mqX1.6582$1d.1059812@news.novia.net> <70le0n$b19$1@samba.rahul.net>

Show Full Headers
Complete Article Headers
Message-ID: <70mlcm$jlu$1@flea.best.net>
Subject: Re: Diablo and multiple spool filesystems
Date: Thu, 22 Oct 1998 00:00:00 +0000
From: dillon@best.net (Matt Dillon)
References: <706lbh$m5i@newsops.execpc.com> <7mqX1.6582$1d.1059812@news.novia.net> <70le0n$b19$1@samba.rahul.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: 403839019
X-Trace: 909039835 6402 dillon 206.184.139.131
Organization: BEST Internet Communications, Inc. www.best.com
Newsgroups: news.software.nntp