看板 DFBSD_commit 關於我們 聯絡資訊
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