kernel - SWAP CACHE part 10/many - Fix swap space usage calculation
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 5 Feb 2010 18:13:51 +0000 (10:13 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 5 Feb 2010 18:13:51 +0000 (10:13 -0800)
commit1e5196f08d08b182e431f9490abed276ccc7bfea
tree7289c5ad98d5641e180a2394f07c8186da533149
parent665206eeb07f4b82c073cb3e5737284f7824d6c3
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.
sys/vm/swap_pager.h
sys/vm/vm_swap.c
sys/vm/vm_swapcache.c