I just want to know what's the difference between capped.memory and
zone.max-shm-memory when it comes to limit the zones access to the
available RAM memory in the global zone.
According to here
"Solaris 10 8/07: Physical Memory Control and the capped-memory Resource
The capped-memory resource sets limits for physical, swap, and locked
memory. Each limit is optional, but at least one must be set.
Determine values for this resource if you plan to cap memory for the
zone by using rcapd from the global zone. The physical property of the
capped-memory resource is used by rcapd as the max-rss value for the zone.
The swap property of the capped-memory resource is the preferred way to
set the zone.max-swap resource control.
The locked property of the capped-memory resource is the preferred way
to set the zone.max-locked-memory resource control."
Are the both parameters doing the same (limiting the amount of available
RAm for the zone) but just using different tools (rcapd for
capped.memory and prctl for zone.max-shm-memory)?
What I really want to know is how to limit totally the memory in the
zones. Let's say I have a global zone with 10GB and I want to create 2
zones with ONLY 2GB at maximum, whatever they want or ask for.
Thanks in advance.
I will face my fear. I will permit it to pass over me and through me.
And when it has gone past I will turn the inner eye to see its path.
Where the fear has gone there will be nothing. Only I will remain.
zones-discuss mailing list