From owner-freebsd-fs@freebsd.org Mon Oct 7 18:42:39 2019 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 4D28E136765 for ; Mon, 7 Oct 2019 18:42:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46n8VR1MS9z4Pny for ; Mon, 7 Oct 2019 18:42:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 2E267136764; Mon, 7 Oct 2019 18:42:39 +0000 (UTC) Delivered-To: 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 2CE9E136763 for ; Mon, 7 Oct 2019 18:42:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46n8VR0CXPz4Pnx for ; Mon, 7 Oct 2019 18:42:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DEF071ADEC for ; Mon, 7 Oct 2019 18:42:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x97IgcHr065282 for ; Mon, 7 Oct 2019 18:42:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x97IgcG1065280 for fs@FreeBSD.org; Mon, 7 Oct 2019 18:42:38 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 241083] zfs: zpool import seems to probe all snapshots Date: Mon, 07 Oct 2019 18:42:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: d8zNeCFG@aon.at X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2019 18:42:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241083 --- Comment #21 from Martin Birgmeier --- Here are two sets of results: [0]# ll /lib/libzfs.so.3*=20=20=20=20=20=20=20=20=20=20=20=20=20=20 -r--r--r-- 1 root wheel 310944 Oct 6 09:10 /lib/libzfs.so.3 -r--r--r-- 1 root wheel 310944 Dec 30 2018 /lib/libzfs.so.3.ORIG [0]# sysctl vfs.zfs.vol.recursive=20=20=20=20=20=20 vfs.zfs.vol.recursive: 0 [0]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.05s user 1.00s system 9% cpu 11.424 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.06s user 0.79s system 77% cpu 1.106 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.02s user 0.79s system 83% cpu 0.972 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.02s user 0.78s system 108% cpu 0.741 total [1]# sysctl vfs.zfs.vol.recursive=3D1 vfs.zfs.vol.recursive: 0 -> 1 [0]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.03s user 0.98s system 135% cpu 0.747 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.02s user 0.95s system 220% cpu 0.440 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.02s user 0.93s system 249% cpu 0.380 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.05s user 0.92s system 249% cpu 0.387 total [1]# sysctl vfs.zfs.vol.recursive=3D0=20=20=20=20 vfs.zfs.vol.recursive: 1 -> 0 [0]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.02s user 0.83s system 147% cpu 0.581 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.03s user 0.80s system 240% cpu 0.343 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.02s user 0.79s system 103% cpu 0.785 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.02s user 0.79s system 234% cpu 0.342 total [1]#=20 One more observation: If there is medium to high disk load, such imports ta= ke much longer. For example, doing a 'tar cf /dev/null /z/backup/rsync' (with = that directory holding a lot of stuff) in parallel, I get (the pool will give a = read rate of between 50..200 MB/s, and the machine has 16 GB main memory): [0]# sysctl vfs.zfs.vol.recursive=3D0=20=20=20=20 vfs.zfs.vol.recursive: 1 -> 0 [0]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.02s user 0.85s system 12% cpu 6.924 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.02s user 0.81s system 16% cpu 5.110 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.02s user 0.78s system 21% cpu 3.753 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.03s user 0.85s system 11% cpu 7.981 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.02s user 0.81s system 15% cpu 5.366 total [1]# sysctl vfs.zfs.vol.recursive=3D1=20=20=20=20 vfs.zfs.vol.recursive: 0 -> 1 [0]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.03s user 0.98s system 9% cpu 10.749 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.03s user 0.97s system 12% cpu 7.945 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.03s user 0.94s system 28% cpu 3.382 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.04s user 0.95s system 8% cpu 11.164 total [1]# sysctl vfs.zfs.vol.recursive=3D0=20=20=20=20 vfs.zfs.vol.recursive: 1 -> 0 [0]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.03s user 0.81s system 8% cpu 10.134 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.01s user 0.81s system 11% cpu 7.034 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.03s user 0.80s system 9% cpu 8.948 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.03s user 0.78s system 15% cpu 5.380 total [1]# diff =3D(strings /lib/libzfs.so.3.ORIG) =3D(strings /lib/libzfs.so.3) 870a871 > vfs.zfs.vol.recursive 1230a1232 > ZFS::ZVOL 1586a1589 > sysctlbyname 1989d1991 < sysctlbyname 2125,2126d2126 < fff. < ffff. 2128,2130d2127 < l$(I < \$0H < ffffff. 2131a2129,2132 > ffff. > fffff. > fffff. > s0A9 2987a2989 > Lc5=3D [1]#=20 -- Martin --=20 You are receiving this mail because: You are the assignee for the bug.=