| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 1M: System Administration Commands Oracle Solaris 11 Information Library |
- configure resource capping daemon
rcapadm
rcapadm [ [-n]-E |-D] [-iinterval=value,...,interval=value] [-cpercent] [-zzonename-mmaxvalue]
Thercapadm command allows a user with the privileges described below toconfigure various attributes of the resource capping daemon. If used without arguments,rcapadm displays the current status of the resource capping daemon if ithas been configured. Seercapd(1M) for more information.
In the current release of the Solaris operating environment,rcapadm is availableto users with all privileges and to users who have the ProcessManagement profile in their list of profiles. The System Administrator role includesthe Process Management profile.
Set the minimum physical memory utilization for memory cap enforcement. Caps will not be enforced until the physical memory available to processes is low. Thepercent value should be in the range 0 to 100. The minimum (and default) value is0, which means that memory caps are always enforced.
Disable the resource capping daemon so that it will not be started when the system is booted. Also stop the resource capping daemon now, if the-n option is not specified and it is currently running.
Enable the resource capping daemon so that it will be started each time the system is booted. Also start the resource capping daemon now, if the-n option is not specified and it is not currently running.
Set intervals for various periodic operations performed byrcapd. All intervals are specified in seconds. You can set the following intervals:
The interval at whichrcapd scans for new processes. The default scan interval is every 15 seconds. The minimum value is 1 second.
The interval of process resident set size sampling. The default sample interval is every 5 seconds. The minimum value is 1 second.
The interval at which various paging statistics are updated byrcapd, in seconds. These statistics can be viewed by usingrcapstat(1SRM). The default reporting interval is every 5 seconds. When the interval is set to0, statistics will not be updated.
Note -Paging refers to the act of relocating portions of memory, called pages, to or from physical memory.rcapd pages out the most infrequently used pages.
The reconfiguration interval, in seconds. At each reconfiguration event,rcapd checks its configuration file for updates, and scans the project databases for new project caps. The default reconfiguration interval is every 60 seconds. The minimum interval is0. When the interval is set to0, no periodic reconfiguration occurs, although the running daemon can still be reconfigured by sending itSIGHUP.
Used in conjunction with the-z option. Specifies a value forrcap.max-rss, a dynamically-set cap on the usage of physical memory for the zone specified by-z. You can apply a scale (K,M,G,T) to the value you specify.K means kilobyte;M, megabyte;G, gigabyte; andT, terabyte. For example,100M is 100 megabytes.
To remove an existing cap, specify0M.
Do not affect the running state of the resource capping daemon when enabling or disabling it.
Used in conjunction with the-m option. Specifies the zone for which you are dynamically specifying a cap on physical memory usage (using-m).
Example 1 Configuring the Resource Capping Daemon with Immediate Enforcement
#rcapadm -E -i scan=15,sample=5,report=5,config=60 -c0
Example 2 Specifying a Resource Cap for a Zone
The command shown below specifies the maximum amount of memory that canbe consumed by a specified zone. Note that this value lasts onlyuntil the next reboot. To set a persistent cap, usezonecfg(1M).
#rcapadm -z testzone -m 512M
The following exit values are returned:
Successful completion. The modifications to the current configuration were valid and made successfully.
An error occurred. A fatal error occurred either in obtaining or modifying the resource capping configuration.
Invalid command-line options were specified.
Seeattributes(5) for descriptions of the following attributes:
|
The-z and-m options are committed interfaces.
rcapstat(1),rcapd(1M),zonecfg(1M),project(4),attributes(5),zones(5)
“Physical Memory Control Using the Resource Capping Daemon” inOracle Solaris Administration: Oracle Solaris Zones, Oracle Solaris 10 Zones, and Resource Management
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |