Page MenuHomeFreeBSD

newsyslog(8): Disable compression by default.
Needs ReviewPublic

Authored by delphij on Dec 23 2023, 7:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 30, 11:27 AM
Unknown Object (File)
Fri, Apr 26, 2:45 AM
Unknown Object (File)
Tue, Apr 23, 9:57 AM
Unknown Object (File)
Sat, Apr 20, 3:21 AM
Unknown Object (File)
Sat, Apr 6, 7:50 PM
Unknown Object (File)
Sat, Apr 6, 4:41 PM
Unknown Object (File)
Apr 2 2024, 8:37 AM
Unknown Object (File)
Jan 11 2024, 3:30 AM
Subscribers

Details

Summary

Historically, newsyslog compressed rotated log files to save disk space. This was
useful in the early days. However, with modern file systems like ZFS offering native
compression, and with the availability of larger hard drives, the benefits of
additional compression have become less significant. This is particularly true
considering the inconvenience of decompressing log files when searching for
specific patterns.

To reinstate the historical behavior, modify the newsyslog entry in /etc/crontab
to include "-c legacy".

MFC: never

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 55105
Build 51994: arc lint + arc unit

Event Timeline

delphij created this revision.
This revision is now accepted and ready to land.Dec 23 2023, 1:11 PM

I like this solution better than my proposed changes to newsyslog.conf

MFC: never

Oh sad, do I need to wait to a future 15-STABLE branch to get this awesome improvement? :-(
Do you think its a real blocker to MFC to STABLE 14 and be included in 14.1-RELEASE?

MFC: never

Oh sad, do I need to wait to a future 15-STABLE branch to get this awesome improvement? :-(
Do you think its a real blocker to MFC to STABLE 14 and be included in 14.1-RELEASE?

the commit says 1 week:

https://cgit.freebsd.org/src/commit/?id=906748d208d356a59538dc009a8ad5db040968d9

In D43169#983940, @dvl wrote:

MFC: never

Oh sad, do I need to wait to a future 15-STABLE branch to get this awesome improvement? :-(
Do you think its a real blocker to MFC to STABLE 14 and be included in 14.1-RELEASE?

the commit says 1 week:

https://cgit.freebsd.org/src/commit/?d=906748d208d356a59538dc009a8ad5db040968d9

Ah thats good :) then I can change the default my self to none ;).

This revision now requires review to proceed.Dec 25 2023, 7:59 AM

Limit diff scope to HEAD^..HEAD