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
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
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
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
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
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
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
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
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
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
LEARN ABOUT OPENSOLARIS
zcons
zcons(7D) Devices zcons(7D)
NAME
zcons - Zone console device driver
DESCRIPTION
The zcons character driver exports the console for system zones. The driver is comprised of two "sides:" a master side with which applica-
tions in the global zone communicate, and a slave side, which receives I/O from the master side. The slave side is available in the global
zones.
Applications must not depend on the location of /dev or /devices entries exported by zcons. Inside a zone, the zcons slave side is fronted
by /dev/console and other console-related symbolic links, which are used by applications that expect to write to the system console.
The zcons driver is Sun Private, and may change in future releases.
FILES
/dev/zcons/<zonename>/masterconsole
Global zone master side console for zone <zonename>.
/dev/zcons/<zonename>/slaveconsole
Global zone slave side console for zone <zonename>.
/dev/zconsole
Non-global zone console (slave side).
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
| Interface Stability |Sun Private |
+-----------------------------+-----------------------------+
SEE ALSO
zoneadm(1M), zonecfg(1M), attributes(5), zones(5)
SunOS 5.11 24 Aug 2003 zcons(7D)