ICI Modules: sys: getrlimit
Modules by name : by typeSynopsis
struct = sys.getrlimit(int | string)Description
Return information on a system resource limit specified either as an system dependent int or one of the strings given below. The resource limit is returned as struct containing two keys, "cur" and "max", mapping to the integer, current and maximum values for the particular resource.
Resources may be named using strings. The following are recoginised,
- core - size of core file
- cpu - cpu time
- data - memory use
- fsize - file size
- memlock - locked memory
- nofile - number of open files
- nproc - number of processes for this user
- rss - maximum resident memory
- stack - maximum program stack size
- sbsize - maximum socket buffer usage (typically BSD-only)