🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92873

Re: Spool compression

#92873
From: Garrett Wollman
Date: Thu, 18 Jun 2026 15:14
38 lines
2770 bytes
In article <1110ubg$2ld8b$1@dont-email.me>,
InterLinked  <nntp@phreaknet.org> wrote:
>On 6/18/2026 12:14 AM, Kevin Bowling wrote:
>Even, I suspect it may not be enough to eliminate at least one block for 
>many articles. So I think 25% was a bit optimistic on my part, maybe 
>10-20% is more realistic.
>
>> I use block level LZ4 (ZFS) on my tradspool, and it is maybe a 10% 
>> improvement.  The major issue with this setup is the filesystem metadata 
>> and data block per article, especially for small articles (the FS has no 
>> support for packing small files into the medadata node, stuffing 
>> multiple small files into one data node etc).  CNFS would result in a 
>> much higher ratio.

Tradspool here, and I still get pretty good compression with LZ4:

NAME                            RATIO
tank/root/usr/local/news        1.88x
tank/root/usr/local/news/db     1.77x
tank/root/usr/local/news/spool  1.89x
tank/root/usr/local/news/tmp    1.00x

It's a small server and I don't carry binaries, so that should give a
decent idea of what LZ4 on actual text will give you.  ("1.89x" is
what others would call "47%".)  This is with 90-day retention, the
whole of /usr/local/news is less than 10 GiB.

There's more than enough CPU to use zstd or gzip but what's the point?
This is just our default zpool configuration, and there are a bunch of
optimizations in ZFS that sit on top of `compression=on`.

-GAWollman

-- 
Garrett A. Wollman    | "Act to avoid constraining the future; if you can,
wollman@bimajority.org| act to remove constraint from the future.  This is
Opinions not shared by| a thing you can do, are able to do, to do together."
my employers.         | - Graydon Saunders, _A Succession of Bad Days_ (2015)
Technical Details
Message-ID: <111120n$2um1$1@usenet.csail.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder9.news.weretis.net!xmission!usenet.csail.mit.edu!.POSTED.hergotha.csail.mit.edu!not-for-mail
References: <110vnlu$2aplk$1@dont-email.me> <110vrav$m00$1@csiph.com> <1110ubg$2ld8b$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder9.news.weretis.net!xmission!usenet.csail.mit.edu!.POSTED.hergotha.csail.mit.edu!not-for-mail
From: wollman@hergotha.csail.mit.edu (Garrett Wollman)
Newsgroups: news.software.nntp
Subject: Re: Spool compression
Date: Thu, 18 Jun 2026 15:14:31 -0000 (UTC)
Organization: MIT Computer Science & Artificial Intelligence Lab
Message-ID: <111120n$2um1$1@usenet.csail.mit.edu>
References: <110vnlu$2aplk$1@dont-email.me> <110vrav$m00$1@csiph.com> <1110ubg$2ld8b$1@dont-email.me>
Injection-Date: Thu, 18 Jun 2026 15:14:31 -0000 (UTC)
Injection-Info: usenet.csail.mit.edu; posting-host="hergotha.csail.mit.edu:207.180.169.34";
	logging-data="96961"; mail-complaints-to="security@csail.mit.edu"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: wollman@hergotha.csail.mit.edu (Garrett Wollman)