- Creating and Using Oracle Solaris Kernel Zones
- Live Zone Reconfiguration of Kernel Zones
- Memory Live Zone Reconfiguration for Kernel Zones
- Modifying the Amount of Kernel Zone Physical Memory
- How to Modify the Amount of Kernel Zone Physical Memory
How to Modify the Amount of Kernel Zone Physical Memory
- Ensure that you have enabled and configured the memory live zone reconfiguration feature.
- Change a kernel zone's physical memory size by specifying the new amount of physical memory as the value of the
capped-memory:physical
property.- Configure the kernel zone.
# zonecfg -z kz-name
- Specify the value of the
capped-memory:physical
property.new-phys-memory-size is an integer with an optional scale unit (
K
for kilobytes,M
for metabytes,G
for gigabytes, andT
for terabytes).zonecfg:kz-name> set capped-memory:physical=new-phys-memory-size
- (Optional) Configure the strict method by setting the
capped-memory:memlzr
property to thestrict
value.zonecfg:kz-name> set capped-memory:memlzr=strict
- Commit the change.
zonecfg:kz-name> commit
- Exit
zonecfg
.zonecfg:kz-name> exit
- Apply the configuration changes to the running kernel zone.
# zoneadm -z kz-name apply
The following example commands set the
capped-memory:physical
property value to 32 Gbytes (32G
) for thesomekz
kernel zone, commit the change, and apply the configuration changes to the running kernel zone:zonecfg -z somekz zonecfg:somekz> set capped-memory:physical=32G zonecfg:somekz> commit zonecfg:somekz> exit # zoneadm -z somekz apply
- Configure the kernel zone.