git: kernel - SWAP CACHE part 10/many - Fix swap space usage calculation
Matthew Dillon
dillon at crater.dragonflybsd.org
Fri Feb 5 10:17:57 PST 2010
commit 1e5196f08d08b182e431f9490abed276ccc7bfea
Author: Matthew Dillon <dillon at 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
More information about the Commits
mailing list