Configuring resource controls for system WPARs
You can configure the resource controls to limit the physical resources a system WPAR has access to using the -R flag for the mkwpar command and chwpar command.
To initialize resource control settings, run the following mkwpar
command:
mkwpar -n wpar_name -R active=yes CPU=10%-20%,50% totalProcesses=1024
In
this example, the WPAR is entitled to the
following system resources:- A minimum of 10% of the global environment's processors upon request
- A maximum of 20% of the global environment's processors when there is contention
- A maximum of 50% of the global environment's processors when there is no contention
- A maximum of 1024 processes at a time
To change resource control settings dynamically for an existing active or inactive application
WPAR run the following
chwpar
command:
chwpar -R totalThreads=2048 shares_memory=100 wpar_name
Note: You
can also use the -K flag for the chwpar command to remove
individual attributes from the profile and restore those controls to their default, as
follows:
chwpar -K -R totalProcesses shares_CPU wpar_name