Visit Our UNIX and Linux User Community


Reserve Memory for Global Zone


 
Thread Tools Search this Thread
Operating Systems Solaris Reserve Memory for Global Zone
# 1  
Old 10-19-2009
Reserve Memory for Global Zone

We have several containers on one machine and would like to reserve some memory for the global zone. capped-memory only allows max physical/swap and setting a max on each container isn't an option. The server has 32GB physical and 30GB swap. Currently there are ten containers on it. Normally only a couple of the containers are active and consume from 10-15GB. We run into issues when a few of the containers become active or when we have a process in a container consuming all of the memory. When this happens we can't fork() in the global zone to halt the local-zone hogging the resources. Is there a way to reserve memory for the global zone so we can have enough resources to run administration commands from the global when a local-zone ends up consuming all of the memory resources?
# 2  
Old 10-19-2009
not a Zones problem, but a memory ressource problem

your problem is not related to zones but to processes and memory limits in general, cannot fork will occur too if you have all processes running in one "zone" and memory is getting low. It just means the system cannot give more memory to processes. So, you need to calculate the max. needed physical memory and plug it in. Thats all.
Otherwise you will need to cap the Zone's physical memory, no way round.

(alternatively you may keep zoneadm running within Zone 0. So it should be usable, if slow)

Last edited by digits; 10-19-2009 at 07:17 PM.. Reason: alternatively...
# 3  
Old 10-19-2009
I don't know any way to reserve memory for a zone, whether global or not. A small script using rcapstat and rcapadm that would dynamically cap your zones RAM and memory usage might answer to your issue.
# 4  
Old 10-19-2009
... hopefully

Quote:
Originally Posted by jlliagre
I don't know any way to reserve memory for a zone, whether global or not. A small script using rcapstat and rcapadm that would dynamically cap your zones RAM and memory usage might answer to your issue.
yeah, but hopefully it doesn't fork processes Smilie
# 5  
Old 10-19-2009
If the zones are properly capped, there is no risk to have the memory exhausted so forking will still be possible.
# 6  
Old 10-20-2009
Yeah, looks like writing a script to dynamically set/modify the "capped-memory" values is the only way. If there is a functionality to set "capped-memory" for physical and swap, you would think they would have added a "min-memory" or "reserved-memory" option.

In response to properly capping (without the use of a script that dynamically modifies the cap), it's not a proper solution for our needs.

Thanks jlliagre.
# 7  
Old 10-20-2009
There are really only a couple of things that would stop a fork. Either you don't have the backing storage for the uninitialized stuff (stack, bss, etc) or you reached the make number of procs....

Previous Thread | Next Thread
Test Your Knowledge in Computers #667
Difficulty: Easy
IEEE 802 is a family of IEEE standards dealing with local area networks and metropolitan area networks.
True or False?

9 More Discussions You Might Find Interesting

1. Solaris

Solaris 11 zone has no external network access (except to Global Zone)

Hi, hoping someone can help, its been a while since I used Solaris. After creating a NGZ (non global zone), the NGZ can access the GZ (Global Zone) and the GZ can access the NGZ (using ssh, zlogin) However, the NGZ cannot access any other netwqork devices, it can't even see the default router ... (2 Replies)
Discussion started by: GazinLincoln
2 Replies

2. Solaris

Date and time change in global and non global zone

Hi, If I change date and time in global zone, then it will affect in non global zones. During this process what files will get affect in non global zones and which mechanism it's using to change. gloabl zone:Solaris 11.3 X86 TIA (1 Reply)
Discussion started by: Sumanthsv
1 Replies

3. Solaris

Global and non-global zone resource sharing - tricky

hi all, Just a simple question but i cant get the answers in the book - In my globalzone , assuming i have 4 cpus (psrinfo -pv = 0-3), if i set dedicated-cpu (ncpus=2) for my local zone Is my globalzone left with 2 cpus or still 4 cpus ? Does localzone "resource reservation.e.g. cpu in... (6 Replies)
Discussion started by: javanoob
6 Replies

4. Solaris

Finding capped memory of a non global zone

Is there a way to find the capped memory of a solaris non global zone from the non global zone itself (given rcapd is disabled) (6 Replies)
Discussion started by: CuriousDev
6 Replies

5. Solaris

showing 2 different time zones in global zone and nonglobal zone

can some one help me out as it is showing 2 different time zones in global zone and nonglobal zone .In global zone it is showing in GMT while in nonglobal zone i it showing as PDT. System in running with solaris 10 (3 Replies)
Discussion started by: ravijanjanam12
3 Replies

6. Solaris

how to add a default gateway in a zone of different VLAN of global zone

Hi Greetings... I have an issue in connecting the zone from outside the network and it is because of default gateway. I can ping default gateway from inside the zone and not able to ping from global zone due to different VLAN issue. If i add two different gateways and restart network services,... (2 Replies)
Discussion started by: vvpotugunta
2 Replies

7. Solaris

How to access ENV variables of non global zones in global zone???

Hi Guys, My requirement is I have file called /opt/orahome/.profile in non global zone. PATH=/usr/bin:/usr/ucb:/etc:/usr/sbin:/usr/local/bin:/usr/openwin/bin:. export PATH PS1="\${ORACLE_SID}:`hostname`:\$PWD$ " export PS1 EDITOR=vi export EDITOR ENV=/opt/orahome/.kshrc export ENV... (1 Reply)
Discussion started by: vijaysachin
1 Replies

8. Solaris

[b]How to mount a folder from global zone to non global zone??

Hi All There is one folder in global zone I just want to share the same folder innon global zone. How can i do it? pls send me script for this. (2 Replies)
Discussion started by: vijaysachin
2 Replies

9. Solaris

Solaris Zone : Non global Zone check failed

Hi All , I try to install some packages in my global zone... On the execution of the installion of the script it quits by saying the error "Non global zone check failed" Kindly help me in this regard Thanks in advance, jeganr (7 Replies)
Discussion started by: jegaraman
7 Replies

Featured Tech Videos