swap, amd64 - increase maximum swap space to 1TB x 4
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 12 Aug 2009 16:52:29 +0000 (09:52 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 12 Aug 2009 16:52:29 +0000 (09:52 -0700)
commit79634a6643a5f76dd3cf8995a5c054ba6ad27192
treefdbc08f6315a704e22e6476ec34855d1c64879da
parent7ce8f2fa03d410e3afe29952119d28ff1922c721
swap, amd64 - increase maximum swap space to 1TB x 4

* The radix can overflow a 32 bit integer even if swblk_t fits in 32 bits.
  Expand the radix to 64 bits and thus allow the subr_blist code to operate
  up to 2 billion blocks (8TB total).

* Shortcut the common single-swap-device case.  We do not have to scan
  the radix tree to get available space in the single-device case.

* Change maxswzone and maxbcache to longs and add TUNABLE_LONG_FETCH().

* All the TUNEABLE_*_FETCH() calls and kgetenv_*() calls for integers
  call kgetenv_quad().

  Adjust kgetenv_quad() to accept a suffix for kilobytes, megabytes,
  gigabytes, and terrabytes.
lib/libkvm/kvm_getswapinfo.c
sys/cpu/amd64/include/param.h
sys/kern/kern_environment.c
sys/kern/subr_blist.c
sys/kern/subr_param.c
sys/sys/blist.h
sys/sys/buf.h
sys/sys/kernel.h
sys/sys/systm.h
sys/vm/swap_pager.c
sys/vm/vm_swap.c