🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92874

Re: Spool compression

#92874
From: InterLinked
Date: Thu, 18 Jun 2026 14:11
95 lines
5735 bytes
On 6/18/2026 12:14 AM, Kevin Bowling wrote:
> 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

Well, this is helpful.

Of course, I just realized that compressing files that are already less 
than the block size (4 KB typically) probably won't save anything, so 
compressing such articles would be pointless, in a tradspool 
environment. According to your histogram, that's about 74% of articles 
that won't compress in a useful way unless the block size is changed.

Compressing the other articles would still help if it could shave off at 
least one block. But even for files > 4 KB if the compressed result is 
the same size on disk then that's probably no good either.

> (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.

That makes sense. Train a dictionary across all the uncompressed 
articles in a spool to get something representative for Usenet, and then 
use that when compressing individual articles.

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.

Yeah, CFNS would be better, but I don't want to do CFNS for other 
reasons so trying to think what I could do given the limitations of many 
small files.
Technical Details
Message-ID: <1110ubg$2ld8b$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <110vnlu$2aplk$1@dont-email.me> <110vrav$m00$1@csiph.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: InterLinked <nntp@phreaknet.org>
Newsgroups: news.software.nntp
Subject: Re: Spool compression
Date: Thu, 18 Jun 2026 10:11:55 -0400
Organization: A noiseless patient Spider
Lines: 95
Message-ID: <1110ubg$2ld8b$1@dont-email.me>
References: <110vnlu$2aplk$1@dont-email.me> <110vrav$m00$1@csiph.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 18 Jun 2026 14:12:00 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2798859"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/jgMnpd6UbvRqkQ+1ObUobUe4sJcH9mtc="; posting-host="e4b96dbd866947ec239098f452532ec5"
Cancel-Lock: sha1:MwqmzwdBOS9efyiN2/HWN1GjQAo= sha256:rFbCNUoFcSheKfl4RKNKB7cjMv4tJDavaNMAXHsU1Ro=
	sha1:wNbs4pV5IgS9VtSCAwxdgfwpb4c=
X-Mailer: MailNews/52.9.9224a1
Content-Language: en-US
In-Reply-To: <110vrav$m00$1@csiph.com>