Article View: news.software.nntp
Article #90941Re: CNFS buffer consuming more disk space than the file size?
From: Jesse Rehmer
Date: Tue, 10 Oct 2023 13:38
Date: Tue, 10 Oct 2023 13:38
86 lines
3522 bytes
3522 bytes
On Oct 10, 2023 at 6:57:41 AM CDT, "Jesse Rehmer" <jesse.rehmer@blueworldhosting.com> wrote: > On Oct 10, 2023 at 2:38:12 AM CDT, ""Billy G." <go-while)" <no-reply@no.spam> > wrote: > >> On 10.10.23 01:43, Jesse Rehmer wrote: >>> 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 >> >> my OS lacks 'du -A'. i'm not on xBSD :/ >> >> what does 'du -b cnfs2' (bytes size) or 'du -h cnfs2' (human read.)? >> >> as well as 'ls -l cnfs2' and 'ls -lh cnfs2'? >> >> i#d mostly bet it is an optical illusion. >> >> the file is only 10g, can you produce a copy for us? >> >> or just move a copy to another filesystem, ext4? >> >> what size value you set in cycbuff.conf to this buffer? > > The size in cycbuff.conf is 10000000. > > From the FreeBSD/ZFS box: > > $ ls -laF cnfs2 > -rw-r--r-- 1 news news 10240000000 Oct 10 06:08 cnfs2 > > $ ls -lh cnfs2 > -rw-r--r-- 1 news news 9.5G Oct 10 06:08 cnfs2 > > FreeBSD's du does not have -b (it's the default) > > $ du cnfs2 > 11967209 cnfs2 > > $ du -A cnfs2 > 10000000 cnfs2 > > $ du -h cnfs2 > 11G cnfs2 > > $ du -Ah cnfs2 > 9.5G cnfs2 > > > I scp'd the file over to a Linux box with ext4, there it reports as I would > expect: > > # du -h cnfs2 > 9.6G cnfs2 > > # du -b cnfs2 > 10240000000 cnfs2 > > # ls -lb cnfs2 > -rw-r--r--. 1 jesse jesse 10240000000 Oct 10 06:52 cnfs2 I realized after I sent this that bytes isn't the default of du in FreeBSD, derp. Interestingly, I recopied this file back to the original box, in a different folder, and it's a smaller size. There must be something with compression overhead or something that ZFS isn't letting go of? # du -A cnfs2 10000000 cnfs2 # du cnfs2 9781913 cnfs2 # du -h cnfs2 9.3G cnfs2
Technical Details
Message-ID:
<ug3k4l$2clq$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-mailReferences:
<ufmh0l$2bau$1@nnrp.usenet.blueworldhosting.com> <PPZTM.104749$vEK1.10266@fx08.ams4> <ug236i$1am2$1@nnrp.usenet.blueworldhosting.com> <Yb7VM.126743$iKfd.14563@fx05.ams4> <ug3e7l$22us$1@nnrp.usenet.blueworldhosting.com>Show Full Headers
Complete Article Headers
Message-ID: <ug3k4l$2clq$1@nnrp.usenet.blueworldhosting.com> Subject: Re: CNFS buffer consuming more disk space than the file size? Date: Tue, 10 Oct 2023 13:38:29 +0000 From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com> References: <ufmh0l$2bau$1@nnrp.usenet.blueworldhosting.com> <PPZTM.104749$vEK1.10266@fx08.ams4> <ug236i$1am2$1@nnrp.usenet.blueworldhosting.com> <Yb7VM.126743$iKfd.14563@fx05.ams4> <ug3e7l$22us$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 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: Tue, 10 Oct 2023 13:38:29 -0000 (UTC) Injection-Info: nnrp.usenet.blueworldhosting.com; logging-data="78522"; mail-complaints-to="usenet@blueworldhosting.com" User-Agent: Usenapp for MacOS Cancel-Lock: sha1:QUIlwRyLpZjBnAhylG7DyMz0wVY= sha256:wwejuMLgLtZgRxjpDyfDaKy3CHHslTohcgGsZionM9g= sha1:wS35Y3E/C1j7Y9RcF6XBzsUFF/Q= sha256:NvgeXWMc7Jx2x+kZABrF33SzGuiwrKaGDOt7Ps+QbGI= X-Usenapp: v1.27.1/d - Full License