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

All your general support questions for OpenZFS on OS X.

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

Postby abc123 » Thu Jan 06, 2022 1:19 am

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.
abc123
 
Posts: 63
Joined: Mon Jan 30, 2017 11:46 pm

Re: kstat.zfs.misc.dbufs.dbufs causes sysctl -a to be very s

Postby lundman » Thu Jan 06, 2022 2:06 am

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.
User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: kstat.zfs.misc.dbufs.dbufs causes sysctl -a to be very s

Postby abc123 » Thu Jan 06, 2022 5:48 am

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).
abc123
 
Posts: 63
Joined: Mon Jan 30, 2017 11:46 pm

Re: kstat.zfs.misc.dbufs.dbufs causes sysctl -a to be very s

Postby lundman » Thu Jan 06, 2022 6:49 pm

although, we could ironically add another sysctl for it, like a

KSTAT.ZFS.MISC.DBUFS.DBUFS.verbose: 0

sort of angle.
User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: kstat.zfs.misc.dbufs.dbufs causes sysctl -a to be very s

Postby abc123 » Fri Jan 07, 2022 11:19 pm

I was going to suggest a separate sysctl for controlling them but thought that was maybe a step too far!
abc123
 
Posts: 63
Joined: Mon Jan 30, 2017 11:46 pm


Return to General Help

Who is online

Users browsing this forum: No registered users and 23 guests