HP vPars and Integrity Virtual Machines V6.1 Administrator Guide
The following example displays active usage of the VSP and guest(s) dynamic memory usage
values, along with the guest memory utilization. The guest's current swapping and paging and
translation address memory misses per second are included. For a description of each column
displayed, see the hpvmsar manpage. The dash (-) in the example indicates the guest named ux2
is not currently booted.
# hpvmsar -G -A
HP-UX witch4 B.11.31 U ia64 10/22/10
10:02:28 GUEST GTOTMEM(MB) HDYNRCLM(MB) GCURMEM(MB) GCURFREE(MB) GSWAP GPAGE GADDRTMISS/s
10:02:30 ux1 8186 0 8186 5956 0 0 0
ux2 - - - - - - -
10:02:31 ux1 8186 0 8186 5956 0 0 0
ux2 - - - - - - -
10:02:32 ux1 8186 0 8186 5956 0 0 0
ux2 - - - - - - -
11.9.1.3 Modifying a virtual machine's memory size on the VSP
Once dynamic memory is configured, a virtual machine's memory size can be changed to any
value between the minimum size (ram_dyn_min) and the maximum size (ram_dyn_max) in
increments of the chunk size (64 MB). Use the following -x option to the hpvmmodify command
to change the memory size:
# hpvmmodify -P host1 -x ram_target = new memory size
11.9.2 Managing dynamic memory from the guest
Dynamic memory management from the guest is disabled by default and must be enabled from
the VSP. If the feature is not enabled, dynamic memory information can be displayed , but the
memory size cannot be changed.
Use the hpvmcreate, hpvmmodify, or hpvmclone command and include the -x
dynamic_memory_control option. Specify 1 as the argument to the option. For example, on
the VSP system, enter the following command to enable dynamic memory control on the guest
named host1:
# hpvmmodify -P host1 -x dynamic_memory_control=1
11.9.2.1 Viewing dynamic memory information from the guest
Use the hpvmmgmt command on the HP-UX guest to manage and view the dynamic memory
information. This command is installed when you install the VirtualBase software, as described in
Section 8.3 (page 104). Note, VirtualBase is installed automatically with HP-UX 11i v3 March 2012
VMs. If you are using VMs with the HP-UX 11i v3 September 2011 release, you need to install
the VirtualBase software.
Table 29 describes the options to the hpvmmgmt command.
Table 29 Options to the hpvmmgmt Command
Specifies the type of data to list more information about.
For type, enter ram.
-l type
Allows you to continually watch and check the dynamic
ram values. For the interval, specify the number of
seconds between fetches of live data.
-l type -t interval
Allows the hpvmmgmt command to continuously refetch
the requested type of data using the value specified for the
interval parameter.
-t interval
Specifies the number of virtual CPUs to enable on the guest.-cnum
Displays the version number of the hpvmmgmt command.-v
Displays detailed information (verbose mode) about the
virtual machines.
-V
184 Managing vPars/VMs