🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90623

Re: XFS / ZFS TEST DATASET notes Re: github.com/go-while/nntp-overview

#90623
From: Jesse Rehmer
Date: Wed, 26 Jul 2023 15:27
124 lines
5422 bytes
On Jul 24, 2023 at 8:25:56 AM CDT, "go-while" <no-reply@no.spam> wrote:

> XFS partitions on ZFS
> compression=lz4 recordsize=32K
> 
> tank0/xfs/head  compressratio  2.91x
> tank0/xfs/body  compressratio  1.80x
> 
> XFS partitions need this space:
> 
> Filesystem      Used    Mounted
> tank0/xfs/head/a 13G /tank0/xfs/head/a
> tank0/xfs/body/a 28G /tank0/xfs/body/a
> tank0/xfs/head/b 13G /tank0/xfs/head/b
> tank0/xfs/body/b 28G /tank0/xfs/body/b
> tank0/xfs/head/c 13G /tank0/xfs/head/c
> tank0/xfs/body/c 28G /tank0/xfs/body/c
> tank0/xfs/head/d 13G /tank0/xfs/head/d
> tank0/xfs/body/d 28G /tank0/xfs/body/d
> tank0/xfs/head/e 13G /tank0/xfs/head/e
> tank0/xfs/body/e 28G /tank0/xfs/body/e
> tank0/xfs/head/f 13G /tank0/xfs/head/f
> tank0/xfs/body/f 28G /tank0/xfs/body/f
> tank0/xfs/head/0 13G /tank0/xfs/head/0
> tank0/xfs/body/0 28G /tank0/xfs/body/0
> tank0/xfs/head/1 13G /tank0/xfs/head/1
> tank0/xfs/body/1 28G /tank0/xfs/body/1
> tank0/xfs/head/2 13G /tank0/xfs/head/2
> tank0/xfs/body/2 28G /tank0/xfs/body/2
> tank0/xfs/head/3 13G /tank0/xfs/head/3
> tank0/xfs/body/3 28G /tank0/xfs/body/3
> tank0/xfs/head/4 13G /tank0/xfs/head/4
> tank0/xfs/body/4 28G /tank0/xfs/body/4
> tank0/xfs/head/5 13G /tank0/xfs/head/5
> tank0/xfs/body/5 28G /tank0/xfs/body/5
> tank0/xfs/head/6 13G /tank0/xfs/head/6
> tank0/xfs/body/6 28G /tank0/xfs/body/6
> tank0/xfs/head/7 13G /tank0/xfs/head/7
> tank0/xfs/body/7 28G /tank0/xfs/body/7
> tank0/xfs/head/8 13G /tank0/xfs/head/8
> tank0/xfs/body/8 28G /tank0/xfs/body/8
> tank0/xfs/head/9 13G /tank0/xfs/head/9
> tank0/xfs/body/9 28G /tank0/xfs/body/9
> 
> 
> XFS itself says it uses this space:
> 
> Filesystem      Used    Mounted
> /dev/loop32 34G /mnt/xfs/head/a
> /dev/loop33 34G /mnt/xfs/head/b
> /dev/loop34 34G /mnt/xfs/head/c
> /dev/loop35 34G /mnt/xfs/head/d
> /dev/loop36 34G /mnt/xfs/head/e
> /dev/loop37 34G /mnt/xfs/head/f
> /dev/loop38 34G /mnt/xfs/head/0
> /dev/loop39 34G /mnt/xfs/head/1
> /dev/loop40 34G /mnt/xfs/head/2
> /dev/loop41 34G /mnt/xfs/head/3
> /dev/loop42 34G /mnt/xfs/head/4
> /dev/loop43 34G /mnt/xfs/head/5
> /dev/loop44 34G /mnt/xfs/head/6
> /dev/loop45 34G /mnt/xfs/head/7
> /dev/loop46 34G /mnt/xfs/head/8
> /dev/loop47 34G /mnt/xfs/head/9
> /dev/loop48 49G /mnt/xfs/body/a
> /dev/loop49 49G /mnt/xfs/body/b
> /dev/loop50 49G /mnt/xfs/body/c
> /dev/loop51 49G /mnt/xfs/body/d
> /dev/loop52 49G /mnt/xfs/body/e
> /dev/loop53 49G /mnt/xfs/body/f
> /dev/loop54 49G /mnt/xfs/body/0
> /dev/loop55 49G /mnt/xfs/body/1
> /dev/loop56 49G /mnt/xfs/body/2
> /dev/loop57 49G /mnt/xfs/body/3
> /dev/loop58 49G /mnt/xfs/body/4
> /dev/loop59 49G /mnt/xfs/body/5
> /dev/loop60 49G /mnt/xfs/body/6
> /dev/loop61 49G /mnt/xfs/body/7
> /dev/loop62 49G /mnt/xfs/body/8
> /dev/loop63 49G /mnt/xfs/body/9
> 
> 
> moving the same data (raw .head + .body files)
> from XFS into a ZFS dataset
> 
> 
> tank0/cache/head  compressratio  1.00x
> tank0/cache/body  compressratio  1.17x
> 
> results in this used space on ZFS?!
> 
> tank0/cache/head/a 116G /tank0/cache/head/a
> tank0/cache/head/b 116G /tank0/cache/head/b
> ..
> tank0/cache/body/a 124G /tank0/cache/body/a
> tank0/cache/body/b 124G /tank0/cache/body/b
> ..
> 
> i stopped moving it...
> 
> looks like zfs does not like many very small files aka usenet articles
> and compression does not work.
> 
> 
> finally inodes: XFS vs ZFS raw dataset are almost identical
> 
> /dev/loop32 42846221114 19964404 /mnt/xfs/head/a
> /dev/loop33 42846243638 19958208 /mnt/xfs/head/b
> /dev/loop48 42783061340 19964404 /mnt/xfs/body/a
> /dev/loop49 42783346284 19958208 /mnt/xfs/body/b
> ...
> 
> tank0/cache/head/a 50835458823 19964404 /tank0/cache/head/a
> tank0/cache/head/b 50835452630 19958211 /tank0/cache/head/b
> tank0/cache/body/a 50835159146 19664727 /tank0/cache/body/a
> tank0/cache/body/b 50835452630 19958211 /tank0/cache/body/b
> ...
> 
> 
> 
> Kind Regards

