Dynamically change zone CPU resources

Below shows how to enter the zone configuration database and update or add the dedicated-cpu setting interactively.

  • Solaris 11.2 onwards – change the number of dedicated threads.
# zonecfg –z zone1
zonecfg:zone1> select dedicated-cpu
zonecfg:zone1:dedicated-cpu> set ncpus=8
zonecfg:zone1:dedicated-cpu> end
zonecfg:zone1> verify
zonecfg:zone1> commit
zonecfg:zone1> exit
# zoneadm –z zone1 apply