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

Monitor and Shell Commands
Adding and Removing CPU Resources
Chapter 5 109
CPUs; in this case, it sets the
total
number of CPUs (bound plus
unbound) to three.
With the -a option (as well as the -d option), the number used with the
-a is a relative number of CPUs (relative to the number of CPUs already
assigned to the partition). For example, -a cpu::3 represents three
CPUs relative to the number of existing CPUs; in this case, -a cpu::3
adds three additional unbound CPUs to the number of unbound CPUs
already assigned to the partition.
Adding a CPU as a Bound CPU
All CPUs begin as not being assigned to any partition, so all CPUs begin
as unbound CPUs. However, you can assign CPUs as bound CPUs to the
partition by specifying the
min
number in the -a cpu:::
min
command
line option.
Examples To create a virtual partition winona2 with two bound CPUs:
winona1# vparcreate -p winona2 -a cpu::2 -a cpu:::2
In this example, the
total
number of CPUs assigned to the partition
is two (-a cpu::2). Of these two CPUs, two are bound because
min
is
set to two (-a cpu:::2).
If the partition already exists, you can use the vparmodify command
to set the number of bound CPUs. For example, to increase the
number of bound CPUs from two to three:
winona1# vparmodify -p winona2 -m cpu::3 -m cpu:::3
Choosing the Hardware Path of a Bound CPU
By default, the vPars monitor chooses the hardware path of a bound
CPU. However, if you need to use a specific CPU, you can specify its
hardware path by using the -a cpu:
hw_path
option.
Examples In the command
winona1# vparcreate -p winona2 -a cpu::2 -a cpu:::2
the virtual partition winona2 has two bound CPUs. If you want the
CPU at hardware path 41 to be one of the two bound CPUs, specify
the hardware path 41 (-a cpu:41) such that the command line is: