From owner-freebsd-current@freebsd.org Fri Jul 27 03:57:37 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 28E41105F98A for ; Fri, 27 Jul 2018 03:57:37 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail06.adl6.internode.on.net (ipmail06.adl6.internode.on.net [150.101.137.145]) by mx1.freebsd.org (Postfix) with ESMTP id 6394E82B98 for ; Fri, 27 Jul 2018 03:57:35 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from unknown (HELO leader.local) ([118.211.27.182]) by ipmail06.adl6.internode.on.net with ESMTP; 27 Jul 2018 13:22:24 +0930 To: FreeBSD Current From: Shane Ambler Subject: Changes to sysctl values Message-ID: Date: Fri, 27 Jul 2018 13:22:21 +0930 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-AU Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jul 2018 03:57:37 -0000 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. I have 12-current running in a bhyve on an 11-stable host. Is there a recent change to sysctl calls that would cause this? or is this bhyve related? On 11-stable I get long int values that I expect Python 2.7.15 (default, Jun 8 2018, 08:54:38) [GCC 4.2.1 Compatible FreeBSD Clang 6.0.0 (tags/RELEASE_600/final 326565)] on freebsd11 Type "help", "copyright", "credits" or "license" for more information. >>> sysctl.filter('vm.stats.vm.v_wire_count')[0].value 1061486L >>> sysctl.filter('vm.stats.vm.v_free_count')[0].value 77217L On 12-current I get the same sysctls as a bytearray Python 2.7.15 (default, Jul 26 2018, 10:32:28) [GCC 4.2.1 Compatible FreeBSD Clang 6.0.1 (tags/RELEASE_601/final 335540)] on freebsd12 Type "help", "copyright", "credits" or "license" for more information. >>> sysctl.filter('vm.stats.vm.v_wire_count')[0].value bytearray(b"\'R\x12\x00") >>> sysctl.filter('vm.stats.vm.v_free_count')[0].value bytearray(b'\x06\\\x08\x00') -- FreeBSD - the place to B...Software Developing Shane Ambler