From nobody Sun May 4 07:50:26 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZqxfB6ccHz5vVn0; Sun, 04 May 2025 07:50:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZqxfB3Hq1z4N0j; Sun, 04 May 2025 07:50:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1746345026; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/6OifgYpzhWxrFSeMAPRuNDODwXqdmb+prkvDnV0344=; b=xsY3cG5DV4KuQa2Y6qDACPc8QhIy/4z1dMb+6LDP6zNh85Uo919lEut7hw6MaFJ6wnHGwT nEVBuKaOusbFiVRPeiQzNVS5Sxcp/RNO2ndRYL/qNJRpa8vIm2woCM8udyOMTq2tUt7u8K 4srh8AHyDt5BkVcTqLOKvD/+sy0duQ104sI2LV9CH/nb/UefuF7uJ9CH06C+jrTD3G/bGI WJoobqqM/dRoCAyD5UCjajBiGebLIk0WaMCgApg2DIbCqnrbji7Epdh++WLzEwTPK/n95a 1yuFQ75HYVOm9l94BemMwaPr6ICvsQ+8n4PCPjRBCPGTLkDKgriCJ0P2VKZV/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1746345026; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/6OifgYpzhWxrFSeMAPRuNDODwXqdmb+prkvDnV0344=; b=BNm23vAAM7GuPhCHum1YKYJM0rhG1ZDaLO/iacjSmKfq29g2p8l8smB4T4d7LjjweRXSiI Kj3qdd6/8hhIrGAx1ia3NRHR8EJNJUI92UF6DLTfwwFWyRLAF0R9R9oHMVvDMCzkew4t3o NDHnBBaLDKLZPyVGXREx9HAg669Un5LHzqKC8j0YJxyMtveFDqMbgQozG32JlCTBVJCG7f NlSxHCzgP0Yezs7IjwRtSLd3lXWUQZlppWNLvvz4C8LFEbBPzK4m3h/c4hvhUq2aszYnkc 49QRLBjHKNr9fWDhNbWNIGtwCNoyUEJ4RpYDbXI/ePIDNfKEsxZevSlvaf478g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1746345026; a=rsa-sha256; cv=none; b=iXV5HgdmVwgfVmh68ajkaC15f2oIQNtDjldL0G5WXJp1dHy8EkZLv3VYbcfyZVVdUSfh4G UIjIIRVpGbk1m17K7RtgsI58qp3/Lsp4vScZS/kh2aUQMt4Li87wMSyZ7sWwJk+X+JHWXY pCNBR/AvVHixUhewtDVBDdAfyChe0WJ6jj1iuHZVRHoH9NqeB2ieB5ykoSoFwPoFroqbvq 1hwwytFfu3OJE+TneuMDCaaOhXZCRPns+iLz7ZUNW/HTwrTM241Y928kwWRH38ze2GhtVF gXmeCC3s7X4joAojZ4OgodrsnShKgvaw5DCeumw0vHwB4POu3WugrQmFNNZ2wg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ZqxfB2TSYz4W8; Sun, 04 May 2025 07:50:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 5447oQfn012048; Sun, 4 May 2025 07:50:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5447oQWq012045; Sun, 4 May 2025 07:50:26 GMT (envelope-from git) Date: Sun, 4 May 2025 07:50:26 GMT Message-Id: <202505040750.5447oQWq012045@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Xin LI Subject: git: 83507f9e6fed - main - newsyslog(8): Disable compression by default in newsyslog.conf. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: delphij X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 83507f9e6fedbc02d1acecc9fb5c09eae34b1ae6 Auto-Submitted: auto-generated The branch main has been updated by delphij: URL: https://cgit.FreeBSD.org/src/commit/?id=83507f9e6fedbc02d1acecc9fb5c09eae34b1ae6 commit 83507f9e6fedbc02d1acecc9fb5c09eae34b1ae6 Author: Xin LI AuthorDate: 2025-05-04 07:49:28 +0000 Commit: Xin LI 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: 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: + + 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. + 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