The preferred, simpler method for setting a zone-wide resource control is to use the property name instead of the rctl resource. These limits are specified for both the global and non-global zones.
The global administrator can also set privileged zone-wide resource controls for a zone by using the rctl resource.
Zone-wide resource controls limit the total resource usage of all process entities within a zone. These limits are specified for both the global and non-global zones by using the zonecfg command. For instructions, see How to Configure the lx Branded Zone.
The following resource controls are currently available:
Table 30–1 Zone-Wide Resource Controls
Control Name |
Global Property Name |
Description |
Default Unit |
Value Used For |
---|---|---|---|---|
zone.cpu-cap |
Absolute limit on the amount of CPU resources for this zone. A value of 100 means 100 percent of one CPU as the project.cpu-cap setting. A value of 125 is 125 percent, because 100 percent corresponds to one full CPU on the system when using CPU caps. |
Quantity (number of CPUs) | ||
zone.cpu-shares |
cpu-shares |
Number of fair share scheduler (FSS) CPU shares for this zone. |
Quantity (shares) | |
zone.max-locked-memory. |
|
Total amount of physical locked memory available to a zone. If the privilege priv_proc_lock_memory is assigned to a zone, consider setting this resource control as well, to prevent that zone from locking all memory. |
Size (bytes) |
locked property of capped-memory |
zone.max-lwps |
max-lwps |
Maximum number of LWPs simultaneously available to this zone. |
Quantity (LWPs) | |
zone.max-msg-ids |
max-msg-ids |
Maximum number of message queue IDs allowed for this zone. |
Quantity (message queue IDs) | |
zone.max-sem-ids |
max-sem-ids |
Maximum number of semaphore IDs allowed for this zone. |
Quantity (semaphore IDs) | |
zone.max-shm-ids |
max-shm-ids |
Maximum number of shared memory IDs allowed for this zone. |
Quantity (shared memory IDs) | |
zone.max-shm-memory |
max-shm-memory |
Total amount of System V shared memory allowed for this zone. |
Size (bytes) | |
zone.max-swap |
|
Total amount of swap that can be consumed by user process address space mappings and tmpfs mounts for this zone. |
Size (bytes) |
swap property of capped-memory |