πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90865

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

#90865
From: Jesse Rehmer
Date: Thu, 05 Oct 2023 18:51
59 lines
2921 bytes
On Oct 5, 2023 at 1:43:52 PM CDT, "Julien Γ‰LIE"
<iulius@nom-de-mon-site.com.invalid> wrote:

> Hi Jesse,
> 
>> I have this cycbuff.conf entry:
>> 
>>     cycbuff:SBIN2:/usr/local/news/spool/bin1:102400000
>> 
>> Looking at this file with 'ls' the size lines up:
>> 
>>     -rw-r--r--    1 news  news  104857600000 Oct  4 15:14 bin1
>> 
>> However, when I check actual disk space used with du it is much greater:
>> 
>>     # du -h bin1
>>     129G    bin1
>> 
>>     # du bin1
>>     135118061    bin1
> 
> I've checked my CNFS buffers on Debian, and do not see such a difference.
> 
> 
> cycbuff:FR1:/home/news/spool/cycbuffs/frcnfs:4194304
> 
> % du frcnfs
> 4194308    frcnfs
> 
> % ls -l
> -rw-r--r-- 1 news news 4294967296  5 oct.  20:36 frcnfs
> 
> 
> 
>> This buffer contained 'junk' so I decided to remove it, and did reclaim 129GB
>> of space on the filesystem. How is this possible?
> 
> I don't know.  Is it the same for your other CNFS buffers?
> 
> It would have been interesting to see the output of "cnfsstat" on your
> bin1.  Do you still have a checkpoint for SBIN2 in news.notice to see
> its reported length?

There was another small 1GB buffer that was 1.2GB on disk, I deleted it too,
unfortunately. The only thing I see in news.notice about CNFS are lines like
this:

   innd[74417]: CNFS: CNFSflushallheads: flushing SBIN2

I've made a new buffer and will wait until it wraps to see. So far the size is
in line with what I expect:

$ cnfsstat
Class SBIN for groups matching "control.cancel,junk,alt.binaries.*"
 Buffer SBIN1, size:  9.54 GBytes, position:  9.21 GBytes  0.97 cycles
  Newest: 2023-10-05 13:47:44,    0 days,  0:00:06 ago

$ du -h cnfs2
9.3G    cnfs2
Technical Details
Message-ID: <ufn0j7$l9f$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> <ufn058$76br$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <ufn0j7$l9f$1@nnrp.usenet.blueworldhosting.com>
Subject: Re: CNFS buffer consuming more disk space than the file size?
Date: Thu, 05 Oct 2023 18:51:19 +0000
From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com>
References: <ufmh0l$2bau$1@nnrp.usenet.blueworldhosting.com> <ufn058$76br$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
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: Thu, 5 Oct 2023 18:51:19 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com; logging-data="21807"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Usenapp for MacOS
Cancel-Lock: sha1:1wj8OANigXRdDSyxf2MkTUzyQQs= sha256:D4lPrUxT4hCZ58ZXaHwvZUl95I4RTt3irfjfFUxH2JM= sha1:4iOOnqC+kyBAvPstMLrBQ0SxGbQ= sha256:jumg6G5FHDJJriP/FqBbtJnMjhpuRh6G7BC3gh5rLOM=
X-Usenapp: v1.27.1/d - Full License