HP Integrity Virtual Machines 4.2: Installation, Configuration, and Administration

Table 9-3 Dynamic Memory Control Command Options (continued)
DescriptionKeyword Value Pair
Specifies the increment amount for changes in memory size (default is
256 MB). Larger values result in faster memory size growth.
amr_chunk_size=amount
Sets the current memory size for the guest. The ram_target keyword
is valid on the hpvmmodify and hpvmmgmt commands only. When you
specify 0 (zero), the dynamic memory driver reduces the memory on the
guest to a comfortable minimum without forcing guest memory to be
paged out. This minimum value changes over time as the guest's
operating needs change. When you specify start, the guest dynamic
memory size grows to the allocated value specified using the -r option.
This parameter is dynamic and can be used only on an active guest.
ram_target={0|start|amount}
9.7.1.1 Configuring a Virtual Machine to Use Dynamic Memory
By default, dynamic memory is not enabled. To configure a virtual machine to use dynamic
memory, enter the hpvmcreate, hpvmmodify, or hpvmclone 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 virtual machine to reduce its memory size early in a boot process, making
the virtual machine available but maintaining lower memory overhead on the VM Host system.
Use the following -x option to enable this feature:
-x ram_dyn_target_start = memory size after boot
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 virtual machine memory size is set to 6 GB.
Dynamic memory is enabled using any dynamic memory support available.
The minimum amount of memory that the virtual machine can be reduced to is 1222 MB.
The maximum amount of memory that the virtual machine can be increased to is 6 GB.
The memory size to reduce to after it boots is 2 GB.
If the virtual machine is running when the dynamic memory feature is configured for the first
time, the virtual machine must be rebooted for the configuration changes to take effect.
9.7.1.2 Viewing Dynamic Memory on the VM Host
Dynamic memory parameters and status are displayed for each guest 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
9.7 Dynamic Memory 153