HP-UX Virtual Partitions Administrator's Guide (includes A.05.02)

CPU, Memory, and I/O Resources (A.05.xx)
Memory: Setting the Granularity Values (Integrity)
Chapter 6
210
Memory: Setting the Granularity Values (Integrity)
Syntax
The syntax for setting granularity unit size is:
-g ILM|CLM:
unit
[:y|n]
where:
g is granularity
ILM|CLM specifies whether the unit size is applied to ILM or CLM
unit
is the granularity unit size in MBs
This value must be an integral power of 2 (in other words, 2^X) and be greater than or
equal to 64.
y|n specifies whether granularity unit size should be written to firmware. The default is n.
[vparcreate only; Integrity only]
The default memory granularity for CLM and ILM is based on the total memory in the nPartition. The
minimum default value is 128 MB. However, if the memory in the nPartition is too large to fit into the
supported number of memory granules for the nPartition, then the vPars commands will choose the next
higher supported memory granularity value as the default memory granularity.
The default memory granularity is determined by the vPars software when the vPars database is created for
the first time. Default memory granularity based on the total memory on the system is not applied to the
database when an alternate database is specified by the user on the command line. When new memory is
added to the hard partition, memory granularity is not automatically recalculated.
NOTE In certain scenarios, the vPars commands may not be able to calculate the default granularities
accurately. In these cases, a default of 128 MB will be chosen and a warning message asking
the user to validate the granularity manually will be issued.
Commands
There are two commands that can set the granularity values: vparenv and vparcreate. Both are available
at the HP-UX shell level and use the -g option:
1. vparenv -g ...
writes the granularity values to the firmware only. Note that vparenv is applicable only on Integrity.
2. vparcreate -g ...
writes the granularity values to the vPars database and also can (using the update firmware option [:y])
write these values to firmware.
vparenv
# vparenv -g ILM|CLM:
unit
writes the
unit
granularity value to firmware. This takes effect for the nPartition on the next nPartition
boot. For example, to set the granularity unit size in firmware for ILM to 512 MB and for CLM to 256 MB:
# vparenv -g ILM:512 -g CLM:256