Sponsored Content
Operating Systems Solaris Global and non-global zone resource sharing - tricky Post 302962684 by Peasant on Thursday 17th of December 2015 10:42:36 AM
Old 12-17-2015
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.

Hope that helps
Regards
Peasant.
This User Gave Thanks to Peasant For This Post:
 

9 More Discussions You Might Find Interesting

1. Solaris

How to know the global zonename from non-global zone?

It is easy to list all zones from global zones, but how to find out the global zone name from non-global zone? thx (11 Replies)
Discussion started by: honglus
11 Replies

2. Solaris

sharing a directory between local and global zone

is this the step? add fs set dir=/export set special=/export set type=lofs add options rw end 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)
Discussion started by: binary0011
1 Replies

3. 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

4. Solaris

How can we copy a directory from Global to Non-global zone?

Hi All, How can we copy a directory from global zone to non-global zone using SCP command? (8 Replies)
Discussion started by: vijaysachin
8 Replies

5. Solaris

Is there two different kernel`s running in global and non global zone?

Hi All, I want to know for non global zone there will be different kernal running? (1 Reply)
Discussion started by: vijaysachin
1 Replies

6. 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

7. 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

8. 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

9. 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
CGGET(1)							 libcgroup Manual							  CGGET(1)

NAME
cgget - print parameter(s) of given group(s) SYNOPSIS
cgget [-n] [-v] [-r <name>] [-g <controller>] [-a] <path> ... cgget [-n] [-v] [-r <name>] -g <controller>:<path> ... DESCRIPTION
Prints the parameter(s) of input cgroup(s). If neither controller nor variable are specified, the values of all possible variables are displayed. <path> is the name of the cgroup which should be read. This parameter can be used multiple times. -a, --all print the variables for all controllers which consist in the given cgroup -g <controller> defines controllers whose values should be displayed. This option can be used multiple times. -g <controller>:<path> defines control groups whose values should be displayed. This option can be used multiple times. -h, --help display help and exit -n do not print headers, i.e. names of groups. -r, --variable <name> defines parameter to display. This option can be used multiple times. -v, --values-only print only values, not parameter names. EXAMPLES
$ cgget -r cpuset.cpus -r cpuset.mems first second first: cpuset.cpus=0-1 cpuset.mems=0 second: cpuset.cpus=0 cpuset.mems=0 $ cgget -n -r cpuset.cpus -r cpuset.mems first second cpuset.cpus=0-1 cpuset.mems=0 cpuset.cpus=0 cpuset.mems=0 $ cgget -nv -r cpuset.cpus -r cpuset.mems first second 0-1 0 0 0 $ cgget -n -g cpu / cpu.rt_period_us=1000000 cpu.rt_runtime_us=950000 cpu.shares=1024 ENVIRONMENT VARIABLES
CGROUP_LOGLEVEL controls verbosity of the tool. Allowed values are DEBUG, INFO, WARNING or ERROR. SEE ALSO
cgrules.conf (1), cgcreate (1), cgget (1) Linux 2010-01-18 CGGET(1)
All times are GMT -4. The time now is 02:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy