From nobody Sat Apr 22 15:43:23 2023 X-Original-To: freebsd-questions@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 4Q3bJw0J7Vz46v43 for ; Sat, 22 Apr 2023 15:43:28 +0000 (UTC) (envelope-from yuri@aetern.org) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (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 4Q3bJv3WPzz3CNJ for ; Sat, 22 Apr 2023 15:43:27 +0000 (UTC) (envelope-from yuri@aetern.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=aetern.org header.s=fm2 header.b="h4wp/ceu"; dkim=pass header.d=messagingengine.com header.s=fm3 header.b="a WAGFgw"; spf=pass (mx1.freebsd.org: domain of yuri@aetern.org designates 64.147.123.21 as permitted sender) smtp.mailfrom=yuri@aetern.org Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 14F553200392 for ; Sat, 22 Apr 2023 11:43:26 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sat, 22 Apr 2023 11:43:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aetern.org; h=cc :content-transfer-encoding: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=fm2; t= 1682178205; x=1682264605; bh=kCu02c16o2z3azAs+6FkpYKfAD7BEWo+u+e EqtJl9bg=; b=h4wp/ceukbWPu2o0mk2eHZByhFhf8cfs3ZCixJv7+YVAyttCv7C 1gYiS1TDnTCYF2CMFxBTyg0Vz61cILrxqzaNdpkanUGixVG5UCsYPTMfq050e4wF feQU7Gk1EWo50vHDgRWQofWexZo2dpdFqYEi8wdu0kVtrfVOjJp9/yAM0YGpSCTh VempbJw7GunamBa7oOIe3Ysr7rhT9/pMZhBl+rfP/P4ur4K612sMHYWS227RY4FP WHi6liUmakw1dywAkghPitT8RaMecIIbNNn+VQSXEC9jKRTyu57riJUUWlhN2Qh4 F63rUmLuvTozvh0y7DBGzwWNVF5NqoJvf/A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=1682178205; x= 1682264605; bh=kCu02c16o2z3azAs+6FkpYKfAD7BEWo+u+eEqtJl9bg=; b=a WAGFgwmNy8zUOgqEaIxf6OOi0WxbKUp858QUis3nugKgBz4YBzSdWoPusc3mXVhL j6Eah9S/cCquHSSIkZBqGAquzt0fFw4tBEefdIFlFfaRABjJ7RHzCzV5x25QtVDv s/k0kEFLuiY2V7W1TmYWtV6Dy7ZdovgworAdXv+Jnio8T9w47iwpEq9AR+UFOqvF 0Id7KRvcfd4wLvbfqAAmtd63rPjdda1Q2/YsVkN/5ac5MuBM1egdgF8U+GmjAa6E 5E3dKNXhvo9fkeqIEvVlXAV6kEhzpdYzHx9rvoy8AlDUNAfLIxZUykHPhHd8xbxV Zm4WohVOORaceqnGt0tTQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfedtiedgleduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtke ertddtfeejnecuhfhrohhmpegjuhhrihcuoeihuhhrihesrggvthgvrhhnrdhorhhgqeen ucggtffrrghtthgvrhhnpeehtdekheefleeuhefgueetgeevueektddutdegfffhueeute elgeeiteevjeeuveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpeihuhhrihesrggvthgvrhhnrdhorhhg X-ME-Proxy: Feedback-ID: i0d79475b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 22 Apr 2023 11:43:25 -0400 (EDT) Message-ID: <095710ca-8d94-a24b-eaad-ca7250c3cb6a@aetern.org> Date: Sat, 22 Apr 2023 17:43:23 +0200 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: ZFS on root with dedupe Content-Language: en-US To: FreeBSD References: From: Yuri In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4Q3bJv3WPzz3CNJ X-Spamd-Bar: / X-Spamd-Result: default: False [-0.40 / 15.00]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.21]; R_DKIM_ALLOW(-0.20)[aetern.org:s=fm2,messagingengine.com:s=fm3]; ASN(0.00)[asn:29838, ipnet:64.147.123.0/24, country:US]; DKIM_TRACE(0.00)[aetern.org:+,messagingengine.com:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; local_wl_from(0.00)[yuri@aetern.org] X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: local_wl_from X-ThisMailContainsUnwantedMimeParts: N Robert Fitzpatrick wrote: > Hi, > > I installed FreeBSD 13.1 server with ZFS raid 10 to serve a PostgreSQL > database, LDAP and DNS. I never noticed until today, I installed some > more memory and was checking status after the starting up. DEDUP appears > enabled, is that by default? I certainly did not enable. Does this mean > it is in fact enabled and what are the repercussions of disabling now? > >> root@db1:~ # zpool list >> NAME   SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    >> HEALTH  ALTROOT >> zdb1   262G  26.1G   236G        -         -     7%     9%  1.00x    >> ONLINE  - This doesn't mean it's enabled; check `zfs get dedup`. >> root@db1:~ # zpool status >>   pool: zdb1 >>  state: ONLINE >>   scan: scrub repaired 0B in 00:04:52 with 0 errors on Thu Apr 13 >> 10:46:22 2023 >> config: >> >>         NAME        STATE     READ WRITE CKSUM >>         zdb1        ONLINE       0     0     0 >>           mirror-0  ONLINE       0     0     0 >>             ada0p3  ONLINE       0     0     0 >>             ada1p3  ONLINE       0     0     0 >>           mirror-1  ONLINE       0     0     0 >>             ada2p3  ONLINE       0     0     0 >>             ada3p3  ONLINE       0     0     0 >> root@db1:~ # zfs list >> NAME                USED  AVAIL     REFER  MOUNTPOINT >> zdb1               26.0G   228G       96K  /zdb1 >> zdb1/ROOT          24.8G   228G       96K  none >> zdb1/ROOT/default  24.8G   228G     14.6G  / >> zdb1/tmp           1.12M   228G      200K  /tmp >> zdb1/usr           1.17G   228G       96K  /usr >> zdb1/usr/home      1.31M   228G     1.30M  /usr/home >> zdb1/usr/ports     1.17G   228G     1.17G  /usr/ports >> zdb1/usr/src         96K   228G       96K  /usr/src >> zdb1/var           5.35M   228G       96K  /var >> zdb1/var/audit       96K   228G       96K  /var/audit >> zdb1/var/crash       96K   228G       96K  /var/crash >> zdb1/var/log       4.78M   228G      660K  /var/log >> zdb1/var/mail       200K   228G      144K  /var/mail >> zdb1/var/tmp >