summaryrefslogtreecommitdiff
path: root/usr/src/man/man1m/rcapadm.1m
blob: 182d135896b8699886457a1a1d77b4d7345aa7de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
'\" te
.\" Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
.TH RCAPADM 1M "Mar 5, 2017"
.SH NAME
rcapadm \- configure resource capping daemon
.SH SYNOPSIS
.LP
.nf
\fBrcapadm\fR
.fi

.LP
.nf
\fBrcapadm\fR [ [\fB-n\fR] \fB-E\fR | \fB-D\fR]
     [\fB-i\fR \fIinterval=value\fR,...,\fIinterval=value\fR] [\fB-c\fR \fIpercent\fR]
     [\fB-z\fR \fIzonename\fR \fB-m\fR \fImaxvalue\fR]
.fi

.SH DESCRIPTION
.LP
The \fBrcapadm\fR command allows a user with the privileges described below to
configure various attributes of the resource capping daemon. If used without
arguments, \fBrcapadm\fR displays the current status of the resource capping
daemon if it has been configured. See \fBrcapd\fR(1M) for more information.
.sp
.LP
In the current release of the Solaris operating environment, \fBrcapadm\fR is
available to users with all privileges and to users who have the Process
Management profile in their list of profiles. The System Administrator role
includes the Process Management profile.
.SH OPTIONS
.ne 2
.na
\fB\fB-c\fR \fIpercent\fR\fR
.ad
.sp .6
.RS 4n
Set the minimum physical memory utilization for memory cap enforcement. Caps
will not be enforced until the physical memory available to processes is low.
The \fIpercent\fR value should be in the range 0 to 100. The minimum (and
default) value is \fB0\fR, which means that memory caps are always enforced.
.RE

.sp
.ne 2
.na
\fB\fB-D\fR\fR
.ad
.sp .6
.RS 4n
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 \fB-n\fR
option is not specified and it is currently running.
.RE

.sp
.ne 2
.na
\fB\fB-E\fR\fR
.ad
.sp .6
.RS 4n
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 \fB-n\fR
option is not specified and it is not currently running.
.RE

.sp
.ne 2
.na
\fB\fB-i\fR \fIinterval=value\fR,...,\fIinterval=value\fR\fR
.ad
.sp .6
.RS 4n
Set intervals for various periodic operations performed by \fBrcapd\fR. All
intervals are specified in seconds. You can set the following intervals:
.sp
.ne 2
.na
\fB\fBscan\fR\fR
.ad
.RS 10n
The interval at which \fBrcapd\fR scans for new processes. The default scan
interval is every 15 seconds. The minimum value is 1 second.
.RE

.sp
.ne 2
.na
\fB\fBsample\fR\fR
.ad
.RS 10n
The interval of process resident set size sampling. The default sample interval
is every 5 seconds. The minimum value is 1 second.
.RE

.sp
.ne 2
.na
\fB\fBreport\fR\fR
.ad
.RS 10n
The interval at which various paging statistics are updated by \fBrcapd\fR, in
seconds. These statistics can be viewed by using \fBrcapstat\fR(1). The
default reporting interval is every 5 seconds. When the interval is set to
\fB0\fR, statistics will not be updated.
.LP
Note -
.sp
.RS 2
Paging refers to the act of relocating portions of memory, called pages, to or
from physical memory. \fBrcapd\fR pages out the most infrequently used pages.
.RE
.RE

.sp
.ne 2
.na
\fB\fBconfig\fR\fR
.ad
.RS 10n
The reconfiguration interval, in seconds. At each reconfiguration event,
\fBrcapd\fR 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 is \fB0\fR. When the interval is set to
\fB0\fR, no periodic reconfiguration occurs, although the running daemon can
still be reconfigured by sending it \fBSIGHUP\fR.
.RE

.RE

.sp
.ne 2
.na
\fB\fB-m\fR \fImaxvalue\fR\fR
.ad
.sp .6
.RS 4n
Used in conjunction with the \fB-z\fR option. Specifies a value for
\fBrcap.max-rss\fR, a dynamically-set cap on the usage of physical memory for
the zone specified by \fB-z\fR. You can apply a scale (\fBK\fR, \fBM\fR,
\fBG\fR, \fBT\fR) to the value you specify. \fBK\fR means kilobyte; \fBM\fR,
megabyte; \fBG\fR, gigabyte; and \fBT\fR, terabyte. For example, \fB100M\fR is
100 megabytes.
.RE

.sp
.ne 2
.na
\fB\fB-n\fR\fR
.ad
.sp .6
.RS 4n
Do not affect the running state of the resource capping daemon when enabling or
disabling it.
.RE

.sp
.ne 2
.na
\fB\fB-z\fR \fIzonename\fR\fR
.ad
.sp .6
.RS 4n
Used in conjunction with the \fB-m\fR option. Specifies the zone for which you
are dynamically specifying a cap on physical memory usage (using \fB-m\fR).
.RE

.LP
Note -
.sp
.RS 2
To set a persistent cap on memory usage within a zone, use \fBzonecfg\fR(1M).
.RE
.SH EXAMPLES
.LP
\fBExample 1 \fRConfiguring the Resource Capping Daemon with Immediate
Enforcement
.sp
.LP
# \fBrcapadm -E -i scan=\fI15\fR,sample=\fI5\fR,report=\fI5\fR,config=\fI60\fR
-c \fI0\fR\fR

.LP
\fBExample 2 \fRSpecifying a Resource Cap for a Zone
.sp
.LP
The command shown below specifies the maximum amount of memory that can be
consumed by a specified zone. Note that this value lasts only until the next
reboot. To set a persistent cap, use \fBzonecfg\fR(1M).

.sp
.in +2
.nf
# \fBrcapadm -z testzone -m 512M\fR
.fi
.in -2
.sp

.SH EXIT STATUS
.LP
The following exit values are returned:
.sp
.ne 2
.na
\fB\fB0\fR\fR
.ad
.RS 5n
Successful completion. The modifications to the current configuration were
valid and made successfully.
.RE

.sp
.ne 2
.na
\fB\fB1\fR\fR
.ad
.RS 5n
An error occurred. A fatal error occurred either in obtaining or modifying the
resource capping configuration.
.RE

.sp
.ne 2
.na
\fB\fB2\fR\fR
.ad
.RS 5n
Invalid command-line options were specified.
.RE

.SH ATTRIBUTES
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp

.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE	ATTRIBUTE VALUE
_
Interface Stability	Evolving
.TE

.sp
.LP
The \fB-z\fR and \fB-m\fR options are committed interfaces.
.SH SEE ALSO
.LP
\fBrcapstat\fR(1), \fBrcapd\fR(1M), \fBzonecfg\fR(1M), \fBproject\fR(4),
\fBattributes\fR(5), \fBzones\fR(5)
.sp
.LP
"Physical Memory Control Using the Resource Capping Daemon" in \fISystem
Administration Guide: Solaris Containers-Resource Management, and Solaris
Zones\fR