Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Dec 2023 07:09:56 -0800
From:      Enji Cooper <yaneurabeya@gmail.com>
To:        d@delphij.net
Cc:        freebsd-current@freebsd.org
Subject:   Re: Proposal: Disable compression of newsyslog by default
Message-ID:  <D39E2631-B2C8-4054-8FC0-CFF4ADEF2415@gmail.com>
In-Reply-To: <ace7d170-acd1-4dc8-8016-a08c261d91f0@delphij.net>
References:  <ace7d170-acd1-4dc8-8016-a08c261d91f0@delphij.net>

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

> On Dec 22, 2023, at 23:18, Xin Li <delphij@delphij.net> wrote:
>=20
> =EF=BB=BFHi,
>=20
> Inspired by D42961, I propose that we move forward with disabling the comp=
ression by default in newsyslog, as implemented in https://reviews.freebsd.o=
rg/D43169
>=20
> Historically, newsyslog has compressed rotated log files to save disk spac=
e. This approach was valuable in the early days where storage space was limi=
ted.  However, the landscape has changed significantly.  Modern file systems=
, such as ZFS, now offer native compression capabilities. Additionally, the w=
idespread availability of larger hard drives has diminished the necessity fo=
r additional compression.  Notably, the need to decompress log files for pat=
tern searches poses a significant inconvenience, further questioning the uti=
lity of this legacy feature.
>=20
> In commit 906748d208d3, flags J, X, Y, Z can now indicate that a log file i=
s eligible for compression rather than directly enforcing it. It allows for a=
 more flexible approach, wherein the actual compression method can be set to=
 "none" or specified as one among bzip2, gzip, xz, or zstd.
>=20
> Therefore I would propose that we change the default compression setting t=
o "none" in FreeBSD 15.0.  This change reflects our adaptation to the evolvi=
ng technological environment and user needs.  It also aligns with the broade=
r initiative to modernize our systems while maintaining flexibility and effi=
ciency.
>=20
> I look forward to your thoughts and feedback on this proposal.

This impacts embedded systems or jails which use UFS as the default /var/log=
 backed device. There are quite a few larger consumers of FreeBSD out there t=
hat still use UFS instead of ZFS.

Adding this instead into bsdinstall and the documentation as a suggested kno=
b seems like a good way to go.

Just something to keep in mind when making this change.

Cheers,
-Enji=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D39E2631-B2C8-4054-8FC0-CFF4ADEF2415>