NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/49266: sysctl(8) can't print uvmexp

>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)
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

% 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.

as above


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 = 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

Home | Main Index | Thread Index | Old Index