From owner-freebsd-current@FreeBSD.ORG Mon Apr 16 16:59:04 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 94A6E16A401 for ; Mon, 16 Apr 2007 16:59:04 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 438A013C448 for ; Mon, 16 Apr 2007 16:59:04 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id F374646DE4; Mon, 16 Apr 2007 12:59:02 -0400 (EDT) Date: Mon, 16 Apr 2007 17:59:03 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: LI Xin In-Reply-To: <46231B1B.6050600@delphij.net> Message-ID: <20070416175748.C56064@fledge.watson.org> References: <6eb82e0704152113t1247b3a4tb8b0655291c8cceb@mail.gmail.com> <46231258.5070208@elischer.org> <46231B1B.6050600@delphij.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: clsung@freebsd.org, Rong-en Fan , Julian Elischer , current@freebsd.org Subject: Re: RFC: top displays jail id X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Apr 2007 16:59:04 -0000 On Mon, 16 Apr 2007, LI Xin wrote: > Julian Elischer wrote: > [...] >> how about ONLY showing processes in a particular jail? > > What about just 'jexec N top'? :-) Currently top(1) has no ability to attach > particular jail to do things like obtaining usernames from within a jail. > Personally I think the jexec approach is more useful because it can reveal > usernames within the jail. Be aware that if you run the jail's version of top inside the jail, then the output of top can be controlled by processes in the jail. Running top from outside the jail limits the ways in which processes inside jail can manipulate the monitoring tool. Robert N M Watson Computer Laboratory University of Cambridge