HomeFreeBSD

FreeBSD: Skip RAW kstat sysctls by default

Description

FreeBSD: Skip RAW kstat sysctls by default

These kstats are often expensive to compute so we want to avoid them
unless specifically requested.

The following kstats are affected by this change:

kstat.zfs.${pool}.multihost
kstat.zfs.${pool}.misc.state
kstat.zfs.${pool}.txgs
kstat.zfs.misc.fletcher_4_bench
kstat.zfs.misc.vdev_raidz_bench
kstat.zfs.misc.dbufs
kstat.zfs.misc.dbgmsg

In FreeBSD 13, sysctl(8) has been updated to still list the
names/description/type of skipped sysctls so they are still
discoverable.

Reviewed-by: Allan Jude <allan@klarasystems.com>
Reviewed-by: Mateusz Guzik <mjguzik@gmail.com>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #11099

Details

Provenance
freqlabsAuthored on Oct 26 2020, 9:34 PM
GitHub <noreply@github.com>Committed on Oct 26 2020, 9:34 PM
Parents
rG01a65c5861fb: FreeBSD: catch up with 1300123 version bump
Branches
Unknown
Tags
Unknown