DragonFly BSD
DragonFly commits List (threaded) for 2010-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - SWAP CACHE part 10/many - Fix swap space usage calculation


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 5 Feb 2010 10:16:43 -0800 (PST)

commit 1e5196f08d08b182e431f9490abed276ccc7bfea
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Fri Feb 5 10:13:51 2010 -0800

    kernel - SWAP CACHE part 10/many - Fix swap space usage calculation
    
    * The code which limits how much swap space the swap cache uses was
      broken.  It was using the current amount of free swap space instead
      of the total space, causing it to only use 40% of available swap
      instead of 66%
    
    * Fix the calculation and also make it 3/4 (75%) of configured swap.

Summary of changes:
 sys/vm/swap_pager.h   |    1 +
 sys/vm/vm_swap.c      |    2 ++
 sys/vm/vm_swapcache.c |   19 +++++++++++++++----
 3 files changed, 18 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1e5196f08d08b182e431f9490abed276ccc7bfea


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]