From owner-freebsd-hackers Wed May 21 11:06:57 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA25076 for hackers-outgoing; Wed, 21 May 1997 11:06:57 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.50]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id LAA25059 for ; Wed, 21 May 1997 11:06:51 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id LAA03656; Wed, 21 May 1997 11:05:37 -0700 From: Terry Lambert Message-Id: <199705211805.LAA03656@phaeton.artisoft.com> Subject: Re: pure /proc ps? To: black@zen.cypher.net (Ben Black) Date: Wed, 21 May 1997 11:05:37 -0700 (MST) Cc: terry@lambert.org, hackers@FreeBSD.ORG In-Reply-To: from "Ben Black" at May 21, 97 01:09:02 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > > > is there any hope of a pure /proc ps on freebsd? > > > > > > > > Not as long as "-M core", "-N system", and "-W swap" exist to allow > > > > running ps against system-dump images. > > > > > > so why does ps try to access anything other than /proc when i *don't* use > > > those options? > > > > So that it's not twice as large as it would otherwise be for containing > > two seperate copies of the data lookup code. > > can't it just skip the non-/proc parts if it doesn't have the offending > options ont he command line? Sure. And then it would have code for the non-proc parts in case you did put the arguments on the command line, and it would have a duplicate method of getting the same data via /proc if you didn't (I guess it would also have to verify that /proc has been mounted). And it would be larger as a result, with no increased functionality. Personally, I think that 'ps' in the system dump case should be built into the "crash" proram, not into 'ps', and that 'ps' should use /proc and that mounting /proc should be as mandatory as I believe mounting /dev should be. Talk to Jordan, Bruce, Poul, David, John, and the other core members about OK'ing the change. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.