From owner-freebsd-current@freebsd.org Thu Sep 10 07:09:36 2020 Return-Path: Delivered-To: freebsd-current@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 ACB183ECE76; Thu, 10 Sep 2020 07:09:36 +0000 (UTC) (envelope-from se@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bn94J3JfHz4Z1d; Thu, 10 Sep 2020 07:09:36 +0000 (UTC) (envelope-from se@freebsd.org) Received: from Stefans-MacBook-Pro-449.fritz.box (p200300cd5f07a50069dad6b59fcbe266.dip0.t-ipconnect.de [IPv6:2003:cd:5f07:a500:69da:d6b5:9fcb:e266]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: se/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 49AAC1746A; Thu, 10 Sep 2020 07:09:35 +0000 (UTC) (envelope-from se@freebsd.org) To: John Baldwin Cc: Matthew Macy , Allan Jude , Graham Perrin , FreeBSD CURRENT , freebsd-fs@freebsd.org References: <7d54dc30-b8b1-a127-ec39-9fb759c8a55d@gmail.com> <712aa75b-b8ce-1eb0-ea0e-db1c2b7cc0c2@freebsd.org> <1245cf2f-7e70-df12-a69f-11ff6f9ed5ac@FreeBSD.org> From: Stefan Esser Subject: Re: OpenZFS and L2ARC Message-ID: <4cc21896-b7b7-e126-c0a3-f584d1c81533@freebsd.org> Date: Thu, 10 Sep 2020 09:09:32 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.2.1 MIME-Version: 1.0 In-Reply-To: <1245cf2f-7e70-df12-a69f-11ff6f9ed5ac@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="est1qLY507OfMAyXLM6UQLB79MaCG4LW7" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Sep 2020 07:09:36 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --est1qLY507OfMAyXLM6UQLB79MaCG4LW7 Content-Type: multipart/mixed; boundary="u1nIn2YbKjACPxZOQ3qF8KiSY91mcjWJt"; protected-headers="v1" From: Stefan Esser To: John Baldwin Cc: Matthew Macy , Allan Jude , Graham Perrin , FreeBSD CURRENT , freebsd-fs@freebsd.org Message-ID: <4cc21896-b7b7-e126-c0a3-f584d1c81533@freebsd.org> Subject: Re: OpenZFS and L2ARC References: <7d54dc30-b8b1-a127-ec39-9fb759c8a55d@gmail.com> <712aa75b-b8ce-1eb0-ea0e-db1c2b7cc0c2@freebsd.org> <1245cf2f-7e70-df12-a69f-11ff6f9ed5ac@FreeBSD.org> In-Reply-To: <1245cf2f-7e70-df12-a69f-11ff6f9ed5ac@FreeBSD.org> --u1nIn2YbKjACPxZOQ3qF8KiSY91mcjWJt Content-Type: multipart/mixed; boundary="------------B37FE6F29A17D6902E01BD5F" Content-Language: en-US This is a multi-part message in MIME format. --------------B37FE6F29A17D6902E01BD5F Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable Am 09.09.20 um 21:26 schrieb John Baldwin:> A simple fix might be to use = CTLFLAG_SKIP so that you only invoke the > expensive sysctls if you request them by name, but not if you request > the 'kstat.zfs' tree. I have looked at /sys/contrib/openzfs/module/zfs/dbuf.c where I had assumed that the "kstat.zfs.misc.dbufs" sysctl node was created, but did not spot the location on a quick search. The kstat nodes are created by kstat_install() and AFAICT, there is no parameter that directly allows to create the sysctl node with CTLFLAG_SKIP, currently. This long delay affects sysctl -a and I'd really hope that it can be fixed in a way that suppresses this large debug output unless it is specifically requested by passing the full node name ... Regards, STefan --------------B37FE6F29A17D6902E01BD5F-- --u1nIn2YbKjACPxZOQ3qF8KiSY91mcjWJt-- --est1qLY507OfMAyXLM6UQLB79MaCG4LW7 Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFqEEo3HqZZwL7MgrcVMTR+u171r99UQFAl9Z0SwFAwAAAAAACgkQR+u171r99UQ9 Gwf9Fs5doLd5Zk0tTIGPWgwq68NkyVcyRLtG4p03F4jv9SWYR+WkHNQPdrf00liKKiheHkpPjDwQ 3AwBDlWDHbU4LzC3Hp03yM2QzSwezWei/Uf8OFKaMGGxl3Z14tJ1BnjI9SXDeTPs0O0Axj3LuQKS 0cfLLpmOWTiKkJSQ6ts4GYLCwvd9ulEwZ8KXKWkwVZ8vL9PfqNRLjFprv0u6BRcgxALBAhMdCbsy JiaImX63109vg/aH3TxkpIWKXZpW08nNTJYBEB3Mv9zlLW+Umg4J39F7PCXrW7gGV2zEbScWDG1u MwNxUYzELpz+KewBgG3oypj/FJoN7dAUH8kOiZ2PyQ== =zK1s -----END PGP SIGNATURE----- --est1qLY507OfMAyXLM6UQLB79MaCG4LW7--