svn commit: r198811 - head/sys/vm
Ivan Voras
ivoras at FreeBSD.org
Mon Nov 2 16:56:59 UTC 2009
Author: ivoras
Date: Mon Nov 2 16:56:59 2009
New Revision: 198811
URL: http://svn.freebsd.org/changeset/base/198811
Log:
Add sysctl documentation strings. The descriptions are derived
from tuning(7). One of the descriptions references tuning(7) because
it is too complex to adequatly describe here (it is not a simple
boolean sysctl) and users should be warned to that.
Reviewed by: alc, kib
Approved by: gnn (mentor)
Modified:
head/sys/vm/swap_pager.c
Modified: head/sys/vm/swap_pager.c
==============================================================================
--- head/sys/vm/swap_pager.c Mon Nov 2 16:55:33 2009 (r198810)
+++ head/sys/vm/swap_pager.c Mon Nov 2 16:56:59 2009 (r198811)
@@ -155,11 +155,15 @@ int swap_pager_avail;
static int swdev_syscall_active = 0; /* serialize swap(on|off) */
static vm_ooffset_t swap_total;
-SYSCTL_QUAD(_vm, OID_AUTO, swap_total, CTLFLAG_RD, &swap_total, 0, "");
+SYSCTL_QUAD(_vm, OID_AUTO, swap_total, CTLFLAG_RD, &swap_total, 0,
+ "Total amount of available swap storage.");
static vm_ooffset_t swap_reserved;
-SYSCTL_QUAD(_vm, OID_AUTO, swap_reserved, CTLFLAG_RD, &swap_reserved, 0, "");
+SYSCTL_QUAD(_vm, OID_AUTO, swap_reserved, CTLFLAG_RD, &swap_reserved, 0,
+ "Amount of swap storage needed to back all allocated anonymous memory.");
static int overcommit = 0;
-SYSCTL_INT(_vm, OID_AUTO, overcommit, CTLFLAG_RW, &overcommit, 0, "");
+SYSCTL_INT(_vm, OID_AUTO, overcommit, CTLFLAG_RW, &overcommit, 0,
+ "Configure virtual memory overcommit behavior. See tuning(7) "
+ "for details.");
/* bits from overcommit */
#define SWAP_RESERVE_FORCE_ON (1 << 0)
More information about the svn-src-all
mailing list