From owner-freebsd-arch@FreeBSD.ORG Wed Dec 1 00:28:06 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0649316A4CE; Wed, 1 Dec 2004 00:28:06 +0000 (GMT) Received: from daintree.corp.yahoo.com (daintree.corp.yahoo.com [216.145.52.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3DD343D4C; Wed, 1 Dec 2004 00:28:05 +0000 (GMT) (envelope-from peter@wemm.org) Received: by daintree.corp.yahoo.com (Postfix, from userid 2154) id C74D51977A; Tue, 30 Nov 2004 16:28:05 -0800 (PST) From: Peter Wemm To: freebsd-arch@freebsd.org Date: Tue, 30 Nov 2004 16:28:05 -0800 User-Agent: KMail/1.7.1 References: <20041130231236.GD56431@darkness.comp.waw.pl> In-Reply-To: <20041130231236.GD56431@darkness.comp.waw.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411301628.05476.peter@wemm.org> cc: Pawel Jakub Dawidek cc: cperciva@freebsd.org Subject: Re: ps -e without procfs(5). X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Dec 2004 00:28:06 -0000 On Tuesday 30 November 2004 03:12 pm, Pawel Jakub Dawidek wrote: > Hello. > > I need some testing for this patch: > > http://people.freebsd.org/~pjd/patches/ps-e.patch > > It allows to use 'ps -e' without procfs(5) mounted. > I decided to disable this functionality by default, because procfs(5) > is also disabled by default and some people may already depend on the > fact, that environment is a secret by default. > To see the effects, you need to increase sysctl > kern.ps_env_cache_limit to for example 1024. ps -e is "live" and reads the environment from the process. It looks like your patch adds a once-only snapshot of the exec-time values.. I've only ever used "ps -e" to figure out what the current live values are, I'd be more interested in a ptrace based replacement.. -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5