On 04/18/12 16:42, Jordi Espasa Clofent wrote:
> El 2012-04-18 19.22, Hung-Sheng Tsao (LaoTsao) Ph.D escribió:
>> hi
>> may be one could add
>> in solaris resource control used to be project based
>> one need to setup project and limit the resoure pool
>> then assign the poll to zone.
>> it is not easy to  use .
>> since then many  shortcut for resource pool control are added to zonecfg
>> make it very easy to add resource control  inside the zone
> The cuestion sill, more or less, there: It is possible to limit the amout of 
> that a zone can borrow from the global zone without rcapd?
> As far as I can understand, if a zone only uses zone.max-shm-memory instead,
> potencially can borrow all the available RAM. So?

zone.max-swap can be used to limit the amount of memory that processes in a zone
can reserve.  Note that this has little to do with swap devices - the term swap
in this sense means virtual memory.

In order for a process to use RAM, those pages of RAM need to be backed by
something that can be paged.  Anonymous pages (those typically obtained via
malloc()) are charged against malloc.  The memory needed to hold executables and
libraries are backed by the disk where they reside.

Mike Gerdts
Solaris Core OS / Zones                 http://blogs.oracle.com/zoneszone/
zones-discuss mailing list

Reply via email to