From owner-freebsd-fs@freebsd.org Fri May 29 14:37:09 2020 Return-Path: Delivered-To: freebsd-fs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 27CC933A554; Fri, 29 May 2020 14:37:09 +0000 (UTC) (envelope-from freebsd-fs@lordsith.net) Received: from lb3-smtp-cloud8.xs4all.net (lb3-smtp-cloud8.xs4all.net [194.109.24.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.xs4all.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49YRwh1Zhbz3Znh; Fri, 29 May 2020 14:37:07 +0000 (UTC) (envelope-from freebsd-fs@lordsith.net) Received: from lordsith.net ([IPv6:2001:980:93d7:1:30df:f5ff:fee9:10df]) by smtp-cloud8.xs4all.net with ESMTP id eg88jdj9DdPgTeg8AjEnKe; Fri, 29 May 2020 16:37:06 +0200 Date: Fri, 29 May 2020 14:37:03 +0000 From: marco To: freebsd-fs Cc: freebsd-current@freebsd.org Subject: imported zpool not persistent across reboot Message-ID: <20200529143703.GA78062@lordsith.net> Reply-To: marco Mail-Followup-To: marco , freebsd-fs , freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Organization: lordsith.net X-Operating-System: SunOS 5.11 joyent_20200212T230824Z X-Unix: Use Unix or die X-GPG-Fingerprint: A025 D8AA AC1B D2FC 380D 4FC1 8EA0 0BA8 8580 E6CB X-GPG-Key: https://lordsith.net/marco.gpg X-Uptime: 14:02pm up 86 days 0:32, 1 user, load average: 0.01, 0.00, 0.00 User-Agent: Mutt/1.5.22 (2013-10-16) X-CMAE-Envelope: MS4wfKDFQ1s1QstW455tt48+HJ5MISoZq0b1XYHcI0HEuTCZPLBCDK4oBrRH2m8dxx175xRm2e+I1dhArY8EOuD2ZtoykcRl0LAGWQpDNanJa8J2mPb6wwYf 0CukZNXL2kqqF9yeEqNQe8y2dMYyQkkcXdnjmhbXyI68XrtCO3J74LwZEzrRzj65eFlJ+sCy+mgVMna83NpBX03/pXIf0Ln6INlupXR9CDQq7frojWAwvuEn 2HG6dTCxHtfUNg6chyDsz09tttAKlQbP3/QeY+9xUe0= X-Rspamd-Queue-Id: 49YRwh1Zhbz3Znh X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=softfail (mx1.freebsd.org: 194.109.24.29 is neither permitted nor denied by domain of freebsd-fs@lordsith.net) smtp.mailfrom=freebsd-fs@lordsith.net X-Spamd-Result: default: False [-0.06 / 15.00]; HAS_REPLYTO(0.00)[freebsd-fs@lordsith.net]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.38)[-0.382]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[lordsith.net]; R_SPF_SOFTFAIL(0.00)[~all]; NEURAL_SPAM_MEDIUM(0.58)[0.583]; HAS_ORG_HEADER(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[194.109.24.29:from]; NEURAL_HAM_SHORT(-0.06)[-0.060]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[194.109.24.29:from] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 May 2020 14:37:09 -0000 I'm on -CURRENT (r361307) and using base ZFS. I imported a zpool that was created on SmartOS with some unsupported feature flags so had to import it read-only. [~] zpool get all backup NAME PROPERTY VALUE = SOURCE backup size 1.36T = - backup capacity 9% = - backup altroot - = default backup health ONLINE = - backup guid 11841096011823395086= default backup version - = default backup bootfs - = default backup delegation on = default backup autoreplace off = default backup cachefile - = default backup failmode wait = default backup listsnapshots off = default backup autoexpand off = default backup dedupditto 0 = default backup dedupratio 1.00x = - backup free 1.24T = - backup allocated 126G = - backup readonly on = - backup comment - = default backup expandsize - = - backup freeing 0 = default backup fragmentation 0% = - backup leaked 0 = default backup bootsize - = default backup checkpoint - = - backup multihost off = default backup feature@async_destroy enabled = local backup feature@empty_bpobj active = local backup feature@lz4_compress active = local backup feature@multi_vdev_crash_dump enabled = local backup feature@spacemap_histogram active = local backup feature@enabled_txg active = local backup feature@hole_birth active = local backup feature@extensible_dataset active = local backup feature@embedded_data active = local backup feature@bookmarks enabled = local backup feature@filesystem_limits enabled = local backup feature@large_blocks enabled = local backup feature@large_dnode enabled = local backup feature@sha512 enabled = local backup feature@skein enabled = local backup feature@device_removal enabled = local backup feature@obsolete_counts enabled = local backup feature@zpool_checkpoint enabled = local backup feature@spacemap_v2 active = local backup feature@allocation_classes enabled = local backup unsupported@com.datto:bookmark_v2 inactive = local backup unsupported@org.illumos:edonr inactive = local backup unsupported@com.datto:encryption inactive = local backup unsupported@com.datto:resilver_defer inactive = local backup unsupported@org.zfsonlinux:userobj_accounting readonly = local backup unsupported@org.zfsonlinux:project_quota readonly = local backup unsupported@com.delphix:log_spacemap readonly = local Whenever I reboot that zpool is no longer imported. I've checked /boot/defaults/loader.conf, /etc/defaults/rc.conf but haven't = seen any keys that I need to make the imported pool persistent. I've read something on the cachefile=3Dpath setting in zpool(8) but as one = can see it's set to default I guess I must've overlooked something but haven't found it so far. thanks --=20 Marco van Lienen -- Unix SysAdmin https://keybase.io/scarcry , GnuPG id: 8580E6CB "The Tuck Pendleton machine...zero defects." From owner-freebsd-fs@freebsd.org Fri May 29 14:44:53 2020 Return-Path: Delivered-To: freebsd-fs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9825133A9CA for ; Fri, 29 May 2020 14:44:53 +0000 (UTC) (envelope-from freebsd-fs@lordsith.net) Received: from lb2-smtp-cloud8.xs4all.net (lb2-smtp-cloud8.xs4all.net [194.109.24.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.xs4all.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49YS5b4TFgz3bLm for ; Fri, 29 May 2020 14:44:51 +0000 (UTC) (envelope-from freebsd-fs@lordsith.net) Received: from lordsith.net ([IPv6:2001:980:93d7:1:30df:f5ff:fee9:10df]) by smtp-cloud8.xs4all.net with ESMTP id egFbjdmAndPgTegFdjErMh; Fri, 29 May 2020 16:44:49 +0200 Date: Fri, 29 May 2020 14:44:47 +0000 From: marco To: freebsd-fs Subject: imported zpool not persistent across reboot Message-ID: <20200529144447.GB79949@lordsith.net> Reply-To: marco Mail-Followup-To: marco , freebsd-fs MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cvVnyQ+4j833TQvp" Content-Disposition: inline Organization: lordsith.net X-Operating-System: SunOS 5.11 joyent_20200212T230824Z X-Unix: Use Unix or die X-GPG-Fingerprint: A025 D8AA AC1B D2FC 380D 4FC1 8EA0 0BA8 8580 E6CB X-GPG-Key: https://lordsith.net/marco.gpg X-Uptime: 14:42pm up 86 days 1:12, 1 user, load average: 0.02, 0.02, 0.00 User-Agent: Mutt/1.5.22 (2013-10-16) X-CMAE-Envelope: MS4wfDx+KLPE6K547DXn5YA9NCRa+DCWicqW1ulaOtZiQnbDy2qa9NM7F+boHlvpLvaGtk9KvAq4erVUVJDARSq2a529V0e0x9LxpfKwIiB+0+tF7SzD2wy9 OxowRlrKS5mtoKJEoqePjBMOAkqSammpI/EPAOVeJZek7xRFvLNx7h247k4byWhl0Y14rXE63WGsw4BOmcAtHe1dYos2FMoaXQter5PperdbNHffEqlk9IoO X-Rspamd-Queue-Id: 49YS5b4TFgz3bLm X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=softfail (mx1.freebsd.org: 194.109.24.25 is neither permitted nor denied by domain of freebsd-fs@lordsith.net) smtp.mailfrom=freebsd-fs@lordsith.net X-Spamd-Result: default: False [1.18 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[freebsd-fs@lordsith.net]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[194.109.24.25:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.73)[0.734]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[lordsith.net]; R_SPF_SOFTFAIL(0.00)[~all:c]; RCPT_COUNT_ONE(0.00)[1]; HAS_ORG_HEADER(0.00)[]; NEURAL_SPAM_MEDIUM(0.70)[0.698]; TO_DN_ALL(0.00)[]; NEURAL_SPAM_LONG(0.04)[0.044]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[194.109.24.25:from] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 May 2020 14:44:53 -0000 --cvVnyQ+4j833TQvp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm on -CURRENT (r361307) and using base ZFS. I imported a zpool that was created on SmartOS with some unsupported feature flags so had to import it read-only. [~] zpool get all backup NAME PROPERTY VALUE = SOURCE backup size 1.36T = - backup capacity 9% = - backup altroot - = default backup health ONLINE = - backup guid 11841096011823395086= default backup version - = default backup bootfs - = default backup delegation on = default backup autoreplace off = default backup cachefile - = default backup failmode wait = default backup listsnapshots off = default backup autoexpand off = default backup dedupditto 0 = default backup dedupratio 1.00x = - backup free 1.24T = - backup allocated 126G = - backup readonly on = - backup comment - = default backup expandsize - = - backup freeing 0 = default backup fragmentation 0% = - backup leaked 0 = default backup bootsize - = default backup checkpoint - = - backup multihost off = default backup feature@async_destroy enabled = local backup feature@empty_bpobj active = local backup feature@lz4_compress active = local backup feature@multi_vdev_crash_dump enabled = local backup feature@spacemap_histogram active = local backup feature@enabled_txg active = local backup feature@hole_birth active = local backup feature@extensible_dataset active = local backup feature@embedded_data active = local backup feature@bookmarks enabled = local backup feature@filesystem_limits enabled = local backup feature@large_blocks enabled = local backup feature@large_dnode enabled = local backup feature@sha512 enabled = local backup feature@skein enabled = local backup feature@device_removal enabled = local backup feature@obsolete_counts enabled = local backup feature@zpool_checkpoint enabled = local backup feature@spacemap_v2 active = local backup feature@allocation_classes enabled = local backup unsupported@com.datto:bookmark_v2 inactive = local backup unsupported@org.illumos:edonr inactive = local backup unsupported@com.datto:encryption inactive = local backup unsupported@com.datto:resilver_defer inactive = local backup unsupported@org.zfsonlinux:userobj_accounting readonly = local backup unsupported@org.zfsonlinux:project_quota readonly = local backup unsupported@com.delphix:log_spacemap readonly = local Whenever I reboot that zpool is no longer imported. I've checked /boot/defaults/loader.conf, /etc/defaults/rc.conf but haven't = seen any keys that I need to make the imported pool persistent. I've read something on the cachefile=3Dpath setting in zpool(8) but as one = can see it's set to default I guess I must've overlooked something but haven't found it so far. thanks --=20 Marco van Lienen -- Unix SysAdmin https://keybase.io/scarcry , GnuPG id: 8580E6CB "The Tuck Pendleton machine...zero defects." --cvVnyQ+4j833TQvp Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEAREKAAYFAl7RH98ACgkQjqALqIWA5svG3wCfYIRBVNxYPfEsrERYs6XxanAr nxMAnRIVFRwINsuk1JyIBlsyFNkOLOu8 =Osge -----END PGP SIGNATURE----- --cvVnyQ+4j833TQvp-- From owner-freebsd-fs@freebsd.org Sat May 30 20:05:44 2020 Return-Path: Delivered-To: freebsd-fs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A87652F4E27; Sat, 30 May 2020 20:05:44 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49ZC9M4JSWz4ZY4; Sat, 30 May 2020 20:05:43 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.110.112]) by smarthost1.greenhost.nl with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1jf7jg-000694-Hv; Sat, 30 May 2020 22:05:41 +0200 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-fs , marco Cc: freebsd-current@freebsd.org Subject: Re: imported zpool not persistent across reboot References: <20200529143703.GA78062@lordsith.net> Date: Sat, 30 May 2020 22:05:39 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: <20200529143703.GA78062@lordsith.net> User-Agent: Opera Mail/12.16 (FreeBSD) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: -0.2 X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 autolearn=disabled version=3.4.2 X-Scan-Signature: 9e5d90b7ad51a80bf663b69d2bb8c379 X-Rspamd-Queue-Id: 49ZC9M4JSWz4ZY4 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of ronald-lists@klop.ws designates 195.190.28.88 as permitted sender) smtp.mailfrom=ronald-lists@klop.ws X-Spamd-Result: default: False [-2.17 / 15.00]; ARC_NA(0.00)[]; RWL_MAILSPIKE_VERYGOOD(0.00)[195.190.28.88:from]; NEURAL_HAM_MEDIUM(-0.97)[-0.968]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.190.28.64/27]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[klop.ws]; NEURAL_HAM_LONG(-1.02)[-1.023]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.37)[-0.375]; RCVD_IN_DNSWL_NONE(0.00)[195.190.28.88:from]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:47172, ipnet:195.190.28.0/24, country:NL]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 May 2020 20:05:44 -0000 On Fri, 29 May 2020 16:37:03 +0200, marco wrote: > I'm on -CURRENT (r361307) and using base ZFS. > I imported a zpool that was created on SmartOS with some unsupported > feature flags so had to import it read-only. What was the exact command you used to import the pool? Regards, Ronald. > > [~] zpool get all backup > NAME PROPERTY > VALUE SOURCE > backup size > 1.36T - > backup capacity > 9% - > backup altroot > - default > backup health > ONLINE - > backup guid > 11841096011823395086 default > backup version > - default > backup bootfs > - default > backup delegation > on default > backup autoreplace > off default > backup cachefile > - default > backup failmode > wait default > backup listsnapshots > off default > backup autoexpand > off default > backup dedupditto > 0 default > backup dedupratio > 1.00x - > backup free > 1.24T - > backup allocated > 126G - > backup readonly > on - > backup comment > - default > backup expandsize > - - > backup freeing > 0 default > backup fragmentation > 0% - > backup leaked > 0 default > backup bootsize > - default > backup checkpoint > - - > backup multihost > off default > backup feature@async_destroy > enabled local > backup feature@empty_bpobj > active local > backup feature@lz4_compress > active local > backup feature@multi_vdev_crash_dump > enabled local > backup feature@spacemap_histogram > active local > backup feature@enabled_txg > active local > backup feature@hole_birth > active local > backup feature@extensible_dataset > active local > backup feature@embedded_data > active local > backup feature@bookmarks > enabled local > backup feature@filesystem_limits > enabled local > backup feature@large_blocks > enabled local > backup feature@large_dnode > enabled local > backup feature@sha512 > enabled local > backup feature@skein > enabled local > backup feature@device_removal > enabled local > backup feature@obsolete_counts > enabled local > backup feature@zpool_checkpoint > enabled local > backup feature@spacemap_v2 > active local > backup feature@allocation_classes > enabled local > backup unsupported@com.datto:bookmark_v2 > inactive local > backup unsupported@org.illumos:edonr > inactive local > backup unsupported@com.datto:encryption > inactive local > backup unsupported@com.datto:resilver_defer > inactive local > backup unsupported@org.zfsonlinux:userobj_accounting > readonly local > backup unsupported@org.zfsonlinux:project_quota > readonly local > backup unsupported@com.delphix:log_spacemap > readonly local > > Whenever I reboot that zpool is no longer imported. > > I've checked /boot/defaults/loader.conf, /etc/defaults/rc.conf but > haven't seen any keys that I need to make the imported pool persistent. > I've read something on the cachefile=path setting in zpool(8) but as one > can see it's set to default > I guess I must've overlooked something but haven't found it so far. > > thanks From owner-freebsd-fs@freebsd.org Sat May 30 20:10:41 2020 Return-Path: Delivered-To: freebsd-fs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 63B372F4FDE for ; Sat, 30 May 2020 20:10:41 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49ZCH46q2Yz4ZxM for ; Sat, 30 May 2020 20:10:40 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.110.112]) by smarthost1.greenhost.nl with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1jf7oU-00076c-KN; Sat, 30 May 2020 22:10:39 +0200 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "freebsd-fs@freebsd.org" , "Miroslav Lachman" <000.fbsd@quip.cz> Subject: Re: ZFS on FreeBSD 11.3 slower than 10.4 References: <1ff455a5-d111-86fa-ceb1-1021b6d9a5b6@quip.cz> Date: Sat, 30 May 2020 22:10:37 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: <1ff455a5-d111-86fa-ceb1-1021b6d9a5b6@quip.cz> User-Agent: Opera Mail/12.16 (FreeBSD) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: -0.2 X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 autolearn=disabled version=3.4.2 X-Scan-Signature: a350ae07b5350cdad28cef237d2e7179 X-Rspamd-Queue-Id: 49ZCH46q2Yz4ZxM X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of ronald-lists@klop.ws designates 195.190.28.88 as permitted sender) smtp.mailfrom=ronald-lists@klop.ws X-Spamd-Result: default: False [-2.27 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-0.94)[-0.944]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.190.28.64/27:c]; NEURAL_HAM_LONG(-1.02)[-1.023]; MIME_GOOD(-0.10)[text/plain]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_NA(0.00)[klop.ws]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RWL_MAILSPIKE_VERYGOOD(0.00)[195.190.28.88:from]; NEURAL_HAM_SHORT(-0.50)[-0.502]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[195.190.28.88:from]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:47172, ipnet:195.190.28.0/24, country:NL]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 May 2020 20:10:41 -0000 On Sat, 23 May 2020 21:44:03 +0200, Miroslav Lachman <000.fbsd@quip.cz> wrote: > I upgraded my old desktop computer few month ago from old 10.4 based > PC-BSD to stock FreeBSD 11.3. It uses single 2TB HDD 7200rpm. > My problem is that upgraded version is really slow and some desktop > applications are very lagging (playing multimedia is interrupted for a > fraction of seconds) when there is heavy filesystem activity. > > I am using zfsnap2 for taking snapshots periodically and when there is > enough snapshots zfs destroy is called. In this time the user experience > is terrible. Starting new application like browser or even something > much smaller takes minutes. The old version based on FreeBSD 10.4 > behaves much better. I used the old version for years and never have > problems with interrupted multimedia playback. > > Are there some sysctls to tune to get better desktop interactivity in > heavy filesystem operations like zfs destroy, pkg check or other "find" > periodic scripts? > > Kind regards > Miroslav Lachman How full is the disk? ZFS has poor performance if the disk becomes full. What is in /etc/sysctl.conf and /boot/loader.conf? And did you try to boot 12.1 and did it have the same behavious? Regards, Ronald. From owner-freebsd-fs@freebsd.org Sat May 30 21:18:07 2020 Return-Path: Delivered-To: freebsd-fs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 30ED42F7279; Sat, 30 May 2020 21:18:07 +0000 (UTC) (envelope-from claudiu.vasadi@gmail.com) Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49ZDmt2Ngtz3SV0; Sat, 30 May 2020 21:18:05 +0000 (UTC) (envelope-from claudiu.vasadi@gmail.com) Received: by mail-lf1-x12c.google.com with SMTP id 202so1730539lfe.5; Sat, 30 May 2020 14:18:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tjD08vNkEEdkXy7y99Jvd834HyUY3tmSQJ97DBJ/iXk=; b=TAiQZKEdfd+yM/K0L7L2w6f7YTXhR+v1HesBMzxBvAVomtcBufgeDG0JniElCMiDhE VwBr0O/2J2TE9XLXvuuWOa8byu6XC5qs+eQwm0muxypC80xNLAJgAVRZ7T9ya/d6B/bH V1wfv0x7cadQbJSy71qT6tsw9+CJMuWDbA02lZW+b4cs003NKbONUY46Cg2lDNnOyoY/ AdxnAE83jE9IOIQept2muDSBPxI8hmwMqZfqkulfb7ZXGJYuKz80LuK9dSO1gFjOPboL CwFMi4bQ+wBlT7MoIuloEMWjqs983Jc4B1NO3OItDUU0lzDG9XqkbVi5YT3cJUYv0JlL eAaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tjD08vNkEEdkXy7y99Jvd834HyUY3tmSQJ97DBJ/iXk=; b=CAG44ASg1TTPP9gD8ywvA50QxvZ9uuDsBo51roHu1L/sgR6mIBr5Km2MX3zwsh7Bf6 szIonQAaiZDpTF4WlWbYAKdvOQovUrr809rD0VkyoYJVsUG0+FD78OPoJ0m9NbKCfsY4 4GB2vRBFX9NzoxJWCQikAYcY5S/FDWM/n36XDjBEjl6vur17vk8EOOfTqic3oP/VS/Yk iA8pXISPHBI+zs+qOcrBp3hMXHBZ+iPDhRptz2NlnTjXZJIMOFKhDiwzO/VXoEORjGe7 C6FmUGljY/qZuWN3w17nBSR2907CSisFbe122JWcpZHzj+PBr6X6VrRCsym0Ebphag8h y0Jg== X-Gm-Message-State: AOAM533TLKd4FYNfkavvhmnpQnHs2oqqCj6E1rMFh+EbisOxxeEesKB/ V7k5fD7Jnw7FP2QQnNC2jpk0fnw6b04T92lpf8Y= X-Google-Smtp-Source: ABdhPJzCcPKQx6OGGHIFPDtVtDb08loCX5dyWNvpc8qhmup7A3fSk4EaZpCxoa1LHQRoxQuaq1/K1l6l3LYrm0DYyro= X-Received: by 2002:a19:986:: with SMTP id 128mr7571116lfj.141.1590873484214; Sat, 30 May 2020 14:18:04 -0700 (PDT) MIME-Version: 1.0 References: <20200529143703.GA78062@lordsith.net> In-Reply-To: From: claudiu vasadi Date: Sat, 30 May 2020 23:17:53 +0200 Message-ID: Subject: Re: imported zpool not persistent across reboot To: Ronald Klop Cc: freebsd-fs , marco , freebsd-current@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 49ZDmt2Ngtz3SV0 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=TAiQZKEd; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of claudiuvasadi@gmail.com designates 2a00:1450:4864:20::12c as permitted sender) smtp.mailfrom=claudiuvasadi@gmail.com X-Spamd-Result: default: False [-3.91 / 15.00]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.01)[-1.007]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.01)[-1.014]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::12c:from]; NEURAL_HAM_SHORT(-0.89)[-0.886]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 May 2020 21:18:07 -0000 zpool set cachefile=/boot/zfs/zpool.cache On Sat, May 30, 2020 at 10:05 PM Ronald Klop wrote: > > On Fri, 29 May 2020 16:37:03 +0200, marco wrote: > > > I'm on -CURRENT (r361307) and using base ZFS. > > I imported a zpool that was created on SmartOS with some unsupported > > feature flags so had to import it read-only. > > > What was the exact command you used to import the pool? > > Regards, > Ronald. > > > > > > [~] zpool get all backup > > NAME PROPERTY > > VALUE SOURCE > > backup size > > 1.36T - > > backup capacity > > 9% - > > backup altroot > > - default > > backup health > > ONLINE - > > backup guid > > 11841096011823395086 default > > backup version > > - default > > backup bootfs > > - default > > backup delegation > > on default > > backup autoreplace > > off default > > backup cachefile > > - default > > backup failmode > > wait default > > backup listsnapshots > > off default > > backup autoexpand > > off default > > backup dedupditto > > 0 default > > backup dedupratio > > 1.00x - > > backup free > > 1.24T - > > backup allocated > > 126G - > > backup readonly > > on - > > backup comment > > - default > > backup expandsize > > - - > > backup freeing > > 0 default > > backup fragmentation > > 0% - > > backup leaked > > 0 default > > backup bootsize > > - default > > backup checkpoint > > - - > > backup multihost > > off default > > backup feature@async_destroy > > enabled local > > backup feature@empty_bpobj > > active local > > backup feature@lz4_compress > > active local > > backup feature@multi_vdev_crash_dump > > enabled local > > backup feature@spacemap_histogram > > active local > > backup feature@enabled_txg > > active local > > backup feature@hole_birth > > active local > > backup feature@extensible_dataset > > active local > > backup feature@embedded_data > > active local > > backup feature@bookmarks > > enabled local > > backup feature@filesystem_limits > > enabled local > > backup feature@large_blocks > > enabled local > > backup feature@large_dnode > > enabled local > > backup feature@sha512 > > enabled local > > backup feature@skein > > enabled local > > backup feature@device_removal > > enabled local > > backup feature@obsolete_counts > > enabled local > > backup feature@zpool_checkpoint > > enabled local > > backup feature@spacemap_v2 > > active local > > backup feature@allocation_classes > > enabled local > > backup unsupported@com.datto:bookmark_v2 > > inactive local > > backup unsupported@org.illumos:edonr > > inactive local > > backup unsupported@com.datto:encryption > > inactive local > > backup unsupported@com.datto:resilver_defer > > inactive local > > backup unsupported@org.zfsonlinux:userobj_accounting > > readonly local > > backup unsupported@org.zfsonlinux:project_quota > > readonly local > > backup unsupported@com.delphix:log_spacemap > > readonly local > > > > Whenever I reboot that zpool is no longer imported. > > > > I've checked /boot/defaults/loader.conf, /etc/defaults/rc.conf but > > haven't seen any keys that I need to make the imported pool persistent. > > I've read something on the cachefile=path setting in zpool(8) but as one > > can see it's set to default > > I guess I must've overlooked something but haven't found it so far. > > > > thanks > _______________________________________________ > freebsd-fs@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" -- Best regards, Claudiu Vasadi From owner-freebsd-fs@freebsd.org Sat May 30 21:30:00 2020 Return-Path: Delivered-To: freebsd-fs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B2EA62F7A14 for ; Sat, 30 May 2020 21:30:00 +0000 (UTC) (envelope-from SRS0=tAPM=7M=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49ZF2b5Hc5z3TJf for ; Sat, 30 May 2020 21:29:59 +0000 (UTC) (envelope-from SRS0=tAPM=7M=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 075CA28416; Sat, 30 May 2020 23:29:51 +0200 (CEST) Received: from illbsd.quip.test (ip-62-24-92-232.net.upcbroadband.cz [62.24.92.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id D585528423; Sat, 30 May 2020 23:29:49 +0200 (CEST) Subject: Re: ZFS on FreeBSD 11.3 slower than 10.4 To: Ronald Klop , "freebsd-fs@freebsd.org" References: <1ff455a5-d111-86fa-ceb1-1021b6d9a5b6@quip.cz> From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <8c64cc48-7d79-7591-8bb5-67f3127463b7@quip.cz> Date: Sat, 30 May 2020 23:29:48 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49ZF2b5Hc5z3TJf X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of SRS0=tAPM=7M=quip.cz=000.fbsd@elsa.codelab.cz has no SPF policy when checking 94.124.105.4) smtp.mailfrom=SRS0=tAPM=7M=quip.cz=000.fbsd@elsa.codelab.cz X-Spamd-Result: default: False [-0.07 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_LONG(-0.74)[-0.742]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[quip.cz]; AUTH_NA(1.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.05)[-0.052]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-0.48)[-0.476]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[000.fbsd@quip.cz,SRS0=tAPM=7M=quip.cz=000.fbsd@elsa.codelab.cz]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ]; MIME_TRACE(0.00)[0:+]; FROM_NEQ_ENVFROM(0.00)[000.fbsd@quip.cz, SRS0=tAPM=7M=quip.cz=000.fbsd@elsa.codelab.cz] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 May 2020 21:30:00 -0000 On 2020-05-30 22:10, Ronald Klop wrote: > On Sat, 23 May 2020 21:44:03 +0200, Miroslav Lachman <000.fbsd@quip.cz> > wrote: > >> I upgraded my old desktop computer few month ago from old 10.4 based >> PC-BSD to stock FreeBSD 11.3. It uses single 2TB HDD 7200rpm. >> My problem is that upgraded version is really slow and some desktop >> applications are very lagging (playing multimedia is interrupted for a >> fraction of seconds) when there is heavy filesystem activity. >> >> I am using zfsnap2 for taking snapshots periodically and when there is >> enough snapshots zfs destroy is called. In this time the user >> experience is terrible. Starting new application like browser or even >> something much smaller takes minutes. The old version based on FreeBSD >> 10.4 behaves much better. I used the old version for years and never >> have problems with interrupted multimedia playback. >> >> Are there some sysctls to tune to get better desktop interactivity in >> heavy filesystem operations like zfs destroy, pkg check or other >> "find" periodic scripts? > How full is the disk? ZFS has poor performance if the disk becomes full. > What is in /etc/sysctl.conf and /boot/loader.conf? > And did you try to boot 12.1 and did it have the same behavious? It is currently 77% full. But it is the same pool with the same capacity as with 10.4. I didn't try 12.1, I need to stay on 11.3 for now. ## loader.conf nvidia_load="YES" drm_load="YES" drm2_load="YES" iicbus_load="YES" vboxdrv_load="YES" crypto_load="YES" aesni_load="YES" geom_eli_load="YES" vfs.zfs.arc_max="1024M" zfs_load="YES" iicbus_load="YES" ## sysctl.conf kern.coredump=0 kern.maxfiles=49312 vfs.usermount=1 security.jail.allow_raw_sockets=1 security.jail.sysvipc_allowed=1 security.jail.mount_allowed=1 security.jail.chflags_allowed=1 hw.syscons.bell=0 kern.sched.preempt_thresh=224 kern.ipc.shm_allow_removed=1 kern.shutdown.poweroff_delay=500 kern.bootfile=/boot/kernel/kernel hw.usb.no_shutdown_wait=1 hw.snd.default_unit=3 kern.sched.interact=10 vfs.aio.max_aio_per_proc=256 vfs.aio.max_aio_queue=8192 vfs.aio.max_aio_queue_per_proc=1024 vfs.aio.max_buf_aio=64 net.local.stream.recvspace=65536 net.local.stream.sendspace=65536 loader.conf and sysctl.conf are the same for 10.4 and 11.3 but 11.3 is much much slower when it comes to heavy IO like "find" daily periodic scripts, zfs destroy, starting new applications etc. Kind regards Miroslav Lachman From owner-freebsd-fs@freebsd.org Sat May 30 23:03:03 2020 Return-Path: Delivered-To: freebsd-fs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 975312FA1FA for ; Sat, 30 May 2020 23:03:03 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49ZH5y4sZdz3dLG for ; Sat, 30 May 2020 23:03:02 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: by mail-wm1-x342.google.com with SMTP id h4so7228824wmb.4 for ; Sat, 30 May 2020 16:03:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=multiplay-co-uk.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=8oReX/0cgCpkgBUMtGyOj0WqBeRtvGIPX4+NGO6wirw=; b=YrNwj0NnMicIQyzTWNCCc7tF8kyyG0m68zSE2xTPA00ypq/w3GkNBWo79w2sR9fNwQ z+rlOJSQ83vR1mHboIbuHQri7pKIy+C4qlqH+9pvgWwVBlvE4VOiYPSUZY9OS0kEDz5n /yc1dmzYVPwLzSRVMFKXfQyJQv6bZYmfms6q1onIhVCMeft3JMvshN0XwGcC3cCw0pGb M/calaTt9/eNtL0UPthkYZdpRci1nD2Exa3cVjTCwYaoT/bFenYzkh4CxV9qLT/ObjC/ fRoZ1S6uJzQjviNDe070rRCNCcd0sYSlOExSr6oHlKVy+E9bcNcOHbfIQ4OfqdokoIaU N4Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=8oReX/0cgCpkgBUMtGyOj0WqBeRtvGIPX4+NGO6wirw=; b=a5krySJL0engHBKJe3AXD1uLribQBd2HE8Vah4bdL+pBklkpHx+NVz5tO9zTVSy1Fq LHM6mm0j0jtwVSSnEMECNSRtnpTZRFt++Sg4Eqdvfk8wwSn/EtYdgz2ffnnB3tjf1Scn n1yWt6fWIcsgAZKmMxeS0wwy30NNdgFKQELWXxNYtZMzwChcOOgZORII+D0bipbbhLCk 0fqYj0wwymjNPB5c7m8ixL6yhKQO+vJgBzTrKHI4fP9NPDSZ+92qHMbKpASkUs7OGWoe 1QfcwM08vFytwFjGk2qqvIMQ7YVDpnSaCdfCB4FfBt5+qYXpI9MceyGiC+QGbgPJJoNK T3sw== X-Gm-Message-State: AOAM531jNRf33CyDfxStEFqT+nHuANaV444+Q0hq3CjO9oB2jetn1gTY j+h24tKWsvlqRI/rYVvGSdH+dBs+p1Jllo4L X-Google-Smtp-Source: ABdhPJwnZrh/fYiBtgSnyNrHOFVU3xREDXjDe7Duue9NJuYr095thCC46bgmS+OBTJTUEwoffntlVg== X-Received: by 2002:a1c:5445:: with SMTP id p5mr6947231wmi.115.1590879780511; Sat, 30 May 2020 16:03:00 -0700 (PDT) Received: from [10.44.128.75] ([193.117.175.106]) by smtp.gmail.com with ESMTPSA id w10sm15450623wrp.16.2020.05.30.16.02.59 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 30 May 2020 16:02:59 -0700 (PDT) Subject: Re: ZFS on FreeBSD 11.3 slower than 10.4 To: freebsd-fs@freebsd.org References: <1ff455a5-d111-86fa-ceb1-1021b6d9a5b6@quip.cz> <8c64cc48-7d79-7591-8bb5-67f3127463b7@quip.cz> From: Steven Hartland Message-ID: Date: Sun, 31 May 2020 00:02:59 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <8c64cc48-7d79-7591-8bb5-67f3127463b7@quip.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB X-Rspamd-Queue-Id: 49ZH5y4sZdz3dLG X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=multiplay-co-uk.20150623.gappssmtp.com header.s=20150623 header.b=YrNwj0Nn; dmarc=pass (policy=none) header.from=multiplay.co.uk; spf=pass (mx1.freebsd.org: domain of killing@multiplay.co.uk designates 2a00:1450:4864:20::342 as permitted sender) smtp.mailfrom=killing@multiplay.co.uk X-Spamd-Result: default: False [-3.21 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[multiplay-co-uk.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-1.03)[-1.025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.99)[-0.991]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[multiplay-co-uk.20150623.gappssmtp.com:+]; DMARC_POLICY_ALLOW(-0.50)[multiplay.co.uk,none]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::342:from]; NEURAL_HAM_SHORT(-0.19)[-0.190]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 May 2020 23:03:03 -0000 Whats the state of your disks when the slowdown happens, do they look saturated at a?? On 30/05/2020 22:29, Miroslav Lachman wrote: > On 2020-05-30 22:10, Ronald Klop wrote: >> On Sat, 23 May 2020 21:44:03 +0200, Miroslav Lachman >> <000.fbsd@quip.cz> wrote: >> >>> I upgraded my old desktop computer few month ago from old 10.4 based >>> PC-BSD to stock FreeBSD 11.3. It uses single 2TB HDD 7200rpm. >>> My problem is that upgraded version is really slow and some desktop >>> applications are very lagging (playing multimedia is interrupted for >>> a fraction of seconds) when there is heavy filesystem activity. >>> >>> I am using zfsnap2 for taking snapshots periodically and when there >>> is enough snapshots zfs destroy is called. In this time the user >>> experience is terrible. Starting new application like browser or >>> even something much smaller takes minutes. The old version based on >>> FreeBSD 10.4 behaves much better. I used the old version for years >>> and never have problems with interrupted multimedia playback. >>> >>> Are there some sysctls to tune to get better desktop interactivity >>> in heavy filesystem operations like zfs destroy, pkg check or other >>> "find" periodic scripts? > > >> How full is the disk? ZFS has poor performance if the disk becomes full. >> What is in /etc/sysctl.conf and /boot/loader.conf? >> And did you try to boot 12.1 and did it have the same behavious? > > It is currently 77% full. But it is the same pool with the same > capacity as with 10.4. > > I didn't try 12.1, I need to stay on 11.3 for now. > > ## loader.conf > > nvidia_load="YES" > drm_load="YES" > drm2_load="YES" > iicbus_load="YES" > vboxdrv_load="YES" > crypto_load="YES" > aesni_load="YES" > geom_eli_load="YES" > vfs.zfs.arc_max="1024M" > zfs_load="YES" > iicbus_load="YES" > > ## sysctl.conf > > kern.coredump=0 > kern.maxfiles=49312 > vfs.usermount=1 > security.jail.allow_raw_sockets=1 > security.jail.sysvipc_allowed=1 > security.jail.mount_allowed=1 > security.jail.chflags_allowed=1 > hw.syscons.bell=0 > kern.sched.preempt_thresh=224 > kern.ipc.shm_allow_removed=1 > kern.shutdown.poweroff_delay=500 > kern.bootfile=/boot/kernel/kernel > hw.usb.no_shutdown_wait=1 > hw.snd.default_unit=3 > kern.sched.interact=10 > vfs.aio.max_aio_per_proc=256 > vfs.aio.max_aio_queue=8192 > vfs.aio.max_aio_queue_per_proc=1024 > vfs.aio.max_buf_aio=64 > net.local.stream.recvspace=65536 > net.local.stream.sendspace=65536 > > > loader.conf and sysctl.conf are the same for 10.4 and 11.3 but 11.3 is > much much slower when it comes to heavy IO like "find" daily periodic > scripts, zfs destroy, starting new applications etc. > > > Kind regards > Miroslav Lachman > _______________________________________________ > freebsd-fs@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"