For what it's worth, using INN with tradspool I don't see hardly any
compression (ZFS), but when using CNFS buffers I get a little over 3x.
Technical Details
Message-ID: <u9re14$ecv$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: <6SGrM.427956$hTH1.411991@fx14.ams4> <buRsM.750701$NrRf.67234@fx02.ams4> <kouvM.93469$euB5.43905@fx05.ams4>

Show Full Headers
Complete Article Headers
Message-ID: <u9re14$ecv$1@nnrp.usenet.blueworldhosting.com>
Subject: Re: XFS / ZFS TEST DATASET notes Re: github.com/go-while/nntp-overview
Date: Wed, 26 Jul 2023 15:27:32 +0000
From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com>
References: <6SGrM.427956$hTH1.411991@fx14.ams4> <buRsM.750701$NrRf.67234@fx02.ams4> <kouvM.93469$euB5.43905@fx05.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: BlueWorld Hosting Usenet (https://usenet.blueworldhosting.com)
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 26 Jul 2023 15:27:32 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com; posting-account="k8cWG9+Y/93vxQYza75s9JQFoL8rgVF3P1Yluveoqs0"; logging-data="14751"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Usenapp for MacOS
Cancel-Lock: sha1:GmFwMe1MFy8TQkcbvkhku1l1faM= sha256:NOjx0jvjgVj7WPNxOj6SOrTR8BNl/oY5suRxZE78q80= sha1:ark3qTI7bXLqdLtexB1453lMT2k= sha256:nUBLP1Siw3bzi828G1Y2YY2tpnmKllX1UtJEVhOw8nE=
X-Usenapp: v1.27.1/d - Full License