πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83339

Re: CNFS v4

#83339
From: D. Stussy
Date: Mon, 02 Aug 2010 21:38
46 lines
3252 bytes
"Julien Γ‰LIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:i37cor$if5$1@news.trigofacile.com...
> > What may be better is to create an external program (e.g. "cnfsinit")
to
> > create and initialize CNFS buffers, and allow us to set the blocksize
(2^8
> > ... 2^15; powers of 2 only).
>
> That's an interesting idea.
>
> I remember having read Miquel here:
>   https://lists.isc.org/pipermail/inn-workers/2008-November/016214.html
>
>     Currently the CNFS storage method uses a 512 byte (1 sector)
>     granularity for its "filesystem". That was great in the nineties,
>     but nowadays that is very limiting:
>
>     - most filesystems use 4K blocks, so a write to a 512 byte
>       CNFS block can result in a read-modify-write cycle, slowing
>       down writes enormously (effectively making them synchronous)
>
>     [...]
>
>     Right now a new CNFS file/device is always initialized with
>     4K blocksize, but it would be trivial to make that configurable.

Although I still would prefer a configurable blocksize, the default should
be the filesystem's blocksize (which may or may not be 4k).

I suggested a lower bound of 2^8 (256 bytes) because some people may choose
to map *.test groups to a RAM-based filesystem instead of "permanently"
preserving them (until overwritten).

Where the CNFS size is the disk sector size, I don't necessarily see a
"read-modify-write" cycle.  That's only needed where a partial sector is
written, but when an entire sector is written, there's no need to read the
sector (even if it is only part of a filesystem block).  The only
block-fragment that need be cycled via R-M-W is the fractional part at the
end (assuming that the article/file size isn't precisely divisible by the
sector size).  However, that could be solved by padding an article out to
be an integral sector size.  For any OS that doesn't figure this out, it
should be redesigned.  As CNFS starts every article on a CNFS-block
boundary, padding doesn't destroy any information that isn't already lost
by an overwrite via R-M-W.

Technical Details
Message-ID: <i37dtf$cqj$1@snarked.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!news2.arglkargh.de!news.litech.org!news.glorb.com!news.snarked.org!.POSTED!not-for-mail
References: <i3769k$ugj$1@de-l.enfer-du-nord.net> <i37a65$b6b$1@snarked.org> <i37cor$if5$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <i37dtf$cqj$1@snarked.org>
Subject: Re: CNFS v4
Date: Mon, 2 Aug 2010 14:38:50 -0700
From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org>
References: <i3769k$ugj$1@de-l.enfer-du-nord.net> <i37a65$b6b$1@snarked.org> <i37cor$if5$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!news2.arglkargh.de!news.litech.org!news.glorb.com!news.snarked.org!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Lines: 46
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
NNTP-Posting-Host: pool-71-106-210-230.lsanca.dsl-w.verizon.net
X-Trace: snarked.org 1280785135 13139 71.106.210.230 (2 Aug 2010 21:38:55 GMT)
X-Complaints-To: newsmaster+complaints@snarked.org
NNTP-Posting-Date: Mon, 2 Aug 2010 21:38:55 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478