Subject: Re: Q: /kern , /proc?
To: Andreas Brusinsky <firstname.lastname@example.org>
From: Terry Lambert <email@example.com>
Date: 05/06/1997 10:29:05
> I am not sure if it is due to the mount /proc but currently my
> 'ps' does not work [ps: proc size mismatch (1304 total, 648 chunks)]
> I have a new kerenel on a 1.2.1 userland, maybe it will be o.k. once I
> have compiled and installed the rest of 'current'.
You must recompile libkvm and the ps program itself. The problem is
that the proc structure size has changes, and ps operates by grabbing
the proc data out of /dev/kmem, which assumes knowledge of the proc
structure for iteration of the processes. This is arguably a bug in
all BSD4.4 derived code, but it is the only way the ps can apply to
system dump files (which, by definition, do not have live functional
interfaces, only passive data interfaces). Arguably, ps should operate
on a defined interface unrelated to the size of the proc structure,
and the 'ps of system dump' facility ought to be built into a 'crash'
or similar program instead of loaded on the shoulders of ps.
Any opinions in this posting are my own and not those of my present
or previous employers.