🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90854

CNFS buffer consuming more disk space than the file size?

#90854
From: Jesse Rehmer
Date: Thu, 05 Oct 2023 14:25
23 lines
1862 bytes
This could be a ZFS/FreeBSD issue, but figure I'd start here to see if anyone
has seen this behavior before... I started to run tight on disk space on one
of my servers and noticed that the CNFS buffers were using an amount of disk
space that is larger than the 'actual' file size of the buffer.

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

This buffer contained 'junk' so I decided to remove it, and did reclaim 129GB
of space on the filesystem. How is this possible?
Technical Details
Message-ID: <ufmh0l$2bau$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

Show Full Headers
Complete Article Headers
Message-ID: <ufmh0l$2bau$1@nnrp.usenet.blueworldhosting.com>
Subject: CNFS buffer consuming more disk space than the file size?
Date: Thu, 05 Oct 2023 14:25:25 +0000
From: Jesse Rehmer <jesse.rehmer@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
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 14:25:25 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com; logging-data="77150"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Usenapp for MacOS
Cancel-Lock: sha1:awo8tNykhV2QjIrCTXB2/gDJz/g= sha256:mLv1Klx05yyZ0KmWSalArB5hdcHorRyoadd6eGMdi6M= sha1:LmL7pmykI8Mc/xgjVb7636YEtXg= sha256:7vAn3XUukPWloBhAlnuAawHTAasTIOP0KpRMA1lASto=
X-Usenapp: v1.27.1/d - Full License