RLIMITRSS
RLIMIT_RSS is a POSIX resource limit that specifies the maximum resident set size (RSS) a process may occupy. RSS is the portion of a process’s memory that is currently resident in physical RAM, excluding swapped-out pages and memory that is not loaded. The limit is designed to be queried and modified with the getrlimit and setrlimit system calls, using a struct rlimit where the soft limit (rlim_cur) and the hard limit (rlim_max) are expressed in bytes.
In practice, RSS-based limits are defined as part of a broader set of memory-related controls. Soft limits
Because RSS measures only the memory currently resident in RAM, it does not account for memory that
See also: getrlimit, setrlimit, RLIMIT_AS, RLIMIT_STACK, RLIMIT_DATA, VmRSS, cgroups.