Subject: Re: @booted_kernel magic symlink?
To: None <tech-kern@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: tech-kern
Date: 04/27/2006 14:57:51
In article <20060427060901.9986D23402@thoreau.thistledown.com.au>,
Simon Burge  <simonb@wasabisystems.com> wrote:
>"Garrett D'Amore" wrote:
>
>> Go ahead, tell me which ones folks think are most important, or are
>> hardest to change, and *I'll* fix them.  I don't have any particular
>> opinion myself.  "pkill" and "w" should be particularly easy, since I
>> doubt they need anything that "ps" doesn't already use.
>
>Good luck on the "1 hour" thing :-)
>
>Of that list, the following use sysctl and only use the kmem grovelling
>for crash dumps (although "-N /netbsd -M /dev/kmem" or something like
>that works):
>
>	usr.bin/ipcs
>	usr.bin/nfsstat
>	usr.bin/pkill
>	usr.bin/w
>
>For the rest:
>
> - usr.bin/vmstat
>
>    I nearly have vmstat converted to sysctls - I just need to decide
>    how to support machines that haven't switched their interrupt
>    accounting to event counters.

Don't support them :-)

> - sbin/ccdconfig
>
>    Directly pokes around looking for CCD info, should be switched to an
>    ioctl maybe?

Yes.

> - usr.bin/fstat
>
>    Grovels for info about different filesystem types.  Needs some VFS
>    level helpers.

Ok.

>
> - usr.bin/netstat
>
>    Lots of different networking info gathered.  Matt Thomas had this
>    nearly converted to sysctls at one stage?

It was a group of people, but yes.

> - usr.bin/pmap
>
>    Ugg.  Maybe the worst of the grovellers.

It is best probably that it stays that way.

> - usr.sbin/kgmon
>
>    I thought this one was fully sysctl'ised, but looks to have too many
>    kvm hooks left.

better left alone.

> - usr.sbin/pstat
>
>    Traverses vnodes.  Should be a SMOP.

ok.

> - usr.bin/systat
>
>    Uses info that netstat, vmstat, etc look for.  Would be the last to
>    be sysctl'd.

fine.

>
> - sbin/savecore
>
>    Discussed a lot here.

We need a way to get the kernel image, even if it is not available through
vfs.

> - usr.sbin/trpt
> - usr.sbin/trsp
> - usr.sbin/mlxctl
> - usr.sbin/ifmcstat
>
>    "NFI". mlxctl looks ugly inside, but doesn't seem difficult to
>    change. ifmcstat looks like it should be lumped with netstat maybe?

Yes.

> - usr.sbin/ntp
>
>    This one's a furphy.  "Move along".
>

christos