System Administration Guide: Oracle Solaris Containers-Resource Management and Oracle Solaris Zones

Available Resource Controls

A list of the standard resource controls that are available in this release is shown in the following table.

The table describes the resource that is constrained by each control. The table also identifies the default units that are used by the project database for that resource. The default units are of two types:

Thus, project.cpu-shares specifies the number of shares to which the project is entitled. process.max-file-descriptor specifies the highest file number that can be assigned to a process by the open(2) system call.

Table 6–1 Standard Resource Controls

Control Name 

Description 

Default Unit 

project.cpu-cap

Solaris 10 8/07: Absolute limit on the amount of CPU resources that can be consumed by a project. A value of 100 means 100% of one CPU as the project.cpu-cap setting. A value of 125 is 125%, because 100% corresponds to one full CPU on the system when using CPU caps.

Quantity (number of CPUs) 

project.cpu-shares

Number of CPU shares granted to this project for use with the fair share scheduler (see FSS(7)).

Quantity (shares) 

project.max-crypto-memory

Total amount of kernel memory that can be used by libpkcs11 for hardware crypto acceleration. Allocations for kernel buffers and session-related structures are charged against this resource control.

Size (bytes) 

project.max-locked-memory

Total amount of physical locked memory allowed. 

If priv_proc_lock_memory is assigned to a user, consider setting this resource control as well to prevent that user from locking all memory.

Solaris 10 8/07: Note that in the Solaris 10 8/07 release, this resource control replaced project.max-device-locked-memory, which has been removed.

Size (bytes) 

project.max-port-ids

Maximum allowable number of event ports. 

Quantity (number of event ports)  

project.max-sem-ids

Maximum number of semaphore IDs allowed for this project. 

Quantity (semaphore IDs) 

project.max-shm-ids

Maximum number of shared memory IDs allowed for this project. 

Quantity (shared memory IDs) 

project.max-msg-ids

Maximum number of message queue IDs allowed for this project. 

Quantity (message queue IDs) 

project.max-shm-memory

Total amount of System V shared memory allowed for this project. 

Size (bytes) 

project.max-lwps

Maximum number of LWPs simultaneously available to this project. 

Quantity (LWPs) 

project.max-tasks

Maximum number of tasks allowable in this project. 

Quantity (number of tasks) 

project.max-contracts

Maximum number of contracts allowed in this project. 

Quantity (contracts) 

task.max-cpu-time

Maximum CPU time that is available to this task's processes. 

Time (seconds) 

task.max-lwps

Maximum number of LWPs simultaneously available to this task's processes. 

Quantity (LWPs) 

process.max-cpu-time

Maximum CPU time that is available to this process. 

Time (seconds) 

process.max-file-descriptor

Maximum file descriptor index available to this process. 

Index (maximum file descriptor) 

process.max-file-size

Maximum file offset available for writing by this process. 

Size (bytes) 

process.max-core-size

Maximum size of a core file created by this process. 

Size (bytes) 

process.max-data-size

Maximum heap memory available to this process. 

Size (bytes) 

process.max-stack-size

Maximum stack memory segment available to this process. 

Size (bytes) 

process.max-address-space

Maximum amount of address space, as summed over segment sizes, that is available to this process. 

Size (bytes) 

process.max-port-events

Maximum allowable number of events per event port. 

Quantity (number of events)  

process.max-sem-nsems

Maximum number of semaphores allowed per semaphore set. 

Quantity (semaphores per set) 

process.max-sem-ops

Maximum number of semaphore operations allowed per semop call (value copied from the resource control at semget() time).

Quantity (number of operations) 

process.max-msg-qbytes

Maximum number of bytes of messages on a message queue (value copied from the resource control at msgget() time).

Size (bytes) 

process.max-msg-messages

Maximum number of messages on a message queue (value copied from the resource control at msgget() time).

Quantity (number of messages) 

You can display the default values for resource controls on a system that does not have any resource controls set or changed. Such a system contains no non-default entries in /etc/system or the project database. To display values, use the prctl command.