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)
Mon, Oct 21, 7:05 PM
Unknown Object (File)
Mon, Oct 21, 8:36 AM
Unknown Object (File)
Oct 4 2024, 10:50 PM
Unknown Object (File)
Oct 4 2024, 9:07 PM
Unknown Object (File)
Oct 4 2024, 4:32 PM
Unknown Object (File)
Oct 2 2024, 6:21 AM
Unknown Object (File)
Oct 2 2024, 4:11 AM
Unknown Object (File)
Oct 2 2024, 1:49 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 55096
Build 51985: 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