Well, rule of thumb is not to run applications in global zone.
Exception could be backup software or monitoring/log shipment software..
Is there any practical reason not to have that application running in non-global zone ?
Personally, i use FSS scheduler with global/non-global zones and control the CPU resources using shares. Global zone has 1 share by default.
Shares are bit different then CPU caps you are using.. for instance you have 10 shares of CPU (when used 100% all 10 shares are used) running 1 global zone and 2 zones.
You set 6 and 3 cpu shares for two non-global zones (1 is for global zone), which means that zone with 6 shares will get 60% of CPU in case of CPU resource contention.
Otherwise it can use all the CPU.
So FSS guarantees CPU time in mentioned relation.
10 CPU share = 100 % CPU, global zone : zone1 : zone2 = 1:6:3
10 is a number you choose, you can choose 100 as well as any other number which will represent maximum CPU time which you will divide among zones.
I found this to be most effective in terms of harnessing CPU power when needed by single zone so far and giving guarantees if things go bananas.
Of course, you can change that as administrator from global zone, even on runtime, using prctl effectively giving additional CPU shares to a zone or a single process.
you cannot put zone limits to the global zone.
shows the available resources; you can try to set project.cpu-shares to a certain project, then assign certain processes to that project. I have no experience with that. Instead I have used the classic commands
This User Gave Thanks to MadeInGermany For This Post:
I am not sure if i am able to use FSS due to oracle database licensing which required me to cap the cpu utilization the a maximum of the amount of core which is/are licensed.
But however, i am curious about what you mentioned about FSS, do you mean if there are no contention, a zone which is assign e.g. 3 shared might be able to get more then >3 ?
Somehow i felt that allocating dedicated cpu to non-globalzone did take away the cpu resource from the global, base on some simple finding which i observed
a) i cannot create a zone that utilized all the cpu resources available. (e.g. there are a total of 4 cpu, if i set dedicated = 4ncpus) the zone will fail to boot.
(if globalzone has access to all the cpus irregardless if any dedicated cpus are assigned to non-globalzone, then why can't we assign all the cpus to a non-globalzone then)
b) when assigning dedicated cpu to a non global-zone and issuing pooladm afterwards, the default pset cpu amount got lesser.
which i believe anyzone (including globalzone) which are not explicitly assign to anypool will be assigned to the default pool -> default pset .
please let me know your views. (i been googling, reading tons of docs but to no avail).
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)
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)
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)
My requirement is I have file called /opt/orahome/.profile in non global zone.
export ENV... (1 Reply)
is this the step?
add options rw
i notice i can't post immediately, moderator needs to moderate. i have 1 more post still haven't appear in the forum..hmm.... (1 Reply)