Configuring a Kernel Zone to Use a Memory Reservation Pool
Configure a kernel zone to use an MRP by setting the capped-memory:memory-reserve
property. A valid property value is the instance name of a specific MRP service. Only the svc:/system/memory-reserve:zones
service instance of the svc:/system/memory-reserve
SMF service is defined by default. This service instance is disabled by default. When you set the capped-memory:memory-reserve
property, an SMF dependency is set on the corresponding svc:/system/zones/zone
restarter service instance for the MRP service instance.
Note that the memory-reserve
property is mutually exclusive with the pagesize-policy
property. So, if you configure an MRP service instance, the kernel zone uses the page size of the MRP as specified by the MRP service's pagesize-policy
property. If you clear the memory-reserve
property, the kernel zone allocates from general system memory.
You cannot reconfigure the capped-memory:memory-reserve
property dynamically. If you change this property value, you must reboot the kernel zone to make the changes take affect. If you change the page-size policy, you must reboot the kernel zone.
The following example commands configure the kz1
kernel zone to use 16 Gbytes of memory from the zones
MRP:
# zonecfg -z kz1 zonecfg:kz1> select capped-memory zonecfg:kz1:capped-memory> clear pagesize-policy zonecfg:kz1:capped-memory> set memory-reserve=zones zonecfg:kz1:capped-memory> info capped-memory: physical: 16G memory-reserve: zones zonecfg:kz1:capped-memory> end zonecfg:kz1> commit zonecfg:kz1> exit