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

Managing Virtual Partitions
Memory Allocation
Chapter 334
Memory Allocation
Memory Assignment By Size
To allocate a subset of physical memory to a virtual partition, you specify
the desired amount of memory (a size) to allocate to a partition using the
mem::<
size
> parameter in the vparcreate or vparmodify commands.
For example, to create a partition with 1024 MB of memory, the
command is:
# vparcreate -p vpar2 -a mem::1024
When specifying memory by size, note the following:
The unit for the specified size of memory is megabytes not gigabytes.
Memory is allocated in multiples of 64 MB. Any specified size that is
not a multiple of 64 MB is rounded up to the nearest 64 MB boundary.
For example, if you specify 1 MB, 64 MB will be allocated.
The default memory size is 0 MB, so you need to specify enough
memory for your applications and the operating system.
When modifying the amount of memory assigned to a partition, the
target partition must be down.
Specifying a Range
Although you can specify memory ranges using -a mem:::
base
:
range
(for details, see the manpages), this is not recommended.
The only time you would specify memory by range is for NUMA. L-class
and N-class computers do not have NUMA architectures, so there is no
need to specify ranges with these computers.