From nobody Tue Sep 03 06:33:32 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 4WybPh4qVXz5W2d1 for ; Tue, 03 Sep 2024 06:31:52 +0000 (UTC) (envelope-from anthony.pankov@yahoo.com) Received: from sonic310-57.consmr.mail.ir2.yahoo.com (sonic310-57.consmr.mail.ir2.yahoo.com [77.238.177.30]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WybPg3J35z4PS8 for ; Tue, 3 Sep 2024 06:31:51 +0000 (UTC) (envelope-from anthony.pankov@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=tN1Wxuid; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of anthony.pankov@yahoo.com designates 77.238.177.30 as permitted sender) smtp.mailfrom=anthony.pankov@yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1725345109; bh=r4ztI7ZgQziJV9X+NBvXp3tFr0riolerEyRQBuVevek=; h=Date:From:To:Subject:In-Reply-To:References:From:Subject:Reply-To; b=tN1WxuidP+OQ9Tr2McBWvTfFNHG7FEoWEos4Kxxp3co+hks1CGehfvejaDd+GrunqtDmko2E/cYBko3HE4Jjb5eqMVy3ewym7XiAW3pA4IM0kjvVudOZWeffCV34/ZFtTeFxAvJRSjUP/r9JvxKQ9ya9zeoyn4TSX8rvIRURCRI2/A2oMf+bAIwUngdC5JeY5I5oPj4/Fqft0JyjWzVnV2N2YejxazqOAUIVrLiirddK7t+QtvY0k2JSs/2+ty/AXv8p6Op9EBWyzkIk9ImPhfZaFtA2BA6haXDjVzNbyBqRVU07l3Ybfc+RYcoqj02aYZsJjKuCqiX+oO4Y9w8/fA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1725345109; bh=Iku9XpfegmDjVOOmFw+put8ZDGsgNdn70zMZ2RAIt/T=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=VcIeQmFCtP+TtUDosuJXyqRFdIiTm7vVX9udx0jmkDNf8UH0ZrvIkw+2fmHQEhOs3mlf3P1YwfQONPRRuLhEgSjbGmOyo3INoVusPNtvdkfOsa3+QEzLfq4AthW1legzdQ4znEMJxmY7qHvMk+e9+OdRBItbciKlT5yXhzyLJjxlDzdX1JYVt4JqPC4mXM/ixClUiXHl5cxDd11YvDoRMb3bIYmO7supBbCaskeArgQq8AoP5JRZmncoaTBPdbUWSbRRxibjiDmGq9sk3A9eOQA34u/Keq04Wrmr5eEz5aF/fKjM+xOi2cFCeVCdVcSk/P9UDZL4YT0M2/mPzejfnA== X-YMail-OSG: Ty6KskYVM1ljKxqaOBBPExMptIl9RfoNLJlHokJG1cASnAcCh0.zA7ioHYrEetH J3wbhASMu29d8U.O5YZ2gPCT4Frb0AW12CIUExTgObzn4Qwg2CxMvIK6E10Bs92S7ktz7rdk5Det iqMNou1ioyeY16jswnnWEKdb0BlaPCmLfeGwAk.sZ.PFzToYHYNc3XnAlanq4anGFquzlN2Cub1V 9Rwzd3kA5oAKTTWgnUSR4zYsMDdC2PpJMc.YzqmFKsSi9PxOA1ywmZ39oSCACwOQyu7PZhFuCe8_ LfxCHWV_BpCMat6Ax8.UV63Bq8zleg_XMA8jnQKeSJpCFUczQyyonU2mTtmuD9UEfvG0jk2DBzXF 2MXo3D0ZN4Oz8hDWMJPV7uKonumcKvXLvlaFPf5j1szn6.uv7tx5la5eYBBLsfSx7oJbHKAHTAtQ cO9Xnq61sdtdKun.LneZPdxhRs8txP6ZnXnkkyJnsLaa75RcO6P0pfJX0YllKXJKUW87kLjKeX5G CLBgFfXV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xhvnGzMgRAPLsxYjoKleqc2iYTqAiTkuK31mfqLrJkwdl37EJ07iFXR0WhXmxBsl NT16aq1kQHAtOAdawJp9cVG1LyVdK9fV8gH9hcQ9Lhf7VlYQjru9uhAFswd9a6e7aGjTxC3hdIkw hSmFbUiM0Tk37BKJhTKPRREwMawohQMw3Xdwd1cfuhrHF5TPeAiUC5rJRJz00gCq9pf12flolNvn e_MCWV5zcKcbL9BHtrqa8zK3nylqneEa90S1_2EVoHbsAlMuvUdKdI_B39PINy4_0YqXJtJ2vNxg p.Rn2uePFhQackMnCUSoWqXRkGQQCRjTzdnrstpevRDfdF2eCEvz4Er1iBUlrSYgwLBv.YlefuZB qzzMTGNt3qMHY5wuK3vskozzEbfKHXLb.Sm0uiYWKE1pzHH2eOT9Bdm6lb_zDgcDBKUizcDBC51P V2__dloS5JfrZ.mtM4s2QRGJFOlBGUkmB0zd.DQI48CIq8vkpqulfMH8KGHbrHkDzRBJQ88BZh6K sHBGNBFFZeTfoZRLDJZRpREtHtHbcNTjFwumeWdhRoVsqmE1u8.SF00sY0wVYmbwHNYyqKis3PQn KhL7zoZ_03zPOLdYB8zR1yo9cynSVFduSja0sY3dP4cyLA1hCjazL9rFqQmiV X-Sonic-MF: X-Sonic-ID: f89cdfe4-890d-44c7-acbb-f40f31b42a11 Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ir2.yahoo.com with HTTP; Tue, 3 Sep 2024 06:31:49 +0000 Received: by hermes--production-ir2-6664f499fc-gccss (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 30612d43aa0ec9e27a40b362ecb6957d; Tue, 03 Sep 2024 06:31:43 +0000 (UTC) Date: Tue, 3 Sep 2024 09:33:32 +0300 From: Anthony Pankov Message-ID: <1876116975.20240903093332@yahoo.com> To: Daniel Ebdrup Jensen , freebsd-hackers@freebsd.org Subject: Re: makefs -t ffs makes too large image In-Reply-To: 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: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: WebService/1.1.22645 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.81 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.81)[-0.806]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:34010, ipnet:77.238.176.0/22, country:GB]; MIME_TRACE(0.00)[0:+]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RWL_MAILSPIKE_POSSIBLE(0.00)[77.238.177.30:from]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; DKIM_TRACE(0.00)[yahoo.com:+] X-Rspamd-Queue-Id: 4WybPg3J35z4PS8 Hello Daniel, My impression that compression makes ZFS slower on VM. May be this is the only case of not so-well-optimized VM such as QEMU on Windows. Sunday, September 1, 2024, 11:50:16 PM, you wrote: > 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/ -- Best regards, Anthony