RLIMITs
RLIMITs, or resource limits, are a mechanism in Unix-like operating systems to constrain the resources that a process may use. They are enforced on a per-process basis and are inherited by child processes. The limits are accessed with the getrlimit and setrlimit interfaces and are stored in a struct with two values: rlim_cur (the soft limit) and rlim_max (the hard limit). The soft limit is the current enforcement level, while the hard limit is the maximum value that the soft limit may be raised to. A process can decrease its soft limit, and it can raise it only up to the hard limit; increasing the hard limit generally requires elevated privileges.
Common RLIMITs control a range of resources. CPU time is limited with RLIMIT_CPU; file sizes with RLIMIT_FSIZE;
Behavior on limit violations varies by resource. When the soft limit is reached, the kernel may deliver
Limits can be viewed or changed at runtime by applications using setrlimit, or at the shell level