HP-UX Reference (11i v1 05/09) - 5 Miscellaneous Topics (vol 9)
v
vparresources(5) vparresources(5)
EXAMPLES
If more than one task is specified in a command, they are processed in the order (left-to-right) in which
they are encountered on the command line. Some tasks will affect the outcome of others. Here is an exam-
ple of correct usage, as well as counterexamples within the description.
vparcreate -p winona2 -a cpu::2 -a cpu:::2:4 -a cpu:41 -a cpu:45
-a mem::1280 -a mem:::0x40000000:128 -a io:0/8 -a io:1/10
-a 0/8/0/0.5.0:boot
At creation time, before any options are processed, min is equal to
1,asisnum. Assume that the default
max is sufficiently high, and that the specified resources are available for allocation.
•
-a cpu::2 succeeds because num (2
) is within the range of the min and the max.
•
-a cpu:::2:4 then succeeds because num (
2) is still within the required range. Note that if
the two options were reversed the command would return an error due to left-to-right option pro-
cessing, and the desired min would exceed the default num.
• Finally, the specification of the two CPUs at explicit paths
41 and 45 succeeds because such
assignments create bound CPUs. Since we have set min equal to
2, they can be accommodated.
Note that without the first two
-a options, the -a cpu:45 option would fail, because there
would only be room for one (the default) bound CPU.
• The allocation of 128 MB of specific memory at address 0x40000000 succeeds only because the
total allocated memory was first set to 1280 MB. The 128 MB is taken from that 1280 MB; no new
memory is added as a result of the
-a mem:::0x40000000:128
option.
The following vparmodify(1M) command adds two floating (unbound) CPUs to a vPar that has the Static
attribute set. The Static attribute is then restored.
vparmodify -p winona3 -S dynamic -a cpu::2 -S static
To add a device path to be a tape, the command is:
vparmodify -p winona2 -m io:4.0.3.0.0.0.0:TAPE
Section 5−−388 Hewlett-Packard Company − 4 − HP-UX 11i Version 1: September 2005