🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83352

Re: CNFS v4

#83352
From: Julien ÉLIE
Date: Sun, 08 Aug 2010 10:56
64 lines
4124 bytes
Hi Michael,

>>> ACK. While dreaming, I would like to see that tool prepare a CNFS
>>> buffer to become re-initialized after roll-over with another
>>> blocksize in order to optimize CNFS buffers whilst in use (I do have
>>> no idea if that could be done from a technical point of view,
>>> anyhow).
>>
>> It would require to handle two block sizes:  one for read after
>> roll-over (so as to still reach old articles), one for write (while
>> overwriting old articles).  I believe that would be feasible but it
>> would need adapting a few parts of the code.
>>
>> Note that cnfsheadconf could be that tool.  It currently does not
>> allow to edit the block size, but it could...
>
> Hmm, without any pretension, do you intend to implement the latter or
> the possibility to define the blocksize of newly initialized CNFS'?
> Please, do not misunderstand, I can live without that. I just want to
> know.

I do not plan on implementing a change of blocksize during a roll-over,
sorry.  Note that if you want to change blocksizes, you could create
a new CNFS buffer and use it instead of the previous one (just mention
the new buffer in "metacycbuff" instead of the other -- in cycbuff.conf).
Both of the two CNFS buffers can live along (the old one only in read access,
until you choose to remove it; the new one in read and write access).


With CNFSv4, it is easy to initialize a CNFS buffer with the block size
you want (between 512 bytes and 16k -- I do not why these bounds were chosen
but I think they are reasonable).  Dieter cannot experiment 256 bytes, though,
unless he changes the lower limit in the code...


What I suggest is to add a new optional value in cycbuff lines:

cycbuff:ONE:/export/cycbuffs/one:512000

would be like:

cycbuff:ONE:/export/cycbuffs/one:512000:4096

And one could use:

cycbuff:ONE:/export/cycbuffs/one:512000:512

to initialize the buffer with a blocksize of 512 bytes.

This parameter would be used when the buffer is initialized.
When it is initialized, if there is a mismatch between that value
(if specified) and the real blocksize, a warning in the logs
would be written, and the blocksize in the buffer itself would be used.

cnfsheadconf would also allow to modify the blocksize, if need be.
(Use at your own risk!  Old articles will be unreachable.)

Would these changes suit you?

-- 
Julien ÉLIE

« C'est humain, mais il fallait y penser. » (Astérix) 
Technical Details
Message-ID: <i3m2gj$ai0$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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!feeder.news-service.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.amontpellier-159-1-58-128.w83-197.abo.wanadoo.fr!not-for-mail
References: <i3769k$ugj$1@de-l.enfer-du-nord.net> <i37a65$b6b$1@snarked.org> <i39ue9$1cci$1@de-l.enfer-du-nord.net> <i3a10f$imn$1@news.trigofacile.com> <i3kpag$2atv$1@de-l.enfer-du-nord.net>

Show Full Headers
Complete Article Headers
Message-ID: <i3m2gj$ai0$1@news.trigofacile.com>
Subject: Re: CNFS v4
Date: Sun, 8 Aug 2010 12:56:19 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <i3769k$ugj$1@de-l.enfer-du-nord.net> <i37a65$b6b$1@snarked.org> <i39ue9$1cci$1@de-l.enfer-du-nord.net> <i3a10f$imn$1@news.trigofacile.com> <i3kpag$2atv$1@de-l.enfer-du-nord.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.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!feeder.news-service.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.amontpellier-159-1-58-128.w83-197.abo.wanadoo.fr!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 64
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="ISO-8859-15";
 reply-type=original
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 8 Aug 2010 10:56:19 +0000 (UTC)
Injection-Info: news.trigofacile.com;
 posting-host="amontpellier-159-1-58-128.w83-197.abo.wanadoo.fr:83.197.137.128";
 logging-data="10816"; mail-complaints-to="abuse@trigofacile.com"
In-Reply-To: <i3kpag$2atv$1@de-l.enfer-du-nord.net>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6002.18197
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18197
X-Original-Bytes: 3878