summaryrefslogtreecommitdiffstats
path: root/share/man
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2009-06-23 20:57:27 +0000
committerkib <kib@FreeBSD.org>2009-06-23 20:57:27 +0000
commite91d5cfe697741148ddb95a70d94e528df25f652 (patch)
treedf8535674eb8cd6e5891dc1421be5690320af396 /share/man
parentfa686c638eece83a18de058d1934f4722487818b (diff)
downloadFreeBSD-src-e91d5cfe697741148ddb95a70d94e528df25f652.zip
FreeBSD-src-e91d5cfe697741148ddb95a70d94e528df25f652.tar.gz
Usermode portion of the support for swap allocation accounting:
- update for getrlimit(2) manpage; - support for setting RLIMIT_SWAP in login class; - addition to the limits(1) and sh and csh limit-setting builtins; - tuning(7) documentation on the sysctls controlling overcommit. In collaboration with: pho Reviewed by: alc Approved by: re (kensmith)
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man7/tuning.729
-rw-r--r--share/man/man9/vm_map.94
2 files changed, 33 insertions, 0 deletions
diff --git a/share/man/man7/tuning.7 b/share/man/man7/tuning.7
index 9041181..34c8ac3 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 285d1d7..12112cd 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
OpenPOWER on IntegriCloud