How to Modify the Amount of Kernel Zone Physical Memory

  1. Ensure that you have enabled and configured the memory live zone reconfiguration feature.
  2. 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.
    1. Configure the kernel zone.
      # zonecfg -z kz-name
    2. 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, and T for terabytes).

      zonecfg:kz-name> set capped-memory:physical=new-phys-memory-size
    3. (Optional) Configure the strict method by setting the capped-memory:memlzr property to the strict value.
      zonecfg:kz-name> set capped-memory:memlzr=strict
    4. Commit the change.
      zonecfg:kz-name> commit
    5. Exit zonecfg.
      zonecfg:kz-name> exit
    6. 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 the somekz 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