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)
This commit is contained in:
parent
cf6c5eebe7
commit
8a9c731f13
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198811
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user