kernel - add vm.swap_size sysctl
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 17 Aug 2010 16:56:28 +0000 (09:56 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 17 Aug 2010 16:56:28 +0000 (09:56 -0700)
* Add vm.swap_size sysctl to complement vm.swap_anon_use and
  vm.swap_cache_use.

Requested-by: Carlos Olmedo Escobar
sys/vm/swap_pager.c

index 8554ce9..fa5004c 100644 (file)
@@ -177,6 +177,8 @@ SYSCTL_INT(_vm, OID_AUTO, swap_cache_use,
         CTLFLAG_RD, &vm_swap_cache_use, 0, "");
 SYSCTL_INT(_vm, OID_AUTO, swap_anon_use,
         CTLFLAG_RD, &vm_swap_anon_use, 0, "");
+SYSCTL_INT(_vm, OID_AUTO, swap_size,
+        CTLFLAG_RD, &vm_swap_size, 0, "");
 
 vm_zone_t              swap_zone;