From nobody Sat Dec 23 15:09:56 2023 X-Original-To: freebsd-current@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 4Sy6zQ4Fg1z54cTx for ; Sat, 23 Dec 2023 15:10:10 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Sy6zQ2b3Dz3HP1 for ; Sat, 23 Dec 2023 15:10:10 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-5cdfbd4e8caso841644a12.0 for ; Sat, 23 Dec 2023 07:10:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703344208; x=1703949008; darn=freebsd.org; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=VdFL6kDduoA20p2T6TzjFJ3zD9CiRel328mjBjz/WyA=; b=ZQ8Q9qEkhpZrXoeJZ8yfO2ntgLfv/yOy1/2Yvc/i/AX9OntFfCO8+91OuPr77u1Vat 9QPvYSwCKYtZqbcznyr2LmcQJIKvbGjb4hzf6xNq1tXM0WSojmv20ln++G/+h0wz0ccr BDKgVl7EyTTX3ftGamjShEHCDudWozjoeo2jPbYW2k0FwRrLN8JqRLhNxuz9lNaj6eQx nk9JLxVRRzNGC9Y+YNowFRGXGAGzh7YctTrO3jw2J+gEHabkSqi8jsaPU+E+7wH0WKOb xoAPsvUSiyxuF+D+gmOuYQtZXsxMBPk6KtPO8bmLve+KHThc+bu4VC94o7VFHxCpi5I3 i+Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703344208; x=1703949008; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VdFL6kDduoA20p2T6TzjFJ3zD9CiRel328mjBjz/WyA=; b=nZSsCE3gtRHMuH5pmY15DYQu6qQWFY0HMfyILUU+ejjVgmEiYuQNQ5Tsvnm0Z3JB+8 y7aEWp4FHDy3MBRTGcYwKgzXrkQkSvhacqneWbYKayPiBbeyXkX5gwNwdmCOlm2ZN/Vk hGqgTf74bgJe/YRYRQkLvVHNz2PDNFHYNyi1pugP0LBhjwjrdoozzB771bSRYF5KYl67 YY990xmg07ALSSb2ij/bULOClxJa7Qq8xD4UzzSQCBTtos/cl2FWZkXzXSLFRkSmTMGG eEnLtKhzcbCI/QDJT3nCPi4SdXoBiiBw9C5B9eAU12HvTJbY+o2Vo/1w18S0Iwy7JhjB wneg== X-Gm-Message-State: AOJu0Yx74io2X1Sy0Dler38Yf59TrkBTP76kWkODMknCBamY3j+9l6wu VW23CMj9Xbx2qFIpgC4LA+wXMKyIfQhkzg== X-Google-Smtp-Source: AGHT+IFxVJw9Pt1OfWKOWDHljIIxr64IGfH25jdT8yRo84tiwvQb6vuf87Dbws8g0mwyztuec5HELg== X-Received: by 2002:a17:903:191:b0:1d4:4768:41 with SMTP id z17-20020a170903019100b001d447680041mr140701plg.47.1703344207942; Sat, 23 Dec 2023 07:10:07 -0800 (PST) Received: from smtpclient.apple (c-24-19-32-101.hsd1.wa.comcast.net. [24.19.32.101]) by smtp.gmail.com with ESMTPSA id f6-20020a170902ce8600b001d3aa3b8309sm5219830plg.178.2023.12.23.07.10.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 23 Dec 2023 07:10:07 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Enji Cooper List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (1.0) Subject: Re: Proposal: Disable compression of newsyslog by default Date: Sat, 23 Dec 2023 07:09:56 -0800 Message-Id: References: Cc: freebsd-current@freebsd.org In-Reply-To: To: d@delphij.net X-Mailer: iPhone Mail (21B101) X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4Sy6zQ2b3Dz3HP1 > On Dec 22, 2023, at 23:18, Xin Li 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=