Page 1 of 1
kstat.zfs.misc.dbufs.dbufs causes sysctl -a to be very slow

Posted:
Thu Jan 06, 2022 1:19 am
by abc123
The output of sysctl -a hangs on my system for seconds when it gets to printing this kstat. I've found this change
https://github.com/openzfs/zfs/pull/11099/files for fbsd which mentions skipping these. Should these be skipped for release builds of o3x? Not sure if these are just intended for debugging purposes or normal use.
This is with 2.1.0 on Monterey x64.
Re: kstat.zfs.misc.dbufs.dbufs causes sysctl -a to be very s

Posted:
Thu Jan 06, 2022 2:06 am
by lundman
Yeah there are two huge ones - alas since we don't have a way to teach sysctl new tricks, we can only print it, or skip it entirely. If it is going to be an issue
we will just have to remove it.
Re: kstat.zfs.misc.dbufs.dbufs causes sysctl -a to be very s

Posted:
Thu Jan 06, 2022 5:48 am
by abc123
Not sure what others think, but for me, disabling them would be the most useful (but then I don't look at kstats that much but do use sysctl -a occasionally).
Re: kstat.zfs.misc.dbufs.dbufs causes sysctl -a to be very s

Posted:
Thu Jan 06, 2022 6:49 pm
by lundman
although, we could ironically add another sysctl for it, like a
KSTAT.ZFS.MISC.DBUFS.DBUFS.verbose: 0
sort of angle.
Re: kstat.zfs.misc.dbufs.dbufs causes sysctl -a to be very s

Posted:
Fri Jan 07, 2022 11:19 pm
by abc123
I was going to suggest a separate sysctl for controlling them but thought that was maybe a step too far!