git: swap, amd64 - increase maximum swap space to 1TB x 4

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Aug 12 09:59:19 PDT 2009


commit 79634a6643a5f76dd3cf8995a5c054ba6ad27192
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Aug 12 09:52:29 2009 -0700

    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.

Summary of changes:
 lib/libkvm/kvm_getswapinfo.c  |   97 +++++++++++++++++++++++++-------------
 sys/cpu/amd64/include/param.h |    7 ++-
 sys/kern/kern_environment.c   |   40 ++++++++++++++++
 sys/kern/subr_blist.c         |  104 +++++++++++++++++++++++-----------------
 sys/kern/subr_param.c         |    8 ++--
 sys/sys/blist.h               |   14 +++++-
 sys/sys/buf.h                 |    4 +-
 sys/sys/kernel.h              |    1 +
 sys/sys/systm.h               |    1 +
 sys/vm/swap_pager.c           |   12 +++--
 sys/vm/vm_swap.c              |   43 +++++++++--------
 11 files changed, 219 insertions(+), 112 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/79634a6643a5f76dd3cf8995a5c054ba6ad27192


-- 
DragonFly BSD source repository





More information about the Commits mailing list