🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92870

Re: Spool compression

#92870
From: Kevin Bowling
Date: Thu, 18 Jun 2026 04:14
73 lines
4423 bytes
On 6/17/26 20:11, InterLinked wrote:
> I thought at one point I read something about how articles could be 
> compressed in the spool in INN, or some other news software, but I can't 
> find that now, aside from compressing just overview. (Not thinking of 
> compression for transit here but compression at rest.)
> 
> Digging around a bit, I found a thread from 1990 in news.software.b 
> which discussed this[1], consensus that news articles individually tend 
> to be small enough that compressing them is not worth the effort. 

The economics favor the opposites for both with any modern system.  I.e. 
the data would be compressible (especially with a trained dictionary), 
and the "effort" is borderline free and optimizes harder scale axis like 
I/O bandwidth and page cache.

> Certainly on busy systems, it makes little sense, but for the use case 
> where disk space is limited and CPU is not fully utilized normally 
> anyways, it seems attractive, assuming you don't mind losing the ability 
> to easily grep through things or use other utilities with the spool 
> (which, as recently mentioned, are less common now).

Again economy has flipped and busy systems benefit more if it is done 
intelligently.

> 
> Is anyone aware of a news package that has ever supported compression of 
> articles in the spool? My theory is that articles today are larger than 
> 35-40 years ago, both due to more headers and larger bodies. I did some

I would question that intuition, I don't think article size has changed 
much.

Here is a histogram on my tradspool:
<512B:    788,863  (0.95%)
512B-1K:  5,108,243 (6.16%)
1-2K:    31,046,227 (37.43%)
2-4K:    26,416,756 (31.85%)
4-8K:    11,161,756 (13.46%)
8-16K:    4,478,769 (5.40%)
16-32K:   1,522,232 (1.84%)
32-64K:     358,406 (0.43%)
 >64K:         5,959 (0.01%)

Total: ~82.9 million articles

(note I cutoff at 52k, the larger articles would've been sucked when I 
was filling out some history on a couple groups)
> tests on some articles I picked at random, and most seem to be in the 
> 1KB-6KB range. I compressed a 930B article to 739B (20% savings) and a 
> 5,730B article to 3,649B (37% savings). 25-35% seems typical. 
> Conceivably, on a system with limited disk space, one could increase 
> retention by maybe around 25% just with this trick. Certainly, at some 
> point it starts to look attractive.
> 
> I'm toying with the concept for tradspool, though I imagine with CNFS or 
> other multi-article files, compression would be even more effective.

Yes, something like CNFS will result in greater gains because an 
untrained dictionary will span a larger working set.

Otherwise a lot of Usenet articles are small enough that you really need 
a trained dictionary to get any ratio on individual articles.

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.

> [1] https://groups.google.com/g/news.software.b/c/jDdQlTLzzIw/m/ 
> XIWEHQpvgWsJ
Technical Details
Message-ID: <110vrav$m00$1@csiph.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!tncsrv06.tnetconsulting.net!csiph.com!.POSTED.172.83.103.228!not-for-mail
References: <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!tncsrv06.tnetconsulting.net!csiph.com!.POSTED.172.83.103.228!not-for-mail
From: Kevin Bowling <kevin.bowling@kev009.com>
Newsgroups: news.software.nntp
Subject: Re: Spool compression
Date: Wed, 17 Jun 2026 21:14:22 -0700
Organization: csiph.com Internet News Service
Message-ID: <110vrav$m00$1@csiph.com>
References: <110vnlu$2aplk$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 18 Jun 2026 04:14:23 -0000 (UTC)
Injection-Info: csiph.com; posting-host="172.83.103.228";
	logging-data="22528"; mail-complaints-to="admin@kev009.com"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:aNTrxVF3Jv56CgPG+ZfrPNWinJM= sha256:bqSW4eNNs1VAMF6jaC0RpTgtCKjjx6DKL0ElfRINIZ8=
	sha1:GUM5jD2KK/UnzKlaeXcBOtdoBsQ= sha256:jS7PjT+N3EGyMcm/v3RqfxgZi1FLC4Cb1FJqo+IZNnw=
Content-Language: en-US
In-Reply-To: <110vnlu$2aplk$1@dont-email.me>