HP-UX Virtual Partitions Administrator's Guide (includes A.05.01) (previously titled Installing and Managing HP-UX Virtual Partitions)
CPU, Memory, and I/O Resources (A.04.xx)
Memory: Setting the Granularity Values (Integrity)
Chapter 7
256
Configuring Granule Size
The following procedure illustrates how to configure granule size on Integrity servers.
1. Use the parstatus command to determine the total amount of ILM in the system:
# parstatus -p
nPar_number
-V
2. If the system has any CLM, use the parstatus command to determine the maximum amount of CLM in
use by any cell:
# parstatus -c
cell_number
... -V
3. Use the vparenv command to set the system into vPars mode, then use vparenv to determine the
maximum number of ILM granules and per-cell CLM granules that can be created on the system:
# vparenv -m vPars
# vparenv
4. Divide the total ILM found in step 1 by the maximum number of ILM granules to determine the
minimum ILM granule size.
5. If your system has no CLM memory, use the minimum ILM granule size as the minimum value for CLM
granule size. Otherwise, divide the maximum CLM in any cell found in step 2 by the maximum per-cell
CLM granules to determine the minimum CLM granule size.
6. If the minimum granule size is less than 128 MB, use 128 MB as the granule size. If it is greater than 128
MB, round it to next power of two: 256 MB, 512 MB, 1024 MB, and so on.
7. Use the vparcreate command to create the first partition and the vPars database, specifying the ILM
and CLM granule sizes using the -g option. Specify the :y attribute to update the firmware with the
granule size.
# vparcreate -p
vpar1_name
-D
database
-g ilm:
unit
:y -g clm:
unit
:y ...
8. When you are ready to move to new granule size, shut down the system and boot the monitor with the
new database.
For example, consider a system that contains two cells, cell 0 and cell 1. Each cell contains 64 GB of memory.
To determine how much ILM and CLM is available on the system, use the parstatus command (only the
applicable output is shown):
# parstatus -p 0 -V
...
Total Good Memory Size : 128.0 GB
Total Interleave Memory: 32.0 GB
...
# parstatus -c 0 -c 1 -V
...
Global Cell Number : 0
...
Requested CLM value : 48.0 GB
Allocated CLM value : 48.0 GB
...
Memory OK : 64.00 GB
...
Global Cell Number : 1
...
Requested CLM value : 48.0 GB
Allocated CLM value : 48.0 GB
...
Memory OK : 64.00 GB