diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2009-06-23 20:57:27 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2009-06-23 20:57:27 +0000 |
| commit | c9253e931d306584898f210227172785fe663d45 (patch) | |
| tree | df8535674eb8cd6e5891dc1421be5690320af396 /share | |
| parent | 3364c323e6ad143e0e95e2d1c7c3c3b880515860 (diff) | |
Notes
Diffstat (limited to 'share')
| -rw-r--r-- | share/man/man7/tuning.7 | 29 | ||||
| -rw-r--r-- | share/man/man9/vm_map.9 | 4 |
2 files changed, 33 insertions, 0 deletions
diff --git a/share/man/man7/tuning.7 b/share/man/man7/tuning.7 index 9041181984c3..34c8ac37c188 100644 --- a/share/man/man7/tuning.7 +++ b/share/man/man7/tuning.7 @@ -404,6 +404,35 @@ In this document we will only cover the ones that have the greatest effect on the system. .Pp The +.Va vm.overcommit +sysctl defines the overcommit behaviour of the vm subsystem. +The virtual memory system always does accounting of the swap space +reservation, both total for system and per-user. Corresponding values +are available through sysctl +.Va vm.swap_total, +that gives the total bytes available for swapping, and +.Va vm.swap_reserved, +that gives number of bytes that may be needed to back all currently +allocated anonymous memory. +.Pp +Setting bit 0 of the +.Va vm.overcommit +sysctl causes the virtual memory system to return failure +to the process when allocation of memory causes vm.swap_reserved +to exceed vm.swap_total. +Bit 1 of the sysctl enforces RLIMIT_SWAP limit +(see +.Xr getrlimit 2 ). +Root is exempt from this limit. +Bit 2 allows to count most of the physical +memory as allocatable, except wired and free reserved pages +(accounted by +.Va vm.stats.vm.v_free_target +and +.Va vm.stats.vm.v_wire_count +sysctls, respectively). +.Pp +The .Va kern.ipc.maxpipekva loader tunable is used to set a hard limit on the amount of kernel address space allocated to mapping of pipe buffers. diff --git a/share/man/man9/vm_map.9 b/share/man/man9/vm_map.9 index 285d1d750eaa..12112cd21da5 100644 --- a/share/man/man9/vm_map.9 +++ b/share/man/man9/vm_map.9 @@ -146,6 +146,10 @@ Do not include the mapping in a core dump. .It Dv MAP_PREFAULT_MADVISE Specify that the request is from a user process calling .Xr madvise 2 . +.It Dv MAP_ACC_CHARGED +Region is already charged to the requestor by some means. +.It Dv MAP_ACC_NO_CHARGE +Do not charge for allocated region. .El .Pp The |
