🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90532

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

#90532
From: go-while
Date: Sun, 16 Jul 2023 13:09
70 lines
3814 bytes
TEST DATASET: splitted 202G head + 232G body parts = 434G total

imported from archive.org mbox files or other source:
  utzoo, netnews cdroms, funet.fi, ancientfj-2004, socmotsscrape
    usenet-[af-ch], parts of usenet-comp, usenet0203.tar and
     some more ...

TEST DATASET on reiserfs3.6 on zfs:
head and body are stored by sha256sum of messageid in folders:
cache/[head|body]/[a-f0-9]/[a-f0-9]/[a-f0-9]/hash[3:].[head|body]

  the distribution over all 16 parent folders is very even
   and tables below show size of only 1 parent-directory
	guess a/*/*/.. or 0/*/*/..

  every head/[a-f0-9]/ dir occupies ~12.6G on reiserfs = 202G
  every body/[a-f0-9]/ dir occupies ~14.5G on reiserfs = 232G
  and got compressed down to head 82G + body 118G = 200G on zfs


did some tests with different mkfs.XFS options
  -b size=___
  -i size=___
  -m crc=0 -i maxpct=100
=> as guest on ZFS with compression=lz4 and recordsize=128K

fallocate'd 11TB partitions on zfs
   => mkfs.XFS -m crc=0 -i maxpct=100 -b size=___ -i size=___ /dev/loopN
   => mount /dev/loopN ... and moved the dataset in

                size of
#   XFS  |  block   inode  used space   used space  CompRatio  Ratio
# Inodes | XFS -b  XFS -i  ZFS /head/ → XFS /head/  ZFS head   XFS / ZFS
#   42b  | 512     256      2.2 GB        5.1 GB     2.7x       2.3
#   42b  | 1024    256      2.5 GB        5.8 GB     2.9x       2.3
#   21b  | 1024    512      2.5 GB        6.5 GB     3.3x       2.6
#   42b  | 2048    256      2.7 GB        7.4 GB     3.6x       2.7
#   10b  | 2048    1024     2.7 GB        9.7 GB     4.4x       3.6
#   21b  | 4096    512      3.0 GB       15.0 GB     5.6x       5.0

                size of
#   XFS  |  block   inode  used space   used space  CompRatio  Ratio
# Inodes | XFS -b  XFS -i  ZFS /body/ → XFS /body/  ZFS body   XFS / ZFS
#   42b  | 512     256      4.1 GB        6.9 GB     1.9x       1.7
#   42b  | 1024    256      4.3 GB        7.9 GB     2.1x       1.8
#   21b  | 1024    512      4.3 GB        8.5 GB     2.3x       2.0
#   42b  | 2048    256      4.6 GB        9.9 GB     2.6x       2.2
#   10b  | 2048    1024     4.7 GB       13.0 GB     3.1x       2.8
#   21b  | 4096    512      4.9 GB       16.0 GB     3.8x       3.3


what can we see?
1. higher XFS inodesize: less xfs inodes
2. higher XFS blocksize:
   more space usage on zfs and worsen on xfs
   higher (more not better*) zfs compression

* "more" zfs compression is just nul? compression of wasted space
and more used space for no reason?

sadly no performance data because zfs was degraded while testing

i think i'll go with '-b size=512 -i size=256' for now
  + less zfs compression but more xfs inodes
  + less space usage on both filesystems (zfs host and xfs guest).
  + 42 is the answer to everything!


happy sunday!
Technical Details
Message-ID: <buRsM.750701$NrRf.67234@fx02.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
References: <6SGrM.427956$hTH1.411991@fx14.ams4>

Show Full Headers
Complete Article Headers
Message-ID: <buRsM.750701$NrRf.67234@fx02.ams4>
Subject: XFS / ZFS TEST DATASET notes Re: github.com/go-while/nntp-overview
Date: Sun, 16 Jul 2023 15:09:28 +0200
From: go-while <no-reply@no.spam>
References: <6SGrM.427956$hTH1.411991@fx14.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
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.13.0
Newsgroups: news.software.nntp
Content-Language: en-US
In-Reply-To: <6SGrM.427956$hTH1.411991@fx14.ams4>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 70
X-Complaints-To: abuse@blocknews.net
NNTP-Posting-Date: Sun, 16 Jul 2023 12:35:19 UTC
Organization: blocknews - www.blocknews.net
X-Received-Bytes: 3633