Ignite-UX Custom Configuration files
}
}
Here we set up an effects relationship between _hp_min_swap and _hp_pri_swap. That is
followed by some final adjustments to the size of primary swap based on the size of the root disk
and the amount of memory in the system. Depending on the size of the root disk and the amount of
memory in then system, Ignite-UX will attempt to place a sensible lower bound (_hp_min_swap) on
the size of primary swap.
# The next statement is used only to establish an effects relationship
# between the _hp_pri_swap variable and _hp_min_swap variable. The
# value is overwritten below. This ensure that changes will be handled
# correctly. Depending how _hp_min_swap is calculated it may not change
# due to UI changes.
init _hp_min_swap = _hp_pri_swap
# Adjust swap size to deal with a lot of system memory
( memory < 16GB) {
_hp_min_swap = 1GB
}
( memory >= 16GB & memory < 64GB) {
_hp_min_swap = 2GB
}
( memory >= 64GB) {
_hp_min_swap = 4GB
}
Now _hp_sec_swap and _hp_pri_swap are initialized with a set of values that can be chosen
from; however, they are not a fixed set of values. The variable _hp_sec_swap can be set using
the Additional button because of the way the variable was defined (<variable>={ value1,
value2, … }). The variable _hp_sec_swap has its value set from a selection list or by typing it
into the corresponding field directly. This can happen because _hp_sec_swap was not defined
as an "enum"; if it had been defined as an enum only a value from the list of values it contains
could be used.
Although, in this configuration, hp_pri_swap cannot be modified using the Additional button.
This value appears directly in the Ignite-UX GUI on the Basic tab using the Root Swap (MB)
button, and it allows you to select from a list of possible values. The list of values shown in the
selection list for _hp_pri_swap comes from the list defined in the configuration. If you create a
custom disk configuration file, you should supply a value or a list of values for _hp_pri_swap (or
somehow otherwise calculate a default value for it).
Note that large values can be used for primary and secondary swap. From Ignite-UX version C.7.0
onwards, HP-UX 11i v2 and later releases of HP-UX are no longer limited to 32GB swap spaces.
# Note that 0 (zero) is not a valid size for primary swap
_hp_pri_swap = { 1GB, 2GB, 4GB,
8GB, 16GB, 24GB, 32GB,
48GB, 64GB, 98GB, 128GB,
192GB, 256GB }
_hp_sec_swap = { 0GB, 1GB, 2GB, 4GB,
8GB, 16GB, 24GB, 32GB,
48GB, 64GB, 98GB, 128GB,
192GB, 256GB }
init _hp_sec_swap = 0Mb
71