πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83355

Re: CNFS v4

#83355
From: D. Stussy
Date: Sun, 08 Aug 2010 19:53
71 lines
4584 bytes
"Julien Γ‰LIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:i3m2gj$ai0$1@news.trigofacile.com...
> >>> 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...

I haven't tried any experiments.  I merely made a suggestion.  As far as
that goes, any given buffer can have ONLY ONE blocksize.  If one were to
change the blocksize of a buffer in use, such could be a problem:  1)
Larger->smaller:  Could be done, but may require recreating certain
internal structures.  2) Smaller->larger:  Probably requires rewriting
(i.e. copying) the entire buffer contents.  I was not envisioning the
changing of an in-use buffer's blocksize; only unused/newly-created (or
recreated) buffers, and that different buffers may have differing sizes.

> 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?

Technical Details
Message-ID: <i3n1ve$84t$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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!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> <i39ue9$1cci$1@de-l.enfer-du-nord.net> <i3a10f$imn$1@news.trigofacile.com> <i3kpag$2atv$1@de-l.enfer-du-nord.net> <i3m2gj$ai0$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <i3n1ve$84t$1@snarked.org>
Subject: Re: CNFS v4
Date: Sun, 8 Aug 2010 12:53:15 -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> <i39ue9$1cci$1@de-l.enfer-du-nord.net> <i3a10f$imn$1@news.trigofacile.com> <i3kpag$2atv$1@de-l.enfer-du-nord.net> <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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!news.glorb.com!news.snarked.org!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Lines: 71
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 1281297199 8349 71.106.210.230 (8 Aug 2010 19:53:19 GMT)
X-Complaints-To: newsmaster+complaints@snarked.org
NNTP-Posting-Date: Sun, 8 Aug 2010 19:53:19 +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