Changes to sysctl values
Conrad Meyer
cem at freebsd.org
Fri Jul 27 05:37:53 UTC 2018
On Thu, Jul 26, 2018 at 8:52 PM, Shane Ambler <FreeBSD at shaneware.biz> wrote:
> I use devel/py-sysctl in some scripts to get values, using a recent
> 12-current (r336728) I see at least two values that get a different
> value type than on 11-stable. Same version of python and port.
> ...
Hi Shane,
At some point, new sysctl types were added to the kernel, including
CTLTYPE_U32. As part of the conversion to the counter(9) API, it
seems the v_wire_count (and other vm.stats sysctls) changed to U32
type. py-sysctl lacks support for CTLTYPE_U32 and defaults to giving
you a bytearray for unrecognized types.
Best,
Conrad
More information about the freebsd-current
mailing list