| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 1M: System Administration Commands Oracle Solaris 11 Information Library |
- resource cap enforcement daemon
rcapd [-d]
Thercapd daemon enforces resource caps on collections of processes. Per-project andper-zone physical memory caps are supported. For information about projects, seeproject(4).For zones information, seezones(5)
When the resident set size (RSS) of a collection of processes exceedsits cap,rcapd takes action and reduces the RSS of the collection.
The virtual memory system divides physical memory into segments known as pages.To read data from a file into memory, the virtual memory systemreads in individual pages. To reduce resource consumption, the daemon can pageout, or relocate, infrequently used pages to an area outside of physical memory.
In theproject file, caps are defined for projects that have positivevalues for the following project attribute:
The total amount of physical memory, in bytes, that is available to the project's member processes
Seeproject(4) for a description of project attributes.
For a system with one or more zones, you can dynamically setthercap.max-rss value for a zone withrcapadm(1M). To set a persistent capon memory usage within a zone, you usezonecfg(1M).
You configurercapd through the use ofrcapadm(1M). The daemon can bemonitored withrcapstat(1). Configuration changes are incorporated intorcapd by sending itSIGHUP (seekill(1)), or according to the configuration interval (seercapadm(1M)).
The following option is supported:
Enable debug mode. Messages are displayed on the invoking user's terminal.
Example 1 Setting Resident Set Size Cap Attribute
The following line in the/etc/project database sets an RSS cap of1073741824 bytes for a project namedfoo.
foo:100::foo,root::rcap.max-rss=10737418240
The following exit values are returned:
Successful completion.
An error occurred.
Invalid command-line options were specified.
Project database.
Seeattributes(5) for descriptions of the following attributes:
|
rcapstat(1),svcs(1),rcapadm(1M),zonecfg(1M),svcadm(1M),project(4),attributes(5),smf(5),zones(5)
“Physical Memory Control Using the Resource Capping Daemon” inOracle Solaris Administration: Oracle Solaris Zones, Oracle Solaris 10 Zones, and Resource Management
If killed withSIGKILL,rcapd can leave processes in a stopped state.UseSIGTERM to causercapd to terminate properly.
A collection's RSS can exceed its cap for some time before thecap is enforced, even if sufficient pageable memory is available. This periodof time can be reduced by shortening the RSS sampling interval withrcapadm.
Thercapd service is managed by the service management facility,smf(5), underthe service identifier:
svc:/system/rcap:default
Administrative actions on this service, such as enabling, disabling, or requesting restart,can be performed usingsvcadm(1M). The service's status can be queried using thesvcs(1) command.
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |