git: 83507f9e6fed - main - newsyslog(8): Disable compression by default in newsyslog.conf.
Date: Sun, 04 May 2025 07:50:26 UTC
The branch main has been updated by delphij: URL: https://cgit.FreeBSD.org/src/commit/?id=83507f9e6fedbc02d1acecc9fb5c09eae34b1ae6 commit 83507f9e6fedbc02d1acecc9fb5c09eae34b1ae6 Author: Xin LI <delphij@FreeBSD.org> AuthorDate: 2025-05-04 07:49:28 +0000 Commit: Xin LI <delphij@FreeBSD.org> CommitDate: 2025-05-04 07:49:28 +0000 newsyslog(8): Disable compression by default in newsyslog.conf. Historically, newsyslog compressed rotated log files to save disk space. This was helpful when storage was limited. However, with modern files systems like ZFS providing built-in compression and with larger disks now common, the benefits of additional log compression have diminished, especially given the inconvenience of needing to decompress logs when searching for specific patterns. This change updates the default /etc/newsyslog.conf to specify: <compress> none disabling compression for new installations or default setups. It does not modify the behavior of the newsyslog utility itself; users can still enable compression as needed via configuration. MFC: never Reviewed by: zlei, dvl, otis Relnotes: yes Differential Revision: https://reviews.freebsd.org/D43169 --- UPDATING | 15 +++++++++++++++ usr.sbin/newsyslog/newsyslog.conf | 2 ++ 2 files changed, 17 insertions(+) diff --git a/UPDATING b/UPDATING index a05ebb418ca8..3fef48b52636 100644 --- a/UPDATING +++ b/UPDATING @@ -27,6 +27,21 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 15.x IS SLOW: world, or to merely disable the most expensive debugging functionality at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".) +20250504: + newsyslog(8) will no longer compress rotated log files by default. + The J, X, Y, and Z flags in newsyslog.conf(5) now indicate that a + file may be compressed, rather than specifying a particular + compression method. + + To restore the previous default behavior of automatic compression, + remove the line: + + <compress> none + + from /etc/newsyslog.conf. + + For more details, refer to the newsyslog(8) manual page. + 20250412: LinuxKPI alloc routines were changed to return physically contiguous memory where expected. These changes may require out-of-tree drivers diff --git a/usr.sbin/newsyslog/newsyslog.conf b/usr.sbin/newsyslog/newsyslog.conf index d907e08fd747..691aa4503ec2 100644 --- a/usr.sbin/newsyslog/newsyslog.conf +++ b/usr.sbin/newsyslog/newsyslog.conf @@ -1,5 +1,7 @@ # configuration file for newsyslog # +# Global compress method for files tagged as compressible. +<compress> none # Entries which do not specify the '/pid_file' field will cause the # syslogd process to be signalled when that log file is rotated. This # action is only appropriate for log files which are written to by the