From nobody Sun Sep 01 20:50:16 2024 X-Original-To: freebsd-hackers@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 4WxkY7279Lz5PRWQ for ; Sun, 01 Sep 2024 20:50:19 +0000 (UTC) (envelope-from debdrup@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (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 "freefall.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WxkY651Tsz45pT for ; Sun, 1 Sep 2024 20:50:18 +0000 (UTC) (envelope-from debdrup@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725223818; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BzMPsMZ3y1L7E7ili7Ja5wWX7NpfCVb5rip85v97dr0=; b=B247ovL89SZBgnA9a80jedeA+Vv8a2MuCkvbVP2GFipGcrKmuXVWhxHpuLIZHwfGr6Hixi OExFw2QNRlB7zLbrQCxuePiIYvtXVxrgYDTOR/ezY5xktCkZwdio1Y8/F7SbBGW98uThTW nXRzpPZj+D75zzwj6fOl3xlwnBUsfOW8+/EP+h5IFNtAT36unOtaeB2s7/NbuTxLT7NdNv YgjueI8dAgEoQtGl5ErPa0Yw08VbmSX3dR4oc7KeLj5FI42xJ8ShFnQ8kU761xIDJIuzUZ 6eCnFappvZihO+yWli5aWZkw+TCwPs2GhlYl5FYuzbkmoXzHmApnQUyqSyLs2w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725223818; a=rsa-sha256; cv=none; b=uDTF0yKJQhwLHDKpWqYjuKUD6+vI0Tuzz8AKkOphYB5XIkFTn60cXxT5Hz9DGMbT9uzZbl wKodYr+kemAwC2qF53ousD38FUHGFSrfZkVtd7QZCsq8LdnVDLbAow0XnY2fDPa1wZDCpe BM5OAQh1dQByg1bb+MU3YFUb4DB0K6qrYkCNdKeqyq4qwm3KSqnWcHXvRI0B//qd35JJF+ 75LjCIXZ7cJIbfFhiRCSd1H9Oa63MPHvOmsnAVZSJmq9RjK4u9xJDhqECPA/GuEEt/k8XB j0Ns+ebnzz/x2chNSBlNSJ+F7s2XNWBtuVrMB0nN/hG8J7AC8QrGUS0ZwVh+2Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725223818; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BzMPsMZ3y1L7E7ili7Ja5wWX7NpfCVb5rip85v97dr0=; b=qFSPQhTW6svJ0SYMvKF1ul/D42yXlC4kvBxxiwKjwH3qQccs1JT9RUGaAuQCVVSpujInmC FUkK1oAhaQPXUGTqPlWs9531nqp/yMgV3M042k8y3lK/+IR+yL9uVTYsq/ErCSqqDUgmdC ETSdRjCs1ibnDqVx8gmR5eQuxTl9PCRRWVM1OccHxo/qKI42AxkIvl3kCtC9rWKRF8TsGN 9AxgOnKi8E/jKsrCs0iLI1g66dBl6URuXfxDPAeX/3P857zeOJ/wVrlR3VExh9lEe23uR0 KN6B/JNVCUsrfDsKTodqB2wG2TotWMfMjZ8VdA41hJA8oeWliuyCDUxfGWhzaA== Received: by freefall.freebsd.org (Postfix, from userid 1471) id 9B8831B7E1; Sun, 01 Sep 2024 20:50:18 +0000 (UTC) Date: Sun, 1 Sep 2024 22:50:16 +0200 From: Daniel Ebdrup Jensen To: freebsd-hackers@freebsd.org Subject: Re: makefs -t ffs makes too large image Message-ID: References: <1781435895.20240822135231.ref@yahoo.com> <1781435895.20240822135231@yahoo.com> <334195982.20240822182405@yahoo.com> <70579701-7457-46b1-9329-a51eddec51de@aetern.org> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ye43xs7wbdoepxrc" Content-Disposition: inline In-Reply-To: <70579701-7457-46b1-9329-a51eddec51de@aetern.org> --ye43xs7wbdoepxrc Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline On Fri, Aug 23, 2024 at 12:39:26AM UTC, Yuri Pankov wrote: >Anthony Pankov wrote: >> Hello Miroslav, >> >> You are genius! >> >> But the situation is a very frustrating. It is a default system and I did nothing to turn the compression on. >> So I was absolutely sure that compression is off. >> >> I'm sorry. >> Nevertheless having compression on by default is a very weird decision and is fully unexpected for me. I've never seen a big warning about default value of this vital parameter will be inverted. >> >> On 12 -STABLE: >> >> # zfs get compression >> NAME PROPERTY VALUE SOURCE >> ps2 compression off default >> >> On 14-STABLE >> >> # zfs get compression >> NAME PROPERTY VALUE SOURCE >> tank compression on default >> tank/bsdsrc compression on default > >It came in with the following openzfs commit and probably no one really >noticed as installer turns on compression by default, so I was going to >say it was always that way until I looked up the change :-) > >commit 56fa4aa96eb3875f254e93eaef646ea20ba187f9 >Author: Rich Ercolani >Date: Thu Mar 3 13:43:38 2022 -0500 > > Default to ON for compression > > A simple change, but so many tests break with it, > and those are the majority of this. > > Reviewed-by: George Melikov > Reviewed-by: Brian Behlendorf > Signed-off-by: Rich Ercolani > Closes #13078 > >And it looks like it's in FreeBSD starting with 14.0: > >$ git branch -a --contains 56fa4aa96eb3875f254e93eaef646ea20ba187f9 >* main > remotes/origin/HEAD -> origin/main > remotes/origin/main > remotes/origin/pull/956/merge > remotes/origin/releng/14.0 > remotes/origin/releng/14.1 > remotes/origin/stable/14 > Hi folks, It's maybe also worth mentioning that compression by default makes ZFS faster. Allan Jude had some numbers for the default (lz4) in the presentation he did while implementing zstd[1]. It can be a bit surprising though, but hopefully it's a good one.;) Yours, Daniel Ebdrup Jensen 1: https://papers.freebsd.org/2018/bsdcan/jude-zfs_zstd/ --ye43xs7wbdoepxrc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAABCgB9FiEEDonNJPbg/JLIMoS6Ps5hSHzN87oFAmbU04hfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDBF ODlDRDI0RjZFMEZDOTJDODMyODRCQTNFQ0U2MTQ4N0NDREYzQkEACgkQPs5hSHzN 87pMCAgAhyyiK1ZfqMhvtP40GdcFly7boMIL+ukg/2QHK4rEicZ0WbZ+EtDI+7GE DEyBGkbPJiy8yljTCtI3dVqBHqehqwRJwrAybdV+JBGhFrX23vnVi3XxcK9EDB14 sze349oJ1YlSN6582eR+metv41jnJF/3dqIcraH9CbIuWY/dNm9W3pBoYKIT71br MpCvj3074my9XW2nBvmdN4uyphJEX04J93TiOPPXp2mSYRmB/nO5waou4h3LaTMl ApbeLkUxrZkoI4JkikQPNEOYl/gV1VNqKMwjaIzs/1yfHUTTJxQTqjaPx8iCGkaX wSRtasKu3NTHUHQ2TJa77/xyb79FGA== =H+03 -----END PGP SIGNATURE----- --ye43xs7wbdoepxrc--