From nobody Wed Oct 18 09:56:32 2023 X-Original-To: freebsd-fs@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 4S9R864mcTz4xnvg for ; Wed, 18 Oct 2023 09:56:38 +0000 (UTC) (envelope-from void@f-m.fm) Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4S9R8573Nfz4F7y for ; Wed, 18 Oct 2023 09:56:37 +0000 (UTC) (envelope-from void@f-m.fm) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=f-m.fm header.s=fm3 header.b=c5ITbrPU; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=Z+0HqtWP; spf=pass (mx1.freebsd.org: domain of void@f-m.fm designates 64.147.123.24 as permitted sender) smtp.mailfrom=void@f-m.fm; dmarc=pass (policy=none) header.from=f-m.fm Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id EB8CC3200A7F for ; Wed, 18 Oct 2023 05:56:35 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 18 Oct 2023 05:56:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=f-m.fm; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1697622995; x=1697709395; bh=02 iC3d0yAJSW+1gXZdVcAuYqU6WGK2xevcBD1DIbaSA=; b=c5ITbrPUdP83RRKxzH ItDiswcixllq7ifmelv6vKuEhEhfH4b60btStU2zjmzTVDT2PrENU+kiatUqFdri UG8IN0FR1fh/CloqSu0y525V9z6WJbaftN5iPSiuFzkZexPrWE6cj6V2+4sxJ0v7 RNJE76U8fGxChOftY7gaFP2qZtCCFIS4jzAYExKtCRIj7I4uWS/n3St6eybxhwU1 Wq83arUo+gympb2AOOq/wyJAfMAEtVR3LoMvsXTWmht3FQeaS+ZENje5w43I/Qru Nv8cDw9pCP9O1TLppmN+nxW9vFKaB10AXpY7HNr+hzJHqnviAR3FxZxCpKK0TZYs NCKw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1697622995; x=1697709395; bh=02iC3d0yAJSW+ 1gXZdVcAuYqU6WGK2xevcBD1DIbaSA=; b=Z+0HqtWPeF/d682YKNefTb/ieErKL 3cT4wgUfWDU6Ydgc/EAMYxE9onBX145R0+j1/e40wIR8s/ge4NoDypdyMhBcpb3c kRyx1OjI3Qh4RY9MY4sRm95pSpxYh4KhqEUzGyTzLjVPPxyqiotLisH2YEFg7F9y KZy/ODl6BIs8E6IvmX2Z+ylBTd7feKElrw0YG1cZFsVbaqUWnC4l6R5+I7TOelQF +CXBclVmmAb0a4DzMiLd30ctJy1FEOAEeyNydbdaf7ExraYSssSDxaN17Q9sr8R6 +tlvE0QMwgCwBM2Ecjv9TgLzvSNzDpDvurXZj9TiznpHQr8cKnoXHXDtA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrjeeggddvtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttdertd dttddvnecuhfhrohhmpehvohhiugcuoehvohhiugesfhdqmhdrfhhmqeenucggtffrrght thgvrhhnpeekleduvdelhfeileefgffghfffkedtheellefgudfgvdegkeejjedutdehhe fgueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehv ohhiugesfhdqmhdrfhhm X-ME-Proxy: Feedback-ID: i2541463c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 18 Oct 2023 05:56:34 -0400 (EDT) Date: Wed, 18 Oct 2023 10:56:32 +0100 From: void To: freebsd-fs@freebsd.org Subject: Re: performance impact of various compression schemes on a zvol Message-ID: Mail-Followup-To: freebsd-fs@freebsd.org References: List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.78 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.78)[-0.780]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[f-m.fm,none]; RWL_MAILSPIKE_EXCELLENT(-0.40)[64.147.123.24:from]; R_DKIM_ALLOW(-0.20)[f-m.fm:s=fm3,messagingengine.com:s=fm3]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.24]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.123.24:from]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:29838, ipnet:64.147.123.0/24, country:US]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[f-m.fm]; MLMMJ_DEST(0.00)[freebsd-fs@freebsd.org]; DKIM_TRACE(0.00)[f-m.fm:+,messagingengine.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[f-m.fm]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4S9R8573Nfz4F7y On Wed, Oct 18, 2023 at 09:21:29AM +0200, infoomatic wrote: >On 18.10.23 00:33, void wrote: >>What's the perfomance penalty on zvols of compression? >>The impact on the host? > >This totally depends on your data. I did some tests on our mailserver, >and for us it boiled down to: > >*) use lz4 if performance is very important, and compression rate not so >much. We found that the impact of lz4 is so fast that our workloads were >quite faster than any test without compression, so I would say you can >set lz4 in any way (lz4 is very fast on detecting incrompressible data) > >*) use between zstd-6 and zstd-9 (not too much difference in our tests) >if you want a nice balance where performance is not too much affected >and we reach a nice level of compression, however, of course your >definition of "maximum performance penalty" may be different. > >You could check out lzbench. Thanks everyone, this is exactly the type of info I was looking for. In terms of data used within the vm, I'd guess 70% of the space currently used is uncompressible multimedia. I'll stay with lz4 (when file-backed the vm was on a lz4 vdev. I'll set the vol to use lz4). There is no filesystem compression within the vm as it's a linux guest which pre-dates zfs use within linux). --