NetBSD Problem Report #49266
From mogget@macaran.localdomain Thu Oct 9 20:15:00 2014
Return-Path: <mogget@macaran.localdomain>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 69A5BA664E
for <gnats-bugs@gnats.NetBSD.org>; Thu, 9 Oct 2014 20:15:00 +0000 (UTC)
Message-Id: <20141009185932.E533D6E260@macaran.localdomain>
Date: Thu, 9 Oct 2014 14:59:32 -0400 (EDT)
From: dholland@eecs.harvard.edu
Reply-To: dholland@eecs.harvard.edu
To: gnats-bugs@NetBSD.org
Subject: sysctl(8) can't print uvmexp
X-Send-Pr-Version: 3.95
>Number: 49266
>Category: bin
>Synopsis: sysctl(8) can't print uvmexp
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 09 20:20:00 +0000 2014
>Originator: David A. Holland
>Release: NetBSD 7.99.1 (20140819)
>Organization:
>Environment:
System: NetBSD macaran 7.99.1 NetBSD 7.99.1 (MACARAN) #21: Tue Aug 19 20:08:43 EDT 2014 dholland@macaran:/usr/src/sys/arch/amd64/compile/MACARAN amd64
Architecture: x86_64
Machine: amd64
>Description:
% sysctl vm.uvmexp
sysctl: vm.uvmexp: use 'vmstat' or 'systat' to view this information
% sysctl vm.uvmexp2
sysctl: vm.uvmexp2: use 'vmstat' or 'systat' to view this information
%
This is lame.
Also, if trying to get stuff from scripts the (semi-)uniform output of
sysctl(8) is often preferable over other random tools.
>How-To-Repeat:
as above
>Fix:
add some printing code
It's possible that sysctl(8) should be able to handle individual
fields of uvmexp as three-level MIBs, e.g.
% sysctl vm.uvmexp2.active
vm.uvmexp2.active = 447806
If so (it seems like a good idea to me, anyway) there's a question as
to whether this should be an emulation inside sysctl(8) or done
kernel-side.
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.