3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
6 .\" Manual: File Formats and Conversions
7 .\" Source: File Formats and Conversions
10 .TH "LIMITS" "5" "02/16/2011" "File Formats and Conversions" "File Formats and Conversions"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 limits \- resource limits definition
37 by default or LIMITS_FILE defined
38 config\&.h) describes the resource limits you wish to impose\&. It should be owned by root and readable by root account only\&.
40 By default no quota is imposed on \*(Aqroot\*(Aq\&. In fact, there is no way to impose limits via this procedure to root\-equiv accounts (accounts with UID 0)\&.
42 Each line describes a limit for a user in the form:
45 \fIuser LIMITS_STRING\fR
49 is a string of a concatenated list of resource limits\&. Each limit consists of a letter identifier followed by a numerical limit\&.
51 The valid identifiers are:
61 A: max address space (KB)
72 C: max core file size (KB)
94 F: maximum filesize (KB)
105 M: max locked\-in\-memory address space (KB)
116 N: max number of open files
127 R: max resident set size (KB)
138 S: max stack size (KB)
149 T: max CPU time (MIN)
160 U: max number of processes
171 K: file creation mask, set by
183 L: max number of logins for this user
194 P: process priority, set by
195 \fBsetpriority\fR(2)\&.
206 I: max nice value (0\&.\&.39 which translates to 20\&.\&.\-19)
217 O: max real time priority
223 \fILIMITS_STRING\fR\&. For reading convenience, the following entries are equivalent:
239 the rest of the line is considered a limit string, thus comments are not allowed\&. A invalid limits string will be rejected (not considered) by the
243 The default entry is denoted by username "\fI*\fR"\&. If you have multiple
246 \fILIMITS_FILE\fR, then the last one will be used as the default entry\&.
248 To completely disable limits for a user, a single dash "\fI\-\fR" will do\&.
250 Also, please note that all limit settings are set PER LOGIN\&. They are not global, nor are they permanent\&. Perhaps global limits will come, but for now this will have to do ;)
259 \fBsetpriority\fR(2),
260 \fBsetrlimit\fR(2)\&.