OpenZFS and L2ARC

Stefan Esser se at freebsd.org
Thu Sep 10 07:09:36 UTC 2020


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20200910/718b8a93/attachment.sig>


More information about the freebsd-current mailing list