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

CPU, Memory, and I/O Resources (A.05.xx)
Memory: Assigning (Adding) Or Deleting By Size (CLM)
Chapter 6
202
Memory: Assigning (Adding) Or Deleting By Size (CLM)
Before assigning CLM, see the section on configuring CLM: “Configuring CLM for an nPartition” on page 310.
Once CLM is configured, you can assign an amount of CLM to a virtual partition.
The syntax to assign, delete, or modify an amount of CLM is:
-a|d|m cell:
cell_ID
:mem::
size
[:base|float]
where:
a add
d delete
m modify
cell_ID
the cell number
size
the quantity of memory in MBs
base add/delete as base memory
float add/delete as float memory
Example
To add 1024 MB of memory as float from cell 6 to the existing partition keira2:
keira1# vparmodify -p keira2 -a cell:6:mem::1024:float
You can set both ILM and CLM memory on the same partition. To assign 1024 MB of available CLM and
1024 MB of available ILM as base memory to keira2:
keira1# vparmodify -p keira2 -a cell:6:mem::1024 -a mem::1024
To see how much of the ILM memory is currently float memory, use vparstatus -v as shown in the
example below.
# vparstatus -p winona4 -v
...
[Memory Details]
...
CLM, user-assigned [CellID Base /Range]: 0 0x700b0000000/256 (Floating)
(bytes) (MB) 0 0x700c0000000/256
CLM, monitor-assigned [CellID Base /Range]: 0 0x70080000000/512
(bytes) (MB) 0 0x700a0000000/256 (Floating)
CLM (CellID MB): 0 1280 (Floating 512)
CLM Granularity (MB): 256
NOTE When assigning ILM or CLM memory to a down partition, the size only reserves the amount of
physical memory the virtual partition gets. The exact physical ranges of memory the virtual
partition gets is decided by the Monitor when the virtual partition boots. The Monitor will
attempt to pick the memory ranges such that the sum of the ranges add up to the amount of
ILM and CLM reserved for the partition. However, due to memory fragmentation, which occurs
due to memory already taken by the Monitor, firmware, or bad pages, the sum of the ranges
picked by the Monitor may be slightly less than or more than the specified amount reserved for
the partition. If this occurs, the vPar Monitor adjusts the specified amount in the database to
the sum of the ranges that it picked.
See also “Memory: Notes on vPars Syntax, Rules, and Output” on page 214 and “Memory, CPU:
Canceling Pending Operations” on page 233.