Installing and Managing HP-UX Virtual Partitions (includes A.04.03)

CPU, Memory, and IO Resources (A.04.xx)
Memory: Setting the Granularity Values (Integrity)
Chapter 6
170
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 granularity is 128 MB for ILM and 128 MB for CLM.
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 256MB:
# vparenv -g ILM:512 -g CLM:256
Note that this does not set the granularity value in the vPars database. Only vparcreate sets the granularity
value in the vPars database.
Because the granularity values in firmware must match those in a vPars database in order for the virtual
partitions of that database can boot, once the granularity values in firmware are set, the granularity values
in the vPars database that are used in the next boot of the vPars Monitor must contain the same granularity
values.
vparcreate
# vparcreate -p
vpar1_name
[-g ILM:
unit
[:y] ] [-g CLM:
unit
[:y] ]
If you specify the above command without the :y, vparcreate writes the
unit
granularity value to only the
vPars database; it does not write the value to firmware.