DJR wrote:
assigning x number of shares to a zones.
this is confusing to me, I think I'm making it harder than it is.
I have a 4core server.
If I wanted to give 20% to the global, and give the remaining 2 local zones
the 80% left over, what would that be in this command:
add value (priv=privileged,limit=3,action=none)
First, just to make sure we're "on the same page" - FSS guarantees a *minimum*
portion of CPU power, but does not limit the zones if there is idle CPU
capacity. This is very efficient because it doesn't "hold back" a zone
unnecessarily.
In recent builds of OpenSolaris, and in the next release of Solaris 10 (to be
released this summer), you could approximate the behavior you described above
by doing this in the global zone:
# zonecfg -z global
> set scheduling-class=FSS
> set cpu-shares=20
> exit
# zonecfg -z zone1
> set scheduling-class=FSS
> set cpu-shares=40
> exit
# zonecfg -z zone2
> set scheduling-class=FSS
> set cpu-shares=40
> exit
If you are using Solaris 10 11/06 or older, more steps are needed. Before
going there, here is a question for you:
Why do you want to limit the ability of the global zone to use the CPUs?
--------------------------------------------------------------------------
Jeff VICTOR Sun Microsystems jeff.victor @ sun.com
OS Ambassador Sr. Technical Specialist
Solaris 10 Zones FAQ: http://www.opensolaris.org/os/community/zones/faq
--------------------------------------------------------------------------
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org