vlimit.3
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3 代码 · 共 82 行
3
82 行
.\" SCCSID: @(#)vlimit.3 8.1 9/11/90.TH vlimit 3.SH Namevlimit \- control maximum system resource consumption.SH Syntax.B "#include <sys/vlimit.h>".PP.B vlimit(\fIresource, value\fP).SH Description.NXR "vlimit subroutine".NXA "vlimit subroutine" "getrlimit system call".NXR "process" "limiting resource consumption"This facility has been superseded by .MS getrlimit 2 ..PPLimits the consumption by the current process and each processit creates to not individually exceed .I valueon the specified.I resource.If.I valueis specified as \-1, then the current limit is returned and thelimit is unchanged.The resources which are currently controllable are:.TP 15LIM_NORAISEPseudo-limit; if set nonzero then the limits may not be raised.Only the super-user may remove the \fInoraise\fR restriction..TP 15LIM_CPUThe maximumnumber of cpu-seconds to be used by each process..TP 15LIM_FSIZEThe largest single file which can be created..TP 15LIM_DATAThe maximum growth of the data+stack region via.MS sbrk 2beyond the end of the program text..TP 15LIM_STACKThe maximumsize of the automatically-extended stack region..TP 15LIM_COREthe size of the largest core dump that will be created..TP 15LIM_MAXRSSa soft limit for the amount of physical memory (in bytes) to be givento the program.If memory is tight, the system will prefer to take memoryfrom processes which are exceeding their declared LIM_MAXRSS..PPBecause this information is stored in the per-process informationthis system call must be executed directly by the shell if itis to affect all future processes created by the shell;.I limitis thus a built-in command to .MS csh 1 ..PPThe system refuses to extend the data or stack space when the limitswould be exceeded in the normal way. A.I breakcall fails if the data space limit is reached, or the process iskilled when the stack limit is reached. Since the stack cannot beextended, there is no way to send a signal..PPA file I/O operation which would create a file which is too largewill cause a signal SIGXFSZ to be generated, this normally terminatesthe process, but may be caught.When the cpu time limit is exceeded, a signal SIGXCPU is sent to theoffending process; to allow it time to process the signal it isgiven 5 seconds grace by raising the cpu time limit..SH Restrictions.NXR "vlimit subroutine" "restrictions"If LIM_NORAISE is set, then no grace should be given when the CPUtime limit is exceeded..SH See Alsocsh(1)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?