HP-UX vPars and Integrity VM V6.3 Administrator Guide

13.14.1 Configuring a VM to use dynamic memory
By default, dynamic memory is enabled. To configure a VM to use dynamic memory, use the
hpvmcreate, hpvmmodify, or hpvmclone command. With the command, include the following
-x option to set initial values:
-x ram_dyn_type = any | driver
-x ram_dyn_min = minimum size for memory size changes
-x ram_dyn_max = maximum size for memory size changes
You can configure a VM to reduce its memory size early in a boot process, making the VM available
but maintaining lower memory overhead on the VSP system. Use the following -x option to enable
this feature:
-x ram_dyn_target_start = memory size after boot
CAUTION: You must not set ram_dyn_target_start to a low value. If you set this value to
a lower value it results in a huge memory pressure on the guest during boot process which leads
to guest crash or a hung state. For more information about memory, see Section 13.14.3.3
(page 237).
You can supply several dynamic memory keywords on the same command line. For example, to
enable dynamic memory and to configure the guest named host1 to reduce its size early in the
boot process, enter the following command:
# hpvmmodify -P host1 -r 6G \
-x ram_dyn_type=any \
-x ram_dyn_min=1222M \
-x ram_dyn_max=6G \
-x ram_dyn_target_start=2G
This command specifies the following values:
The VM memory size is set to 6 GB.
Dynamic memory is enabled using any dynamic memory support available.
The minimum amount of memory that the VM can have is 1222 MB.
The maximum amount of memory that the VM can have is 6 GB.
The memory size to reduce to after it boots is 2 GB.
If the VM is running when the dynamic memory feature is configured for the first time, the VM must
be rebooted for the configuration changes to take effect.
13.14.1.1 Viewing dynamic memory on the VSP
You can view the dynamic memory parameters and status for each guest by using the standard
Integrity VM commands. For example, for the guest named host1, the hpvmstatus command
displays the following information about dynamic memory:
# hpvmstatus -V -P host1
.
.
.
[Dynamic Memory Information]
Type : driver
Minimum memory : 1222 MB
Target memory : 2103 MB
Memory entitlement : Not specified
Maximum memory : 6144 MB
Current memory : 2103 MB
Comfortable minimum : 27 MB
Boot memory : 6135 MB
Free memory : 125 MB
Available memory : 286 MB
Memory pressure : 0
13.14 Managing dynamic memory from the VSP 233