Configuring Memory Live Zone Reconfiguration

You can configure memory live zone reconfiguration for a kernel zone in one of the following ways:

  • zonecfg method: First, specify any valid value of the capped-memory:pagesize-policy property to use the memory live zone reconfiguration feature. For more information, see About Memory Size Page Policy and Physical Memory.

  • Memory Reservation Pool (MRP) method: Configure a kernel zone to use an MRP for allocating its memory. When a kernel zone uses an MRP, memory is allocated from and returned to the pool, as appropriate. Note that a request to add memory fails if the pool has insufficient memory reserved. See Memory Live Zone Reconfiguration Software Requirements.

    Note that the svc:/system/memory-reserve:zone service enables you to perform a live or warm migration of a kernel zone that uses an MRP. Configure this capability by setting config/pagesize-policy=fixed and setting the config/pagesize property value to a valid page size.

Ensure that you have the memory live zone configuration feature enabled on your kernel zone. See How to Enable Memory Live Zone Reconfiguration.

Note:

You cannot set capped-memory:pagesize-policy=fixed unless memory live zone reconfiguration is enabled and the capped-memory:pagesize property has no value. See Memory Reservation Pools for Kernel Zones.

This example shows how to use the zonecfg command to configure memory live zone reconfiguration for the somekz kernel zone.

The following example pagesize -a output shows that 256 Mbytes, 2 Gbytes, and 16 Gbytes are valid kernel zone page size values on a SPARC system:

sparc-host# pagesize -a
8192
65536
4194304
268435456
2147483648
17179869184

Use one of the valid page size values output by the pagesize -a command as the value of the capped-memory:pagesize property.

The following example commands set the capped-memory:pagesize-policy property value to fixed for the somekz kernel zone, set the memory page size to the minimum SPARC platform value of 256 Mbytes (256M), commit the change, and reboot the kernel zone:

# zonecfg -z somekz
zonecfg:somekz> set capped-memory:pagesize-policy=fixed
zonecfg:somekz> set capped-memory:pagesize=256M
zonecfg:somekz> commit
zonecfg:somekz> exit
# zoneadm -z somekz reboot