🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #91793

Re: Compacting CNFS buffers

#91793
From: Julien ÉLIE
Date: Mon, 13 May 2024 20:56
35 lines
2843 bytes
Hi Nigel,

> I'll hold out hope someone with more knowledge than I also sees the
> issue and decides to look into compacting CNFS buffers.

It may as well be a new type of storage method, mixing the best of cnfs 
and timecaf.
As far as I understand, the use case is to have large compacted buffers 
without wrapping (articles do not expire but cancelled articles should 
not be kept).  It would correspond to timecaf except that a new CAF file 
is created when it is full instead of every 256 seconds.  Expiring CAF 
files just compacts them if articles have been cancelled, releasing disk 
space.
The feature may be implemented as an evolution of the current timecaf 
method with options to parameterize it in storage.conf (like cnfs has 
options).  For instance with a maxart and a maxtime option to specify 
the number of articles per CAF file (currently hard-coded to 262144) and 
the number of seconds before creating a new CAF file (currently 
hard-coded to 256 seconds but it may easily be a multiple of 256 seconds 
so as to keep the current file naming).  With maxtime set to 0, a new 
file is created when maxart is reached.

Naturally, though it is more work, a totally new storage method could 
also be created as timecaf is inherently linked to time and suffers from 
the limitation that you cannot store more than maxart articles received 
during maxtime seconds.  They will just be dropped until a new CAF file 
is created.  It is not what you expect from the storage method you're 
asking for.  And re-using CNFS buffers may be tricky (to find and refill 
holes, or to totally rewrite them - changing the storage tokens of all 
articles).

-- 
Julien ÉLIE

« Vinum bonum laetificat cor hominis. »
Technical Details
Message-ID: <v1tuqi$16a20$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <20240504210746.79036ffe@wibble.sysadmininc.com> <v1cuu2$qiqi$1@news.trigofacile.com> <20240508004309.53a4572b@wibble.sysadmininc.com>

Show Full Headers
Complete Article Headers
Message-ID: <v1tuqi$16a20$1@news.trigofacile.com>
Subject: Re: Compacting CNFS buffers
Date: Mon, 13 May 2024 22:56:50 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <20240504210746.79036ffe@wibble.sysadmininc.com> <v1cuu2$qiqi$1@news.trigofacile.com> <20240508004309.53a4572b@wibble.sysadmininc.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Mime-Version: 1.0
Cancel-Lock: sha1:Av2UFdzQQOHdUhc68M8VFJ44bYM= sha256:L0GA/I+1438JhvgKVx1+heydqhLM90Gy12TaV/FAOZk= sha1:odmNdLWQYcK1gwVNBblkgL1APq4= sha256:tXnoCKfDmLJ86ACsNUnW153WWgaFeY6+wokiE2sDA84=
Injection-Date: Mon, 13 May 2024 20:56:50 -0000 (UTC)
Content-Transfer-Encoding: 8bit
User-Agent: Mozilla Thunderbird
Newsgroups: news.software.nntp
In-Reply-To: <20240508004309.53a4572b@wibble.sysadmininc.com>
Organization: Groupes francophones par TrigoFACILE
Content-Type: text/plain; charset=UTF-8; format=flowed