Calculating per jail memory usage ...
Miroslav Lachman
000.fbsd at quip.cz
Fri Jun 5 09:35:29 UTC 2009
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
More information about the freebsd-jail
mailing list