5 \h'-\w'\fB\\$1\ \fP'u'\fB\\$1\ \fP\c
7 .TH "prlimit" 1 "1 September 2011" "Mark Wooding" "Toys"
9 prlimit \- read and set processes' resource limits
22 .IR resource [ \fB= value ]
29 program reads or sets resource limits on other processes (or itself, but
30 that's not usually very useful).
32 The command-line options available are as follows.
35 Write a full help message to standard output and exit with status zero.
40 version number to standard output and exit with status zero.
43 Write a short usage synopsis to standard output and exit with status
47 List the names of the recognized resource limits to standard output, one
48 per line, and exit with status zero.
50 In the absence of any options, the command line arguments are
51 processed. Each argument may be one of the following.
57 program will read and/or set resource limits on the processes whose ids
58 are listed on the command line. Process-ids can be interspersed with
59 resource assignments and queries in any order: all of the assignments
60 and queries are applied to all of the processes.
63 .I "resource assignment"
65 .IB resource = value \fR.
66 Sets the resource limit for the named
70 in each of the listed processes. The
74 to indicate that the named
76 shouldn't be limited, or it may be a number optionally suffixed by one
83 (case insensitive) to scale the value by successive powers of 1024.
90 For each listed process, a line is printed to standard output with the
97 .IB resource = soft-limit
99 .IB resource = hard-limit
101 showing the process's hard and soft limits in a form which can be passed
104 later to restore the process's limits to their current values. The
106 is scaled and suffixed as described above if and only if this can be
107 done without loss of precision.
115 These control whether subsequent resource assignments affect processes'
118 means that both limits should be set to the same value. The default is
123 program only works on Linux, because it depends on a Linux-specific
124 system call to do its work.
128 Mark Wooding, <mdw@distorted.org.uk>