From owner-freebsd-jail@FreeBSD.ORG Fri Jun 5 09:35:28 2009 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A81021065672 for ; Fri, 5 Jun 2009 09:35:28 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 64EA38FC08 for ; Fri, 5 Jun 2009 09:35:28 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 92C7519E044; Fri, 5 Jun 2009 11:19:03 +0200 (CEST) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 853AE19E043; Fri, 5 Jun 2009 11:19:00 +0200 (CEST) Message-ID: <4A28E305.8080608@quip.cz> Date: Fri, 05 Jun 2009 11:19:01 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: "Marc G. Fournier" References: <20090603180221.E56412@hub.org> <4A275D80.5050408@peterhost.ru> <20090605055852.N56412@hub.org> In-Reply-To: <20090605055852.N56412@hub.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-jail@freebsd.org Subject: Re: Calculating per jail memory usage ... X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2009 09:35:29 -0000 Marc G. Fournier wrote: > On Thu, 4 Jun 2009, Menshikov Konstantin wrote: > >> Hi. >> You can consider memory occupied with processes in jail as sum RSS of >> these processes, but it is wrong. >> >> Processes divide memory among themselves, a segment of the text or all >> memory (if not to do exec after fork). >> >> Now in a kernel there is no mechanism with which help it is possible >> to count a memory size occupied with processes in jail. >> After this mechanism will appear, it will be possible to add top :) >> >> There is a patch for restriction of resources jail, >> http://wiki.freebsd.org/Jails, CPU + RAM Limits for Current. > > > Is this the ChrisJones patch that is labeled "Not fully working / > stalled" you are referring to? Yes and no. Patches in the last column of this table is from different authors. Chris Jones is no longer working on this. The latest patch is from Menshikov Konstantin :) see http://kostjn.spb.ru/patch-jail-limit-8CURRENT.README Miroslav Lachman