Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Dec 2023 07:14:29 -0800
From:      Enji Cooper <yaneurabeya@gmail.com>
To:        Xin LI <delphij@freebsd.org>
Cc:        src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org
Subject:   Re: git: 906748d208d3 - main - newsyslog(8): Add option to globally override compression method.
Message-ID:  <010500A1-E327-47D3-BFD1-141D0C828FE3@gmail.com>
In-Reply-To: <202312230653.3BN6r6Fa021310@gitrepo.freebsd.org>
References:  <202312230653.3BN6r6Fa021310@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

> On Dec 22, 2023, at 22:53, Xin LI <delphij@freebsd.org> wrote:
>=20
> =EF=BB=BFThe branch main has been updated by delphij:
>=20
> URL: https://cgit.FreeBSD.org/src/commit/?id=3D906748d208d356a59538dc009a8=
ad5db040968d9
>=20
> commit 906748d208d356a59538dc009a8ad5db040968d9
> Author:     Xin LI <delphij@FreeBSD.org>
> AuthorDate: 2023-12-23 06:46:33 +0000
> Commit:     Xin LI <delphij@FreeBSD.org>
> CommitDate: 2023-12-23 06:46:33 +0000
>=20
>    newsyslog(8): Add option to globally override compression method.
>=20
>    Historically, newsyslog compressed rotated log files to save disk space=
.
>    This was useful in the early days. However, with modern file systems li=
ke
>    ZFS offering native compression, and with the availability of larger ha=
rd
>    drives, the benefits of additional compression have become less signifi=
cant.
>    This is particularly true considering the inconvenience of decompressin=
g
>    log files when searching for specific patterns.
>=20
>    Additionally, the original implementation of compression methods was no=
t
>    future-proof.  As a result, we have redefined the J, X, Y, Z flags to
>    signify "treat the file as compressible" rather than "compress the file=

>    with that specific method."
>=20
>    A new command-line option, -c, has been introduced to allow overriding
>    these settings in a more future-proof way. The available choices are:
>=20
>     * none                  - do not compress, regardless of flag.
>     * legacy                - historical behavior: J=3Dbzip2, X=3Dxz, Y=3D=
zstd, Z=3Dgzip.
>     * bzip2, xz, zstd, gzip - apply the specified compression method.
>=20
>    Currently, the default is set to 'legacy' to preserve historical behavi=
or.
>    However, our intention is to change this default to 'none' in FreeBSD 1=
5.0.
>=20
>    Additionally, this update changes the default settings for zstd to use
>    multithreading and long-range options, better aligning with its intende=
d
>    use.
>=20
>    Inspired by D42961 .
>=20
>    Reviewed by:    debdrup (earlier version, mdoc(7))
>    MFC after:      1 week
>    Differential Revision: https://reviews.freebsd.org/D43165

Relnotes: yes ?=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?010500A1-E327-47D3-BFD1-141D0C828FE3>