🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90935

Re: CNFS buffer consuming more disk space than the file size?

#90935
From: Jesse Rehmer
Date: Mon, 09 Oct 2023 23:43
35 lines
2637 bytes
On Oct 6, 2023 at 3:22:12 PM CDT, ""Billy G." <go-while)" <no-reply@no.spam>
wrote:

> On 05.10.23 23:42, Jesse Rehmer wrote:
>> I do have compression enabled and created the buffers with dd from /dev/zero.
>> 
>> In your examples the actual size is smaller, which is what I would expect, but
>> my situation is reverse where the actual size used is larger by about 30%.
> 
> 
> weird and can't get my head around.
> inn would not start if filesize from conf and disk dont match.
> i believe, i had such issue once while playing and copied wrong values
> and inn failed to start or initialize the buffer.
> maybe there is no check if it is already initialized and file has grown
> somehow.
> but how could it grow bigger, i have no idea. should not be possible.
> cycbuff puts data in some kind of blocks but did not dive deep enough to
> get a better understanding.
> 
> would be cool if you did not delete the file, so we could further
> investigate it.

The new buffer has wrapped some times and is now larger than its 'apparent'
size:

[news@spool1 ~/spool]$ du cnfs2
11739697    cnfs2
[news@spool1 ~/spool]$ du -A cnfs2
10000000    cnfs2

$ cnfsstat
Class SBIN for groups matching "control.cancel,junk,alt.binaries.*"
 Buffer SBIN1, size:  9.54 GBytes, position:  7.32 GBytes  12.77 cycles
  Newest: 2023-10-09 18:42:21,    0 days,  0:00:02 ago
Technical Details
Message-ID: <ug236i$1am2$1@nnrp.usenet.blueworldhosting.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: <ufmh0l$2bau$1@nnrp.usenet.blueworldhosting.com> <XSFTM.7805$4rg.2638@fx09.ams4> <ufnakv$14o$1@nnrp.usenet.blueworldhosting.com> <PPZTM.104749$vEK1.10266@fx08.ams4>

Show Full Headers
Complete Article Headers
Message-ID: <ug236i$1am2$1@nnrp.usenet.blueworldhosting.com>
Subject: Re: CNFS buffer consuming more disk space than the file size?
Date: Mon, 09 Oct 2023 23:43:14 +0000
From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com>
References: <ufmh0l$2bau$1@nnrp.usenet.blueworldhosting.com> <XSFTM.7805$4rg.2638@fx09.ams4> <ufnakv$14o$1@nnrp.usenet.blueworldhosting.com> <PPZTM.104749$vEK1.10266@fx08.ams4>
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
Newsgroups: news.software.nntp
Organization: BWH Usenet (https://usenet.blueworldhosting.com)
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 9 Oct 2023 23:43:14 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com; logging-data="43714"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Usenapp for MacOS
Cancel-Lock: sha1:Do16tCny/daI/G1cYFFW2vkZmp4= sha256:uMi8+pcYzQU2fE+st8DayjK1d77ueuJpnhuUIuQwMWg= sha1:mKC7BzOWkkL3i1NRIR58FoHXKtk= sha256:c7teNtxisug+cBH7aASrZaBwLVFO3k2RNIEtLLPAgG8=
X-Usenapp: v1.27.1/d - Full License