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

CPU, Memory, and IO Resources
Adding and Removing Bound CPUs (vPars A.03 and earlier)
Chapter 6
189
Adding and Removing Bound CPUs
(vPars A.03 and earlier)
CPU Allocation Syntax In Brief
To understand how to assign CPUs, you need to understand the command syntax. Below is a brief
explanation of the CPU allocation syntax for the vparcreate command. For complete information, see the
vparcreate (1M), vparmodify (1M), and vparresources (5) manpages.
Syntax for vparcreate
The core vparcreate syntax for CPU allocation includes:
vparcreate -p partition_name [-a cpu::total] [-a cpu:::[min] [:[max] ] ]] [[-a cpu:hw_path]
...]
where
min is the number of CPUs bound to partition_name. The default is 1.
total is the total number of bound plus unbound CPUs assigned to partition_name. The default is
1.
max is the maximum number of bound plus unbound CPUs that potentially can be added to the
partition. The default is the number of CPUs in the server.
1
1 <= min <= total <= max
hw_path is the hardware path of a bound CPU. If not specified, the Monitor chooses the hardware
path.
Note on vparmodify Syntax
The vparmodify command follows a similar syntax, except that vparmodify allows the -m (modify) option as
well as the -a (add) or -d (delete) option.
With the -m option, the number used with the -m is an absolute number. For example, -m cpu::3 represents an
absolute number of three total 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 virtual partition). For example, -a cpu::3
represents three CPUs relative to the number of existing CPUs; in this case, -a cpu::3 adds 3 additional
unbound CPUs to the number of unbound CPUs already assigned to the partition.
1. when the Monitor is running and you are not specifying an alternate database. If the Monitor is not
running or you are specifying an alternate database, the max may be a different number.