Move everything from /var/adm to /var/log
[unleashed.git] / share / man / man1 / plimit.1
blob59eef652a69811c8ee932726c3a10c6a1c80d53a
1 '\" te
2 .\"  Copyright (c) 1998 by Sun Microsystems, Inc.  All rights reserved.
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH PLIMIT 1 "Jun 8, 1998"
7 .SH NAME
8 plimit \- get or set the resource limits of running processes
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBplimit\fR [\fB-km\fR] \fIpid\fR...
13 .fi
15 .LP
16 .nf
17 \fBplimit\fR {\fB-cdfnstv\fR} \fIsoft\fR,\fIhard\fR... pid...
18 .fi
20 .SH DESCRIPTION
21 .sp
22 .LP
23 If one or more of the \fBcdfnstv\fR options is specified, \fBplimit\fR sets the
24 soft (current) limit and/or the hard (maximum) limit of the indicated
25 resource(s) in the processes identified by the process-ID list, \fIpid\fR.
26 Otherwise \fBplimit\fR reports the resource limits of the processes identified
27 by the process-ID list, \fIpid\fR.
28 .sp
29 .LP
30 Only the owner of a process or the super-user is permitted either to get or to
31 set the resource limits of a process. Only the super-user can increase the hard
32 limit.
33 .SH OPTIONS
34 .sp
35 .LP
36 The following options are supported:
37 .sp
38 .ne 2
39 .na
40 \fB\fB-k\fR\fR
41 .ad
42 .RS 6n
43 On output, show file sizes in kilobytes (1024 bytes) rather than in 512-byte
44 blocks.
45 .RE
47 .sp
48 .ne 2
49 .na
50 \fB\fB-m\fR\fR
51 .ad
52 .RS 6n
53 On output, show file and memory sizes in megabytes (1024*1024 bytes).
54 .RE
56 .sp
57 .LP
58 The remainder of the options are used to change specified resource limits. They
59 each accept an argument of the form:
60 .sp
61 .LP
62 \fIsoft\fR,\fIhard\fR
63 .sp
64 .LP
65 where \fIsoft\fR specifies the soft (current) limit and \fIhard\fR specifies
66 the hard (maximum) limit. If the hard limit is not specified, the comma may be
67 omitted. If the soft limit is an empty string, only the hard limit is set. Each
68 limit is either the literal string \fBunlimited\fR, or a number, with an
69 optional scaling factor, as follows:
70 .sp
71 .ne 2
72 .na
73 \fB\fIn\fR\fBk\fR\fR
74 .ad
75 .RS 9n
76 \fIn\fR kilobytes
77 .RE
79 .sp
80 .ne 2
81 .na
82 \fB\fIn\fR\fBm\fR\fR
83 .ad
84 .RS 9n
85 \fIn\fR megabytes (minutes for CPU time)
86 .RE
88 .sp
89 .ne 2
90 .na
91 \fB\fIn\fR\fBh\fR\fR
92 .ad
93 .RS 9n
94 \fIn\fR hours (for CPU time only)
95 .RE
97 .sp
98 .ne 2
99 .na
100 \fB\fImm\fR\fB:\fR\fIss\fR\fR
102 .RS 9n
103 minutes and seconds (for CPU time only)
108 The soft limit cannot exceed the hard limit.
110 .ne 2
112 \fB\fB-c\fR\fI soft,hard\fR\fR
114 .RS 16n
115 Set core file size limits (default unit is 512-byte blocks).
119 .ne 2
121 \fB\fB-d\fR\fI soft,hard\fR\fR
123 .RS 16n
124 Set data segment (heap) size limits (default unit is kilobytes).
128 .ne 2
130 \fB\fB-f\fR\fI soft,hard\fR\fR
132 .RS 16n
133 Set file size limits (default unit is 512-byte blocks).
137 .ne 2
139 \fB\fB-n\fR\fI soft,hard\fR\fR
141 .RS 16n
142 Set file descriptor limits (no default unit).
146 .ne 2
148 \fB\fB-s\fR\fI soft,hard\fR\fR
150 .RS 16n
151 Set stack segment size limits (default unit is kilobytes).
155 .ne 2
157 \fB\fB-t\fR\fI soft,hard\fR\fR
159 .RS 16n
160 Set CPU time limits (default unit is seconds).
164 .ne 2
166 \fB\fB-v\fR\fI soft,hard\fR\fR
168 .RS 16n
169 Set virtual memory size limits (default unit is kilobytes).
172 .SH OPERANDS
175 The following operands are supported.
177 .ne 2
179 \fBpid\fR
181 .RS 7n
182 Process ID list.
185 .SH EXIT STATUS
188 \fBplimit\fR returns the exit value zero on success, non-zero on failure (such
189 as no such process, permission denied, or invalid option).
190 .SH FILES
192 .ne 2
194 \fB\fB/proc/\fR\fIpid\fR\fB/*\fR\fR
196 .RS 15n
197 process information and control files
200 .SH SEE ALSO
203 \fBulimit\fR(1), \fBproc\fR(1), \fBgetrlimit\fR(2), \fBsetrlimit\fR(2),
204 \fBproc\fR(4), \fBattributes\fR(5),