From owner-freebsd-current@freebsd.org Fri Jul 27 05:37:53 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 04423106154F for ; Fri, 27 Jul 2018 05:37:53 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-io0-f177.google.com (mail-io0-f177.google.com [209.85.223.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8565C858CC for ; Fri, 27 Jul 2018 05:37:52 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-io0-f177.google.com with SMTP id q9-v6so3264374ioj.8 for ; Thu, 26 Jul 2018 22:37:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=5rk9VA2k7OwGxfzsBAakHnO7jIx/DPT+et7oX5hh+9Y=; b=BkOAnPVZF3mvX0X9FirHaSibdSR3RaoOuW0upjpeOBinBwIJ2EdfDMYBfl5yTw7yQO wR8fUjJwpxfHpglLRE94cFmlGPfCfkhr0GpB/SO5gPI1UvqNXQ0o4oIPFoZ/aAQxVHFe LeYgq6vtVBz3Ou82WJOTrvDD7Z+FWcAXIkSkSzCbF0iuI5gE5lK2WltzYmW9MVaxblXb mkzeqnY0HnEPDP/RF2Lzk8lEvQvG+6Mfk/e3FFY0FtXK4FXWQXJ/hIfpUrsFbgphObX4 d+70ICqXBYmKy4jw5awcUKFpxpLol9GA5ncTiy7ykEYBslM17oltS6GW7sJKh3A1F3nc pkOQ== X-Gm-Message-State: AOUpUlEg1scJ0nWjz/Z3gCnnaRSAhPjf4l1Xz5URrXfQVv3maHPDFtRw QGepSqN7Uah9+LoqWWeL7/sEtlwE X-Google-Smtp-Source: AAOMgpdE1JE050XA+CCwACq3l3FBVVUABOyYYL7A8axxcDWR1j4GQrqy8uZyV91nOS0Phk/fy6fvJQ== X-Received: by 2002:a5e:950a:: with SMTP id r10-v6mr4067510ioj.241.1532668096463; Thu, 26 Jul 2018 22:08:16 -0700 (PDT) Received: from mail-it0-f42.google.com (mail-it0-f42.google.com. [209.85.214.42]) by smtp.gmail.com with ESMTPSA id m10-v6sm1022844ioj.22.2018.07.26.22.08.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jul 2018 22:08:16 -0700 (PDT) Received: by mail-it0-f42.google.com with SMTP id g141-v6so5808212ita.4 for ; Thu, 26 Jul 2018 22:08:15 -0700 (PDT) X-Received: by 2002:a24:a308:: with SMTP id p8-v6mr4268571ite.53.1532668095783; Thu, 26 Jul 2018 22:08:15 -0700 (PDT) MIME-Version: 1.0 Reply-To: cem@freebsd.org Received: by 2002:a02:7e0a:0:0:0:0:0 with HTTP; Thu, 26 Jul 2018 22:08:15 -0700 (PDT) In-Reply-To: References: From: Conrad Meyer Date: Thu, 26 Jul 2018 22:08:15 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Changes to sysctl values To: Shane Ambler Cc: FreeBSD Current Content-Type: text/plain; charset="UTF-8" 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 05:37:53 -0000 On Thu, Jul 26, 2018 at 8:52 PM, Shane Ambler 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