From owner-freebsd-jail@FreeBSD.ORG Fri Jun 5 09:02:24 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 680861065674 for ; Fri, 5 Jun 2009 09:02:24 +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 339F48FC1D for ; Fri, 5 Jun 2009 09:02:24 +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 0C8A23455949; Fri, 5 Jun 2009 06:02:23 -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 02943-01; Fri, 5 Jun 2009 06:02:23 -0300 (ADT) Received: by hub.org (Postfix, from userid 1002) id 98DE6345593B; Fri, 5 Jun 2009 06:02:22 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by hub.org (Postfix) with ESMTP id 988853455937; Fri, 5 Jun 2009 06:02:22 -0300 (ADT) Date: Fri, 5 Jun 2009 06:02:22 -0300 (ADT) From: "Marc G. Fournier" To: Menshikov Konstantin In-Reply-To: <4A275D80.5050408@peterhost.ru> Message-ID: <20090605055852.N56412@hub.org> References: <20090603180221.E56412@hub.org> <4A275D80.5050408@peterhost.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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:02:24 -0000 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? For 7.x, all we can really go back is RSS, from what I can tell ... it won't be until 8.x(?) that we will be able to get more accurate ... ? And even then, it will be a patch we have to add, not stuff that has been yet integrated into 8.x? ---- 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