Subject: ps vs /proc
To: None <current-users@netbsd.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: current-users
Date: 02/22/2000 00:52:02
% ps ax
ps: proc size mismatch (24192 total, 744 chunks).
ps: /proc exists but does not have a procfs mounted on it.
ps: fallback /proc-based lookup also failed.  Giving up...
% 

The problem is, /proc *does* have a procfs mounted on it.  Is ps
perhaps doing a getfsstat to see if a procfs is mounted there?  My
kernel/user version skew is large enough that getfsstat() appears to be
returning trash.

Since the main use of the /proc fallback is dealing with
kernel/userland version skew, I submit that this is at best suboptimal
behavior; the fallback should be as robust as possible, which in
particular means that if it looks even vaguely like a procfs it should
be used, even if it seems dubious.

					der Mouse

			       mouse@rodents.montreal.qc.ca
		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B