From owner-freebsd-isp@FreeBSD.ORG Wed Jun 3 21:06:31 2009 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6B5F1065670 for ; Wed, 3 Jun 2009 21:06:31 +0000 (UTC) (envelope-from scrappy@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.freebsd.org (Postfix) with ESMTP id B2CA68FC14 for ; Wed, 3 Jun 2009 21:06:31 +0000 (UTC) (envelope-from scrappy@hub.org) Received: from maia.hub.org (maia-4.hub.org [200.46.204.183]) by hub.org (Postfix) with ESMTP id 939AF34559BA; Wed, 3 Jun 2009 18:06:30 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 65002-09; Wed, 3 Jun 2009 18:06:30 -0300 (ADT) Received: by hub.org (Postfix, from userid 1002) id 6298B3455946; Wed, 3 Jun 2009 18:06:30 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by hub.org (Postfix) with ESMTP id 6244634558C6; Wed, 3 Jun 2009 18:06:30 -0300 (ADT) Date: Wed, 3 Jun 2009 18:06:30 -0300 (ADT) From: "Marc G. Fournier" To: Miroslav Lachman <000.fbsd@quip.cz> In-Reply-To: <4A265309.4020700@quip.cz> Message-ID: <20090603180622.Q56412@hub.org> References: <20090603063520.I56412@hub.org> <4A265309.4020700@quip.cz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-isp@freebsd.org Subject: Re: Tools to calculate memory usage per jail X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2009 21:06:32 -0000 That definitely helps, thx ... On Wed, 3 Jun 2009, Miroslav Lachman wrote: > Marc G. Fournier wrote: >> >> Subject says it all ... does anyone know of / have such a tool? > > I am using some modified shell script - jps. It is based on Oliver Fromme > http://www.secnetix.de/~olli/scripts/jps > > My version is attached. If jps is called with JID param, you get list of > processes of given jail and summary like this: > > ============================== > summary for JID 6 / tester1.example.com > %MEM RSS VSZ %CPU > 5 221064 1034648 0 > > It is far from perfect tool, but it is enough to my needs. > > Or you can ask on freebsd-jail@freebsd.org list, where are more skilled > peoples around jails :) > > [Stef Walter is working on bsnmp-jails, maybe he is able to extend it for > memory usage too] > > Miroslav Lachman > ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664