Configuring resource controls for application WPARs

You can configure the resource controls to limit the physical resources an application WPAR has access to using the -R flag for the wparexec command and chwpar command.

To initialize resource control settings, run the following wparexec command:
wparexec -R active=yes CPU=10%-20%,50% totalProcesses=1024 -- /path/to/application arg1 arg2...argN
In this example, the application 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
The active attribute can be set to yes or no. When the active attribute is set to no, resource controls are disabled, but the settings are maintained in the configuration database.
For example, to change control settings dynamically for an 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