Next | Prev | Up | Top | Contents | Index
Resource Limits Parameters
You can set numerous limits on a per-process basis by using getrlimit(2), setrlimit(2), and limit, the shell built-in command. These limits are inherited, and the original values are set in /var/sysgen/mtune. These limits are different from the system limits listed above in that they apply only to the current process and any child processes that may be spawned. To achieve similar effects, you can also use the limit command within the Bourne, C, and Korn shells (/bin/sh, /bin/csh, and /bin/ksh).
Each limit has a default and a maximum. Only the superuser can change the maximum. Each resource can have a value that turns off any checking RLIM_INFINITY. The default values are adequate for most systems.
The following parameters are associated with system resource limits:
- ncargs - the number of bytes of arguments that may be passed during an exec(2) call.
- rlimit-core-cur - the maximum size of a core file.
- rlimit-core-max - the maximum value rlimit-core-cur may hold.
- rlimit-cpu-cur - the limit for maximum cpu time available to a process.
- rlimit-cpu-max - the maximum value rlimit-cpu-current may hold.
- rlimit-data-cur - the maximum amount of data space available to a process.
- rlimit-data-max - the maximum value rlimit-data-cur may hold.
- rlimit-fsize-cur - the maximum file size available to a process.
- rlimit-fsize-max - the maximum value rlimit-fsize-cur may hold.
- rlimit-nofile-cur - the maximum number of file descriptors available to a process.
- rlimit-nofile-max - the maximum value rlimit-nofile-cur may hold.
- rlimit-rss-cur - the maximum resident set size available to a process.
- rlimit-rss-max - the maximum value rlimit-rss-cur may hold.
- rlimit-stack-cur - the maximum stack size for a process.
- rlimit-stack-max - the maximum value rlimit-stack-cur may hold.
- rlimit-vmem-cur - the maximum amount of virtual memory for a process.
- rlimit-vmem-max - the maximum value rlimit-vmem-cur may hold.
- rsshogfrac - the percentage of memory allotted for resident pages.
- rsshogslop - the number of pages above the resident set maximum that a process may use.
- shlbmax - the maximum number of shared libraries with which a process can link.
- ncargs
-
- rlimit_core_cur
-
- rlimit_core_max
-
- rlimit_cpu_cur
-
- rlimit_cpu_max
-
- rlimit_data_cur
-
- rlimit_data_max
-
- rlimit_fsize_cur
-
- rlimit_fsize_max
-
- rlimit_nofile_cur
-
- rlimit_nofile_max
-
- rlimit_rss_cur
-
- rlimit_rss_max
-
- rlimit_stack_cur
-
- rlimit_stack_max
-
- rlimit_vmem_cur
-
- rlimit_vmem_max
-
- rsshogfrac
-
- rsshogslop
-
- shlbmax
-
Next | Prev | Up | Top | Contents | Index