diff options
author | ivoras <ivoras@FreeBSD.org> | 2009-11-02 16:56:59 +0000 |
---|---|---|
committer | ivoras <ivoras@FreeBSD.org> | 2009-11-02 16:56:59 +0000 |
commit | 346b77e39e6735c4e9d426537e41a0098190a8e3 (patch) | |
tree | dcb8ce84cd45ea4356740d41ff2239a91eb7d792 /sys/vm/swap_pager.c | |
parent | 8169c493e6774b33d1e4147fb9a5bb60cb38bd90 (diff) | |
download | FreeBSD-src-346b77e39e6735c4e9d426537e41a0098190a8e3.zip FreeBSD-src-346b77e39e6735c4e9d426537e41a0098190a8e3.tar.gz |
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)
Diffstat (limited to 'sys/vm/swap_pager.c')
-rw-r--r-- | sys/vm/swap_pager.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index 229dac8..ef64b31 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -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) |