diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2017-01-16 15:44:09 +1300 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2017-01-16 22:07:14 +1300 |
| commit | 01b63c34127918302d280cbbb8d36ffd85bd8dd2 (patch) | |
| tree | f7b95ae75834591cd29c9ad61cb7a058322b56df | |
| parent | 4fb6ed947dd7097b99286060464c922fc179f94d (diff) | |
| download | man-pages-01b63c34127918302d280cbbb8d36ffd85bd8dd2.tar.gz | |
proc.5: Document /proc/sys/vm/user_reserve_kbytes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
| -rw-r--r-- | man5/proc.5 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/man5/proc.5 b/man5/proc.5 index 351d684056..b6a6387c26 100644 --- a/man5/proc.5 +++ b/man5/proc.5 @@ -5209,6 +5209,31 @@ Higher values increase aggressiveness, lower values decrease aggressiveness. The default value is 60. .TP +.IR /proc/sys/vm/user_reserve_kbytes " (since Linux 3.10)" +.\" commit c9b1d0981fcce3d9976d7b7a56e4e0503bc610dd +Specifies an amount of memory (in KiB) to reserve for user processes, +This is intended to prevent a user from starting a single memory hogging +process, such that they cannot recover (kill the hog). +The value in this file has an effect only when +.IR /proc/sys/vm/overcommit_memory +is set to 2 ("overcommit never" mode). +In this case, the system reserves an amount of memory that is the minimum +of [3% of current process size, +.IR user_reserve_kbytes ]. + +The default value in this file is the minimum of [3% of free pages, 128MiB] +expressed as KiB. + +If the value in this file is set to zero, +then a user will be allowed to allocate all free memory with a single process +(minus the amount reserved by +.IR /proc/sys/vm/admin_reserve_kbytes ). +Any subsequent attempts to execute a command will result in +"fork: Cannot allocate memory". + +Changing the value in this file takes effect whenever +an application requests memory. +.TP .IR /proc/sysrq-trigger " (since Linux 2.4.21)" Writing a character to this file triggers the same SysRq function as typing ALT-SysRq-<character> (see the description of |
