Limit No of CPU's visible in the Non Global Zone
Hi
We have 24 CPU Domain with Solaris 10 U4
We have a requirement where we need a non-global zone which shows total no of CPU's as 4 within this domain. It's application licensing requirement.
Can somebody suggest is it possible and if somebody has tried it how can this be done.
Thanks in Advance.
Create a resource pool, and associate that pool with the zone.
pooladm -e # enable poos
pooladm -s # save current state
poolcfg -c 'create pset pset_fourcpus (uint pset.min = 4; uint pset.max = 4)'
poolcfg -c 'create pool pool_fourcpus'
poolcfg -c 'associate pool pool_fourcpus (pset pset_fourcpus)'
pooladm -c # activate new configuration
In your zone configuration (I assume it already exists)
zonecfg -z your_zone
zonecfg:your_zone> set pool=pool_fourcpus
zonecfg:your_zone> verify
zonecfg:your_zone> commit
zonecfg:your_zone> exit
then restart the zone.