Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jun 2009 06:02:22 -0300 (ADT)
From:      "Marc G. Fournier" <scrappy@hub.org>
To:        Menshikov Konstantin <kostjn@peterhost.ru>
Cc:        freebsd-jail@freebsd.org
Subject:   Re: Calculating per jail memory usage ...
Message-ID:  <20090605055852.N56412@hub.org>
In-Reply-To: <4A275D80.5050408@peterhost.ru>
References:  <20090603180221.E56412@hub.org> <4A275D80.5050408@peterhost.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090605055852.N56412>