svn commit: r266285 - head/lib/libc/sys

Benjamin Kaduk bjk at
Sat May 17 03:05:53 UTC 2014

Author: bjk (doc committer)
Date: Sat May 17 03:05:52 2014
New Revision: 266285

  Correct documentation of the limit on how much memory can be mlock()ed
  vm.max_wired is a system-wide limit, not per-process.  Reword the
  section to make this more clear.
  PR:		docs/189214
  Submitted by:	Lawrence Chen (original text)
  Approved by:	hrs (mentor)


Modified: head/lib/libc/sys/mlock.2
--- head/lib/libc/sys/mlock.2	Sat May 17 03:03:17 2014	(r266284)
+++ head/lib/libc/sys/mlock.2	Sat May 17 03:05:52 2014	(r266285)
@@ -28,7 +28,7 @@
 .\"	@(#)mlock.2	8.2 (Berkeley) 12/11/93
 .\" $FreeBSD$
-.Dd March 18, 2013
+.Dd May 17, 2014
 .Dt MLOCK 2
@@ -91,14 +91,21 @@ Locked mappings are not inherited by the
 Since physical memory is a potentially scarce resource, processes are
 limited in how much they can lock down.
-A single process can
+The amount of memory that a single process can
 .Fn mlock
-the minimum of
-a system-wide ``wired pages'' limit
-.Va vm.max_wired
-and the per-process
+is limited by both the per-process
-resource limit.
+resource limit and the
+.Dq wired pages
+.Va vm.max_wired .
+.Va vm.max_wired
+applies to the system as a whole, so the amount available to a single
+process at any given time is the difference between
+.Va vm.max_wired
+.Va vm.stats.vm.v_wire_count .
 .Va security.bsd.unprivileged_mlock

More information about the svn-src-head mailing list