Article View: news.software.nntp
Article #92871Re: Spool compression
From: Russ Allbery
Date: Thu, 18 Jun 2026 16:05
Date: Thu, 18 Jun 2026 16:05
41 lines
2895 bytes
2895 bytes
InterLinked <nntp@phreaknet.org> writes:
> I'm toying with the concept for tradspool, though I imagine with CNFS or
> other multi-article files, compression would be even more effective.
As various people have implicitly noted but perhaps not said explicitly,
one of the things that has changed since the original news servers were
written is that compression is now a file system feature for some file
systems.
I would not, in 2026, implement application-level compression of things
you're storing as simple files disk unless you have enough knowledge to
use some application-specific compression mechanism (so, for instance,
image compression is still a different matter). If you're just using
standard general-purpose compression mechanisms like zstd, your time is
almost certainly better spent finding an underlying file system that
handles the compression for you. The file system knows things like its
block layout strategy and can make good choices about opportunistic
compression that the news software is not in a position to make.
It might still be worthwhile in some cases to compress blobs stored in
databases or other similar cases, but even there I'd want to benchmark
against a file system that natively implements compression.
ZFS is probably the most mature file system with this feature, but running
it on Linux can be a little complicated due to boring licensing reasons.
btrfs is another option for transparent compression if you don't feel like
dealing with ZFS, but isn't as mature. (That said, I've been using btrfs
on all my personal devices for years now without any trouble, although I
have avoided running a disk entirely out of space, which many people say
btrfs doesn't always handle well.)
If you feel like maximizing drama, excitement, and exposure to esoteric
free software governance conflicts that generate 100-post forum threads,
you could use bcachefs. :)
--
Russ Allbery (eagle@eyrie.org) <https://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<878q8b96ln.fsf@hope.eyrie.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.eyrie.org!.POSTED!not-for-mailReferences:
<110vnlu$2aplk$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!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.eyrie.org!.POSTED!not-for-mail From: Russ Allbery <eagle@eyrie.org> Newsgroups: news.software.nntp Subject: Re: Spool compression Date: Thu, 18 Jun 2026 09:05:40 -0700 Organization: The Eyrie Message-ID: <878q8b96ln.fsf@hope.eyrie.org> References: <110vnlu$2aplk$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: hope.eyrie.org; logging-data="21359"; mail-complaints-to="news@eyrie.org" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:kpqQ+4trsAYz5kjxc0gRhPc0Opg=