1PRLIMIT(1)                       User Commands                      PRLIMIT(1)
2
3
4

NAME

6       prlimit - get and set process resource limits
7

SYNOPSIS

9       prlimit [options] [--resource[=limits]] [--pid PID]
10
11       prlimit [options] [--resource[=limits]] command [argument...]
12

DESCRIPTION

14       Given a process ID and one or more resources, prlimit tries to retrieve
15       and/or modify the limits.
16
17       When command is given, prlimit will run this command with the given
18       arguments.
19
20       The limits parameter is composed of a soft and a hard value, separated
21       by a colon (:), in order to modify the existing values. If no limits
22       are given, prlimit will display the current values. If one of the
23       values is not given, then the existing one will be used. To specify the
24       unlimited or infinity limit (RLIM_INFINITY), the -1 or 'unlimited'
25       string can be passed.
26
27       Because of the nature of limits, the soft limit must be lower or equal
28       to the high limit (also called the ceiling). To see all available
29       resource limits, refer to the RESOURCE OPTIONS section.
30
31soft:_hard_ Specify both limits.
32
33soft: Specify only the soft limit.
34
35       •   :hard Specify only the hard limit.
36
37value Specify both limits to the same value.
38

GENERAL OPTIONS

40       -h, --help
41           Display help text and exit.
42
43       --noheadings
44           Do not print a header line.
45
46       -o, --output list
47           Define the output columns to use. If no output arrangement is
48           specified, then a default set is used. Use --help to get a list of
49           all supported columns.
50
51       -p, --pid
52           Specify the process id; if none is given, the running process will
53           be used.
54
55       --raw
56           Use the raw output format.
57
58       --verbose
59           Verbose mode.
60
61       -V, --version
62           Display version information and exit.
63

RESOURCE OPTIONS

65       -c, --core[=limits]
66           Maximum size of a core file.
67
68       -d, --data[=limits]
69           Maximum data size.
70
71       -e, --nice[=limits]
72           Maximum nice priority allowed to raise.
73
74       -f, --fsize[=limits]
75           Maximum file size.
76
77       -i, --sigpending[=limits]
78           Maximum number of pending signals.
79
80       -l, --memlock[=limits]
81           Maximum locked-in-memory address space.
82
83       -m, --rss[=limits]
84           Maximum Resident Set Size (RSS).
85
86       -n, --nofile[=limits]
87           Maximum number of open files.
88
89       -q, --msgqueue[=limits]
90           Maximum number of bytes in POSIX message queues.
91
92       -r, --rtprio[=limits]
93           Maximum real-time priority.
94
95       -s, --stack[=limits]
96           Maximum size of the stack.
97
98       -t, --cpu[=limits]
99           CPU time, in seconds.
100
101       -u, --nproc[=limits]
102           Maximum number of processes.
103
104       -v, --as[=limits]
105           Address space limit.
106
107       -x, --locks[=limits]
108           Maximum number of file locks held.
109
110       -y, --rttime[=limits]
111           Timeout for real-time tasks.
112

NOTES

114       The prlimit system call is supported since Linux 2.6.36, older kernels
115       will break this program.
116

EXAMPLES

118       prlimit --pid 13134
119           Display limit values for all current resources.
120
121       prlimit --pid 13134 --rss --nofile=1024:4095
122           Display the limits of the RSS, and set the soft and hard limits for
123           the number of open files to 1024 and 4095, respectively.
124
125       prlimit --pid 13134 --nproc=512:
126           Modify only the soft limit for the number of processes.
127
128       prlimit --pid $$ --nproc=unlimited
129           Set for the current process both the soft and ceiling values for
130           the number of processes to unlimited.
131
132       prlimit --cpu=10 sort -u hugefile
133           Set both the soft and hard CPU time limit to ten seconds and run
134           'sort'.
135

AUTHORS

137       Davidlohr Bueso <dave@gnu.org> - In memory of Dennis M. Ritchie.
138

SEE ALSO

140       ulimit(1p), prlimit(2)
141

REPORTING BUGS

143       For bug reports, use the issue tracker at
144       https://github.com/karelzak/util-linux/issues.
145

AVAILABILITY

147       The prlimit command is part of the util-linux package which can be
148       downloaded from Linux Kernel Archive
149       <https://www.kernel.org/pub/linux/utils/util-linux/>.
150
151
152
153util-linux 2.37.2                 2021-07-20                        PRLIMIT(1)
Impressum