Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><code>setrlimit()</code> is a system call included in POSIX which allows setting of operating system limits on resources like CPU, memory, files and possibly others. The corresponding system call for reading the limits is <code>getrlimit()</code>. Related tags are: <a href="/questions/tagged/limit" class="post-tag" title="show questions tagged &#39;limit&#39;" rel="tag">limit</a>, <a href="/questions/tagged/ulimit" class="post-tag" title="show questions tagged &#39;ulimit&#39;" rel="tag">ulimit</a>, <a href="/questions/tagged/syscall" class="post-tag" title="show questions tagged &#39;syscall&#39;" rel="tag">syscall</a>, <a href="/questions/tagged/unix" class="post-tag" title="show questions tagged &#39;unix&#39;" rel="tag">unix</a>, <a href="/questions/tagged/posix" class="post-tag" title="show questions tagged &#39;posix&#39;" rel="tag">posix</a>.</p> <p>This system call was present on System V and BSD Unixes. Later it was adopted into POSIX.1. It is also present on Linux and other Unix-like systems.</p> <p>POSIX.1 (IEEE Std 1003.1) <a href="http://pubs.opengroup.org/onlinepubs/009695399/functions/setrlimit.html" rel="nofollow"><code>setrlimit()</code></a> specifies setting of these limits:</p> <ul> <li><code>RLIMIT_CORE</code> - maximum size of a core file, in bytes</li> <li><code>RLIMIT_CPU</code> - maximum amount of CPU time, in seconds, used by a process</li> <li><code>RLIMIT_DATA</code> - maximum size of a process' data segment, in bytes</li> <li><code>RLIMIT_FSIZE</code> - maximum size of a file, in bytes, that may be created by a process</li> <li><code>RLIMIT_NOFILE</code> - a number one greater than the maximum value that the system may assign to a newly-created file descriptor</li> <li><code>RLIMIT_STACK</code> - maximum size of the initial thread's stack, in bytes</li> <li><code>RLIMIT_AS</code> - maximum size of a process' total available memory, in bytes</li> </ul> <p>Other systems like BSD or Linux may allow setting of additional limits.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload