Subject: Re: @booted_kernel magic symlink?
To: None <email@example.com>
From: Christos Zoulas <firstname.lastname@example.org>
Date: 04/27/2006 14:57:51
In article <20060427060901.9986D23402@thoreau.thistledown.com.au>,
Simon Burge <email@example.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
>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?
> - usr.bin/fstat
> Grovels for info about different filesystem types. Needs some VFS
> level helpers.
> - 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.
> - usr.bin/systat
> Uses info that netstat, vmstat, etc look for. Would be the last to
> be sysctl'd.
> - sbin/savecore
> Discussed a lot here.
We need a way to get the kernel image, even if it is not available through
> - 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?
> - usr.sbin/ntp
> This one's a furphy. "Move along".