Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Sep 2024 22:50:16 +0200
From:      Daniel Ebdrup Jensen <debdrup@freebsd.org>
To:        freebsd-hackers@freebsd.org
Subject:   Re: makefs -t ffs makes too large image
Message-ID:  <afdudyoicqjkpwlpvyukcruvgaf5amrlnmnczi7ahlmtjng2em@swopo3io4pgz>
In-Reply-To: <70579701-7457-46b1-9329-a51eddec51de@aetern.org>
References:  <1781435895.20240822135231.ref@yahoo.com> <1781435895.20240822135231@yahoo.com> <d3eb46f1-29cc-4fa0-a346-86e1c5434834@quip.cz> <334195982.20240822182405@yahoo.com> <70579701-7457-46b1-9329-a51eddec51de@aetern.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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 <rincebrain@gmail.com>
>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 <mail@gmelikov.ru>
>    Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
>    Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
>    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/

[-- Attachment #2 --]
-----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-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?afdudyoicqjkpwlpvyukcruvgaf5amrlnmnczi7ahlmtjng2em>