INN2 on a Raspberry Pi 4? | Migrating between instances of INN2
Julien ÉLIE
julien at trigofacile.com
Thu Feb 8 12:35:37 UTC 2024
Hi Christoph,
> the biggest hog is the log compression which I changed to xz (patch not
> upstreamed for that reason)
If you think adding native support for xz compression would be useful,
the program could be searched for in m4/compress.m4 and, if you build
INN with the --with-log-compress=xz flag, it would normally do the trick
(not personally tested though).
Wouldn't it correspond to your local change? (if that's the case, such a
change could easily be merged upstream, and usable for your needs as
well as other people's needs)
BTW, I see that this --with-log-compress configure flag is not
documented (it is only mentioned in the output of "./configure --help").
I'll mention it in the relevant manual pages (at least INSTALL, newslog,
news.daily and scanlogs). Current supported methods are gzip, bzip2,
compress and cat (meaning no compression at all).
Also, if we want to be smarter, allowing to change the compression
method at run-time could be useful, for instance by adding a
compressformat keyword to news.daily, which would pass it to scanlogs.
It would even allow to pass options to improve the compression. For
instance with compressformat="gzip -9" to improve compression with gzip,
or compressformat="xz --memlimit=50%" to limit the hog you mentioned.
--
Julien ÉLIE
« If I don't document something, it's usually either for a good reason,
or a bad reason. » (Larry Wall)
More information about the inn-workers
mailing list