prlimit
(1)get and set process resource limits
Options
23--noheadingsDo not print a header line.
-o--outputlistDefine the output columns to use. If no output arrangement is specified, then a default set is used. Use --help to get a list of all supported columns.
-p--pidPIDSpecify the process ID. Without this option (and without a command), the running process will be used.
--rawUse the raw output format.
--verboseVerbose mode.
-h--helpDisplay help text and exit.
-V--versionDisplay version and exit.
-c--corelimitsMaximum size of a core file.
-d--datalimitsMaximum data size.
-e--nicelimitsMaximum nice priority allowed to raise.
-f--fsizelimitsMaximum file size.
-i--sigpendinglimitsMaximum number of pending signals.
-l--memlocklimitsMaximum locked-in-memory address space.
-m--rsslimitsMaximum Resident Set Size (RSS).
-n--nofilelimitsMaximum number of open files.
-q--msgqueuelimitsMaximum number of bytes in POSIX message queues.
-r--rtpriolimitsMaximum real-time priority.
-s--stacklimitsMaximum size of the stack.
-t--cpulimitsCPU time, in seconds.
-u--nproclimitsMaximum number of processes.
-v--aslimitsAddress space limit.
-x--lockslimitsMaximum number of file locks held.
-y--rttimelimitsTimeout for real-time tasks.
DESCRIPTION
Given a process ID and one or more resources, prlimit tries to retrieve and/or modify the limits.
When command is given, prlimit will run this command with the given arguments.
The limits parameter is composed of a soft and a hard value, separated by a colon (:), in order to modify the existing values. If no limits are given, prlimit will display the current values. If one of the values is not given, then the existing one will be used. To specify the unlimited or infinity limit (RLIM_INFINITY), the -1 or 'unlimited' string can be passed.
Because of the nature of limits, the soft limit must be lower or equal to the high limit (also called the ceiling). To see all available resource limits, refer to the RESOURCE OPTIONS section.
NOTES
EXAMPLES
prlimit --pid 13134
prlimit --pid 13134 --rss --nofile=1024:4095
prlimit --pid 13134 --nproc=512:
prlimit --pid $$ --nproc=unlimited
prlimit --cpu=10 sort -u hugefile
AUTHORS
Davidlohr Bueso dave@gnu.org - In memory of Dennis M. Ritchie.
REPORTING BUGS
For bug reports, use the issue tracker https://github.com/util-linux/util-linux/issues.
AVAILABILITY
The prlimit command is part of the util-linux package which can be downloaded from Linux Kernel Archive https://www.kernel.org/pub/linux/utils/util-linux/.