git: libkvm - Interim solution to boost swap statistics fields

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Dec 30 14:50:27 PST 2016


commit ecc2e461f29d5bad86787ac5db04874a66b03fad
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Dec 30 14:47:16 2016 -0800

    libkvm - Interim solution to boost swap statistics fields
    
    * Change ksw_used and ksw_total to unsigned, which increases the maximum
      total swap that can be displayed properly from ~8TB to ~16TB.
    
      This is an interim solution, since DragonFly now supports more than 16TB
      of swap.
    
    * Noticed when the pstat output was mangled after I configured 16TB of
      actual honest to god swap space.

Summary of changes:
 lib/libkvm/kvm.h             | 8 ++++----
 lib/libkvm/kvm_getswapinfo.3 | 8 ++++++--
 lib/libkvm/kvm_getswapinfo.c | 2 +-
 3 files changed, 11 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ecc2e461f29d5bad86787ac5db04874a66b03fad


-- 
DragonFly BSD source repository


More information about the Commits mailing list