Subject: Re: vmstat and netstat....
To: Quentin Garnier <cube@cubidou.net>
From: Garrett D'Amore <garrett_damore@tadpole.com>
List: tech-kern
Date: 03/27/2006 08:01:22
Quentin Garnier wrote:
> On Mon, Mar 27, 2006 at 12:02:51PM +0200, ragge@ludd.luth.se wrote:
>
>>> It was recently pointed out that a few commands (vmstat, netstat)
>>> require a kernel file (/netbsd) in the root filesystem in order to
>>> provide, for example, accurate statistics.
>>>
>>>
>> That's not true. When I added /dev/ksyms a few years ago I changed
>> the kvm routines to try that first. Only if you have removed the
>> ksyms pseudo-device the tools will use the /netbsd namelist.
>>
>
> In some situations ksyms are unusable because the kernel was passed
> wrong data about symbol table location. This is the case when GRUB is
> used to boot netbsd directly.
>
> However, the Xen hypervisor doesn't seem to suffer from that issue, at
> least it doesn't on my installation.
>
>
Hmm... on a recent sparc64-current, I get:
garrett@salt{27}> vmstat -e
vmstat: undefined symbols: _intrnames _eintrnames _intrcnt _eintrcnt _bucket
Not sure what is going on here. I've been more concerned with evbmips,
where there is *no* bootloader.
I'd much rather have this stuff use a sysctl rather than a kmem groveler
by default.
--
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecomputer.com/
Phone: 951 325-2134 Fax: 951 325-2191